nvram(1M)nvram(1M)NAME
nvram, sgikopt - get or set non-volatile RAM variables
SYNOPSISnvram [-v] [name [value]]
sgikopt [name...]
DESCRIPTIONnvram can be used to set or print the values of non-volatile RAM
variables.
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
named variable.
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.
NOTES
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
variables.
DIAGNOSTICS
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 non-
volatile memory with the nvram command. To change the contents of non-
volatile memory on systems that do not support nvram, you must use the
PROM monitor setenv command.
SEE ALSOprom(1M), sgikopt(2), syssgi(2).
Page 1