OK Prompt

How to get into OK prompt

 From sun keyboard connected
   STOP + A

 From Serial console
   Ctrl + ]  or Break key or Cntrl + L or ~break or Alt+B in teraterm

 Serial console connected in console server
  telnet <consoleserver> <connectedportnumber>
    i.e telnet consolsrv01 10001
  Press Ctrl + ]
    This will get into "telnet>"
  type "send break" from "telnet>" prompt

Disable Stop + A

   set a line in /etc/system like "set abort_enable=0" will disbale the Stop + A  landing to OK prompt

eeprom:
eeprom displays or changes the values of parameters in the EEPROM (OPen Boot configuration settings).

 # eeprom
 tpe-link-test?=true
 scsi-initiator-id=7
 keyboard-click?=false
 keymap: data not available.
 ttyb-rts-dtr-off=false
 ttyb-ignore-cd=true
 ttya-rts-dtr-off=false
 ttya-ignore-cd=true
 ttyb-mode=9600,8,n,1,-
 ttya-mode=9600,8,n,1,-
 pcia-probe-list=1,2,3 
 .......
 ........

To set the auto-boot? Parameter to true

 # eeprom auto-boot?=true

To set the devalias for disks

  # eeprom "nvramrc=devalias rootdisk /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w220000203714f2ee,0:a devalias mirrordisk /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2200002037093df0,0:a"

 Make sure to also set use-nvramrc? to true. These device aliases will be stored after a system reset.
  # eeprom "use-nvramrc?=true"

Some useful OK prompt commands

 OK showdevs
 OK show-disks

To temporarily create a device alias'''

 OK devalias  <alias> <path>

To search the scsi devices attached to the primary scsi controller

 OK probe-scsi

To search all the scsi devices

 OK probe-scsi-all

To view the current NVRAM settings

 OK printenv

To set the evvironment variables

 setenv <env> <value>

To set the Open Boot prompt settings to the factory default

 OK set-defaults

To set the device alias permanently to NVRAM

 OK nvalias  <alias>  <path>

To start nvramrc line editor using a temporary edit buffer

  OK nvedit

To save the contents of the nvedit buffer into NVRAM

  OK nvsave 

To remove the nvalias 'cdrom1' from NVRAMRC

 OK nvunalias  cdrom1

To find out the Open boot prompt version

 OK .version

To find out the ethernet MAC address

 OK .enet_addr

To find out the CPU and PCI bus speeds

 OK .speed

To display the Model, Architecture, processor, openboot version, ethernet address, host id and etc...

 OK banner

To reset variable values to the factory defaults

 OK set-defaults  

To reboot the system from OK Prompt

 OK reset-all