You are on page 1of 6

Open Boot PROM - OK Prompt

Join Now / Sign In Wiki Submit Query


Toolbox for IT Search

My Home
Topics
Communities
People
White Paper Library

UNIX

Home Blogs Groups Wiki White Papers Q&A and Docs Topics Subscriptions

Solaris Wiki Project


Project home - Project discussion group
Join a community of experts in collaboratively sharing knowledge about Solaris.

Parent Categories: Solaris / Solaris-l

http://it.toolbox.com/wiki/index.php/Open_Boot_PROM_-_OK_Prompt (1 of 6)4/27/2010 7:29:19 PM


Open Boot PROM - OK Prompt

Open Boot PROM - OK Prompt (63,206 views)


Edit / Discuss / History / Invite Peers / Connect (38 connections)

Major Editors: obelix 67 Romeo Nino… John Water…/ All

Contents [Hide TOC]

● 1 Open Boot User Interface


● 2 Boot Commands
● 3 Navigate around the Device Tree
● 4 Alias Commands
● 5 Emergency STOP Commands
● 6 Configuration Variable Commands
● 7 Some common used Configuration
Variables Most Popular Articles in Solaris
● 8 Open Boot Commands Open Boot PROM - OK Prompt
● 9 How to run POST Mount a USB key under Solaris
● 10 How to use OBDiag How to configure SAMBA in Solaris
Play with soft partitions on Solaris
What is the difference between Solaris and Linux?

[edit]

Open Boot User Interface

How to get to the OK Prompt


You can shutdown the system using init 0
Reboot the system and press the STOP and A keys together as the boot time messages
appear on the screen

Press the STOP and A keys together (use as a last resort)


when you are not on the console (video + keyboard) and use some terminal emulator to
via serial port or other similar solution you can use special command to send BREAK
signal. For example on TeraTerm Pro use Control->Send Break or press Alt-B

[edit]

Boot Commands

These are used from the OK Prompt to boot the system into the mode you desire
http://it.toolbox.com/wiki/index.php/Open_Boot_PROM_-_OK_Prompt (2 of 6)4/27/2010 7:29:19 PM
Open Boot PROM - OK Prompt

Boots the system using device disk boot disk


Boots the system using a bootable CD in the CDROM drive boot cdrom
Performs a reconfiguration reboot boot –r
Boots to single user level boot –s
Verbose mode displays messages being sent to log boot –v
Don’t boot in clustered mode (if appropriate)boot –x
Prompt for user input as to kernel to boot etc boot –a

[edit]

Navigate around the Device Tree

Enter the Device Tree cd


Displays properties for current node in the tree .properties
Displays devices attached to current node ls
Displays name of current node in tree pwd
Sets node to machine node dev /
Sets node to device dev device
Sets node to parent of current node dev ..
Displays all devices (or all the devices below specified node) show-devs
Leaves the device tree device-end

[edit]

Alias Commands

Displays all defined aliases devalias


Creates an alias devalias alias device-path
Stores a devalias command in non volatile memory nvalias alias device-path
Removes stored devalias command nvunalias alias device-path

[edit]

Emergency STOP Commands

Aborts OS boot or Halts machine Pressing STOP and A Keys


Sets diagnostic mode ( diag-switch? True ) Pressing STOP and D Keys
Sets configuration variables to default value Pressing STOP and N Keys

[edit]

Configuration Variable Commands

Displays all the configuration variables printenv


Sets variable to value setenv variable value
Displaying / changing variables once Solaris is running eeprom

http://it.toolbox.com/wiki/index.php/Open_Boot_PROM_-_OK_Prompt (3 of 6)4/27/2010 7:29:19 PM


Open Boot PROM - OK Prompt

Resets all variables to default value set-defaults


Resets variable to its default value set-default variable

[edit]

Some common used Configuration Variables

defaults are shown in brackets


Determines is Solaris boots on power up variable auto-boot? value (true) | false
Boot device if diag-switch?=false variable boot-device value disk , disk:a
Sets diagnostic mode variable diag-switch? value true | (false)
Determines detail level of POST etc variable diag-level value min | (max)
Boot device if diag-switch?=true variable diag-device value net
Manufacturing mode used for OBDiag variable mfg-mode value on | (off )
Defines target ID of SCSI initiators variable scsi-initiator-id value 0-15 (7)

[edit]

Open Boot Commands

Provides details of devices on SCSI buses probe-scsi


Runs device self test (if available) test device
Runs all device self test methods available test-all
Tests net device and monitors for bad packets watch-net
Test the real time clock chip watch-clock
Display help about OBP commands help
Display help about a category (categories inc. boot, system,diag, devalias etc) help category
Display help about a command help command
Resets entire system - similar to a power cycle reset-all
flushes disk buffers to disk sync
eject the floppy eject-floppy
Powers off the system (similar to SHIFT & power key) power-off
Antidote to STOP A go
Displays banner with lots of useful info banner
Shows CPU and PCI bus speeds .speed
Displays devices attached to system SBUS show-sbus
Shows OBP version .version
Display IDPROM contents formatted idprom

[edit]

How to run POST

● Set diagnostic mode on by either:


❍ setenv diag-switch? true ( turn on diagnostic mode)

http://it.toolbox.com/wiki/index.php/Open_Boot_PROM_-_OK_Prompt (4 of 6)4/27/2010 7:29:19 PM


Open Boot PROM - OK Prompt

❍ Turn diagnostic key (if fitted) to on


❍ Press STOP and D keys while machine is powering on

● Power cycle the machine


● Beware, when POST is running (and it takes ages) nothing is displayed on any attached
screen, in fact the system looks pretty dead.
❍ The only sign that POST is in progress is the CAPS LOCK LED on the keyboard
flashes occasionally.

● Monitor progress using a serial link to Serial port A and HyperTerminal

[edit]

How to use OBDiag

● Set configuration variables as follows:


❍ setenv mfg-mode on ( turn on manufacture mode)
❍ setenv diag-switch? true ( turn on diagnostic mode)
❍ setenv auto-boot? false ( stop Solaris booting )
❍ reset-all ( reset the system)

● Issue OBDiag command to start Open Boot Diagnostic menu tool


● Once you have finished reset variables to original values and reset-all

Related Content
White Papers and Webcasts
● The Arrival of Open Unified Storage
● Opposites Attract: How Can the Flexibility of Open Source and the Assurance of Proprietary Software
Coexist?
● How Web 2.0 Is Transforming CRM - Leveraging Social Media to Improve the Customer Experience
More White Papers...

Jobs
● ABInitio Lead Developer/Architect
Additional Content
● OpenBSD explained: Dual-booting with Linux (Blogs)
● Solaris_Wiki_Project:_Table_of_Contents (Wiki)
● Open source ERP/BMS (Groups)

http://it.toolbox.com/wiki/index.php/Open_Boot_PROM_-_OK_Prompt (5 of 6)4/27/2010 7:29:19 PM


Open Boot PROM - OK Prompt

Disclaimer: Toolbox for IT Wiki is a service that allows content to be created and edited by anyone in the community.
Content posted to this site is not reviewed for correctness and is not supported by Toolbox for IT or any of its
partners. If you feel a wiki article is inappropriate, you can either correct it by clicking "Edit" above or click here to
notify Toolbox for IT.

Browse IT Wiki

About / Contact us / Privacy / Terms of Use / Work at Toolbox.com / Advertise with Toolbox for IT / Provide Feedback

Topics: Business Intelligence / C Languages / CIO / CRM / Database / Data Center / Data Warehouse / EAI / Emerging Technologies / ERP / Hardware / Knowledge

Management / Networking / Project Management / SCM / Security / Storage / Telephony / Web Design / Wireless / Infor / Java / Linux / Oracle / Oracle CRM / Oracle

Database / PeopleSoft / SAP / Siebel / UNIX / Visual Basic / Windows

Also at Toolbox for IT: Blogs / Groups / Wiki / Events & Webcasts / Job Center / Vendor Research Directory

Copyright 1998-2010 Toolbox.com. All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not affiliated with or endorsed by any company

listed at this site. Toolbox.com is a subsidiary of the Corporate Executive Board

http://it.toolbox.com/wiki/index.php/Open_Boot_PROM_-_OK_Prompt (6 of 6)4/27/2010 7:29:19 PM

You might also like