Saturday, 9 February 2008

SUN NVRAM Reference

DISPLAY  NVRAM PARAMETERS• 
.version: display the version of the PROM
• .speed: display the cpu and bus speed
• banner: display the power on banner message
• boot -a -h -s -v -x:
• devalias: identify all current device aliases
• eject-floppy: eject a floppy diskette
• firmware-revision: identifies the firmware version
• password: set PROM password
• printenv: display all current parameters
• probe-fcal: identify all fiber devices attached to the i/o bus
• probe-scsi-all: identify all scsi devices attached to the i/o bus
• reset-all: recycle the system
• setenv : set a value for a parameter
• set-default : reset the value of a parameter to is mfgr default state
• set-default: reset all parameters to mfgr default states
• show-disks: identifys all disk controllers attached to the system
• show-post-results: display POST results
• sifting: search obp commands for text string
• synch: write all file system changes to disk
• test-all:execute a device's self-test procedure
• watch-net-all: identify all network devices attached to the system

 BOOT NET. boot net:rarp - use rarp to find boot server
• boot net:dhcp - use dhcp to find boot server
• boot cdrom -F wanboot – install -install client over WAN
• boot net:speed=100,duplex=full - set network speed and duplex options

NVRAM Prameters from EEPROM from OS
• auto-boot?: if true, boot automatically after POST. (true)
• boot-command: command to execute if auto-boot? is true. (boot)
• boot-device: device to use for booting (disk net)
• boot-file: file to boot (empty string)
• diag-device: diagnostic boot source (net)
• diag-file: file from which to boot in diagnostic more (empty string)
• dial-level: Level of diagnostics to run (min or max)
• diag-switch?: If true, run in diagnostic mode
• input-device: input device to use (keyboard)
• keymap: keyboad map for custom keyboard (no default)
• nvramrc: NVRAM startup script (empty string)
• oem-banner: Custom OEM banner (empty string)
• oem-banner?: If true, use custom OEM banner (false)
• output-device: Output device to use (screen)
• sbus-probe-list: Identifies which sbus slots are probed & in what order  
  (01)
• scsi-initiator-id: SCSI bus address of host adapter (7)
• security-mode: Firmware security level (none  command  full)
• security-password: Firmware security password (none)
• use-nvramrc?: If true, execute commands in NVRAMRC during startup 
  sequence (false)
• watchdog-reboot?: If true, reboot after watchdog reset (false)

NVRAMRC NVRAM Editornvalias alias - Store the command "devalias alias device-path"  
   in NVRAMRC. The alias persists   until the nvunalias or set-defaults commands 
   are executed.
• nvedit -Enter the NVRAMRC editor. If data remains in the temporary buffer from 
  a previous  nvedit session, resume editing those previous ontents. If not,read 
  the contents of NVRAMRC   into the temporary buffer and begin editing them.
• nvquit -Discard the contents of the temporary buffer,without writing it to  
  NVRAMRC   prompt for confirmation.
• nvrecover -Recover the contents of NVRAMRC if they have been lost as a 
  result of the execution of set-defaults; then enter the editor as with nvedit.  
  nvrecover fails if nvedit is executed between the time that the NVRAMRC  
  contents were lost and the time that nvrecover is executed.
• nvrun -Execute the contents of the temporary buffer.
• nvstore -Copy the contents of the temporary buffer to NVRAMRC; discard the  
   contents of the temporary buffer.
• nvunalias alias - Delete the corresponding alias from NVRAMRC. Must reset  
  system.

 nvedit Editor Keystroke Commands• Control-B -Move backward one character.
• Control-C -Exit the editor and return to the OpenBoot command interpreter. The 
   temporary  buffer is preserved but is not written back to NVRAMRC. (Use 
   nvstore afterwards to write back the temporary buffer.)
• Control-F - Move forward one character.
• Control-K -If at the end of a line, join the next line to the current line (that
  is, delete the new line).
• Control-L - List all lines.
• Control-N -Move to the next line of the NVRAMRC editing buffer.
• Control-O - Insert a new line at the cursor position and stay on the current line.
• Control-P -Move to the previous line of the NVRAMRC editing buffer.
• [Delete] -Delete the previous character.
• [Return] - Insert a new line at the cursor position and advance to the next line.

Activating nvram• ok> nvedit

• Type Control-C to get out of the editor and back to the ok prompt.
• nvstore
• setenv use-nvramrc? true
• reset

No comments:

Contributors