NVRAM configuration parameters can be viewed and changed using the commands listed in Table 3-2.
Table 3-2 Viewing/Changing Configuration Parameters
Command |
Description |
---|---|
printenv |
Display all current parameters and current default values. (Numbers are usually shown as decimal values.) printenv parameter shows the current value of the named parameter. |
setenv parameter value |
Set parameter to the given decimal or text value. (Changes are permanent, but usually only take effect after a reset.) |
set-default parameter |
Reset the value of the named parameter to the factory default. |
set-defaults |
Reset parameter values to the factory defaults. |
The following pages show how these commands can be used.
To display a list of the current parameter settings on your system, type:
ok printenv Parameter Name Value Default Value oem-logo 2c 31 2c 2d 00 00 00 00 ... oem-logo? false false oem-banner oem-banner? false false output-device ttya screen input-device ttya keyboard sbus-probe-list 03 0123 keyboard-click? false false keymap ttyb-rts-dtr-off false false ttyb-ignore-cd true true ttya-rts-dtr-off false false ttya-ignore-cd true true ttyb-mode 9600,8,n,1,- 9600,8,n,1,- ttya-mode 9600,8,n,1,- 9600,8,n,1,- diag-file diag-device net net boot-file boot-device disk disk auto-boot? false true watchdog-reboot? false false fcode-debug? true false local-mac-address? false false use-nvramrc? false false nvramrc screen-#columns 80 80 screen-#rows 34 34 sunmon-compat? false true security-mode none none security-password security-#badlogins 0 scsi-initiator-id 7 7 version2? true true hardware-revision last-hardware-update testarea 0 0 mfg-switch? false false diag-switch? true false ok
In the displayed, formatted list of the current settings, numeric parameters are shown in decimal, except where otherwise noted.
To change a parameter setting, type:
setenv parameter value
parameter is the name of the parameter. value is a numeric value or text string appropriate to the named parameter. A numeric value is typed as a decimal number, unless preceded by 0x, which is the qualifier for a hexadecimal number. Most parameter changes do not take effect until the next power cycle or system reset.
For example, to change the setting of the auto-boot? parameter from true to false, type:
ok setenv auto-boot? false ok
You can reset one or most of the parameters to the original defaults using the set-default parameter and set-defaults commands.
For example, to reset the auto-boot? parameter to its original default setting (true), type:
ok set-default auto-boot? ok
To reset most parameters to their default settings, type:
ok set-defaults ok