Monday, 15 October 2012

OpenBoot Parameters & commands


GENERAL
Printenv
Display all environment variables and current values
setenv  <variable>
Set variable to given value
set-default  <variable>
Reset the value of variable to the factory default
set-defaults
Reset all variable values to the factory default
Go
To come out from OK> promt to # promt
Banner
Shows the system configuration
reset-all 
Will save to new change & clear the buffer & reboot the system
show-devs
Show all the devices with physical path
show-nets
Show all the nic’s information
show-disks
Displays and allow a selection of device paths
Help
Shows the list of commands
power-off
Will switch off the system immediately
.version
Shows the open boot prom version
cd
Enter the device tree
.properties
Displays properties for the current node in the tree
dev devices
Sets node to device
device-end
Leaves from device tree
Devalias
Displays all defined aliases
devalias alias <device path>
Create an alias
nvalias alias <device path>
Store a devalias command in non-volatile memory
nvunalias alias <device path>
Removes stored devalias command
watch-net
Test the net device and monitors for bad packets
watch-clock
Test the real time clock chip
eject-floopy
Eject the floopy
.speed
Shows the CPU & PCI bus speed
Sync
Flushes the disk buffers to disk
show-post-results
Display post results
printenv auto-boot?
auto-boot?=false  [answer]
setenv auto-boot? True
auto-boot?=true   [answer]
printenv boot-device
boot-device=disk  [answer]
Setenv boot-device disk net
boot-device=disk  net [answer]
BOOT
auto-boot?=true  
System directly reboot without stopping at OK>after power on
boot-command=boot
Command passed on to auto boot
Boot
Boot the system
boot –r or boot –rv
Will detect the new devices(reconfiguration reboot)
boot -s  or boot –sv
Single user mode
boot –a
Interactive mode, user needs to put the input
boot net:rarp
Use rarp to find the boot server
boot net:dhcp
Use dhcp to find the boot server
boot cdrom -s
Single user mode by using cdrom
boot cdrom –F wanboot – install
Install client over the WAN
boot net:speed=100,duplex=full
Set network speed and duplex settings


NVRAM Variables:
Variable
Default
Description
auto-boot?
True
The system starts up automatically after power-on or reset if auto-boot? is true. If it is set to false, the system stops at the OpenBoot prompt (ok) after power-on or reset.
boot-command
Boot
 The command that is executed if auto-boot? is true.
boot-device
disk or net
The device from which to start up.
boot-file
Empty string
Arguments passed to the started program.
diag-device
Net
The diagnostic startup source device.
diag-file
Empty string
Arguments passed to the startup program in diagnostic mode.
diag-switch?
False
Whether to run in diagnostic mode.
fcode-debug?
False
Whether name fields are included for plug-in device FCodes.
input-device
keyboard
A console input device (usually keyboard, ttya, or ttyb).
Nvramrc
Empty
The contents of NVRAMRC.
oem-banner
Empty string
A custom original equipment manufacturer (OEM) banner (enabled with oem-banner? true).
oem-banner?
False
If true, use custom OEM banner.
oem-logo
No default
A byte array custom OEM logo (enabled with oem-logo? true). Displayed in hexadecimal.
oem-logo?
False
If true, use custom OEM logo; otherwise, use the Sun logo.
output-device
Screen
A console output device (usually screen, ttya, or ttyb).
sbus-probe-list
0123
Which SBus slots to probe and in what order.
screen-#columns
80
The number of onscreen columns (characters/line).
screen-#rows
34
The number of onscreen rows (lines).
security-#badlogins
No default
The number of incorrect security password attempts.
security-mode
None
The firmware security level (options: none, command, or full).
security-password
No default
The firmware security password (which is never displayed).
use-nvramrc?
False
If true, execute commands in NVRAMRC during system startup.
Flipkart.com

No comments:

Post a Comment

Note: only a member of this blog may post a comment.