Sunday, April 01, 2007

Display NVRAM Parameters

I often use the printenv command to list all of NVRAM's parameters. This command will display the variable names, values, and default values. Here's an example of its use.

If you have security enabled, you will be prompted for a password
ok printenv
Variable Name Value Default Value
...
boot-device disk disk net
...

Here's an example of changing the boot device.
ok setenv boot-device disk1
ok
reset

Show the change
ok printenv
Variable Name Value Default Value
...
boot-device disk1 disk net
...

No comments: