show-disks Display a list of the device paths for installed SCSI disk controllers
show-displays Display a list of the device paths for installed display devices
show-nets Display a list of the device paths for installed Ethernet controllers
show-sbus Display list of installed SBus devices
show-tapes Display a list of the device paths for installed SCSI tape controllers
show-ttys Display a list of the device paths for tty devices
Note, If you want to traverse the OBP device tree the following commands should be run to obtain
“full”use of the forth toolkit
· setenv fcode-debug? true
· setenv diag-switch? true
· setenv auto-boot? false
· reset
2.5 Emergency commands
These commands must be typed from the keyboard, they will not work from a console which is
attached via the serial ports. With the exception of the Stop-A command, these commands are issued
by pressing and holding down the indicated keys on the keyboard immediately after the system has
been powered on. The keys must be held down until the monitor has checked their status. The Stop-A
command can be issued at any time after the console display begins, and the keys do not need to be
held down once they’ve been pressed. The Stop-D, Stop-F and Stop-N commands are not allowed
when one of the security modes has been set.
Command Description.
Stop (L1) Bypass the Power-On Self Test (POST). This is only effective if the system has been
placed into the diagnostic mode
Stop-A (L1-A) Abort the current operation and return to the monitor’s default prompt
Stop-D (L1-D) Set the system’s ‘diag-switch?’ NVRAM parameter to ‘true’, which places the system
in diagnostic mode. POST diagnostics, if present, will be run, and the messages will be
displayed via the system’s serial port A
Stop-F (L1-F) Enter the OpenBoot monitor (Forth) before the monitor has probed the system for
devices. Issue the ‘fexit’ command to continue with system initialization
Stop-N (L1-N) Causes the NVRAM parameters to be reset to their default values. Note that not all
parameters have default values
2.6 Line Editor Commands
The following commands can be used while the monitor is displaying the ok prompt. Not all of these
editing commands are available on all workstations.
Type help line at the ok prompt.
Command Description
CTRL-A Place the cursor at the start of line
CTRL-B Move the cursor backward one character
ESC-B Move the cursor backward one word
CTRL-D Erase the character that the cursor is currently highlighting
ESC-D Erase the portion of word from the cursor’s present position to the end of the word
CTRL-E Place the cursor at the end of line
CTRL-F Move the cursor forward one character
ESC-F Move the cursor forward one word
CTRL-H Erase the character preceding the cursor (also use Delete or Back Space)
ESC-H Erase the portion of the word which precedes the cursor (use also CTRL-W)
CTRL-K Erase from the cursor’s present position to the end of the line
CTRL-L Show the command history list
CTRL-N Recall the next command from the command history list
CTRL-P Recall a previous command from the command history list
CTRL-Q Quote the next character (used to type a control character)
CTRL-R Retype the current line
CTRL-U Erase from the cursor’s present position to the beginning of the line
CTRL-Y Insert the contents of the memory buffer into the line, in front (to the left) of the
cursor
2.7 Aliases
Device path can be long and error prone to type. Device aliases are made to make system
administration easy
Command Description
devalias Show the device aliases configured on the system
devalias alias-name Display the device-path of the alias
devalias [ alias-name device-path ] To create temporary device aliases
eg: ok devalias fred /sbus/esp@0,800000/sd@0,0
nvalias [ alias-name device-path ] To create permanent aliases that survive power off
eg: ok nvalias fred /sbus/esp@0,800000/sd@0,0
· select the controller path to the boot disk
· ok nvalias alias-name ( ^Y to insert controller path)disk(@target,unit)
To delete a device alias
· nvunalias
2.8 nvramrc
2.8.1 Nvramrc commands
Command Description
nvedit Enter the NVRAMRC editor. (write to a temporary buffer)
nvrun Execute the contents of the temporary buffer
nvstore Copy the contents of the temporary buffer to NVRAMRC
nvrecover Recover the contents of NVRAMRC if they have been lost as a result of the setdefaults
command. WARNING nvedit deletes backup copy of NVRAMRC