nvram, sgikopt - get or set non-volatile RAM variables
nvram [-v] [name [value]]
nvram can be used to set or print the values of non-volatile RAM
When invoked with no arguments, nvram displays all known variables in the
name=value form. The nvram arguments are:
name Print the value of name.
value If name is defined in non-volatile RAM, replace name's definition
string with value.
-v Print a line of the form name=value after getting or setting the
If invoked as sgikopt, more than one name can be given. names that do
not match known variables are ignored.
The exit status is 1 if any arguments do not match and 0 otherwise.
Non-volatile RAM contains a small set of well-known strings at fixed
offsets. nvram can not be used to define new variables.
Only the superuser can set variables.
The term "non-volatile RAM" is somewhat misleading, because some
variables are placed only in volatile RAM and are reset on power-up.
Different systems have different mixes of volatile and non-volatile
If an attempt to get or set a variable fails for any reason, nvram prints
an appropriate message on standard error and exits with non-zero status.
Not all systems support the ability to change the contents of nonvolatile
memory with the nvram command. To change the contents of nonvolatile
memory on systems that do not support nvram, you must use the
PROM monitor setenv command.
prom(1M), sgikopt(2), syssgi(2).
PPPPaaaaggggeeee 1111 [ Back ]