Solaris: Useful commands at OK prompt

Solaris Useful commands at OK prompt.

Dignostics:

boot

General

banner

this command shows the following systems hardware informatiion : Model,architecture, processor,keyboard, openboot version, Serial no. ethernet address & host id.

test floppy – test floppy disk drive
test net – test network loopbacks
test scsi – test scsi interface
test-all test for all devices with selftest
method

watch-clock

Show ticks of real-time clock

watch-net

Monitor network broadcast packets

watch-net-all

Monitor broadcast packets on all net interfaces

probe-scsi

Show attached SCSI devices

probe-scsi-all

Show attached SCSI devices for all host adapters- internal & external.

boot – boot kernel from default device.
Factory default is to boot
from DISK if present, otherwise from NET.

boot net – boot kernel from network
boot cdrom – boot kernel from CD-ROM
boot disk1:h – boot from disk1 partition h
boot tape – boot default file from tape
boot disk myunix -as – boot myunix from disk with flags “-as”

DEVALIAS

ok>show-devs

ok cd /pci@1f,4000/scsi@3

ok .properties

ok
ls

f00809d8 tape

f007ecdc disk

ok
.speed

CPU Speed :200.00MHz

UPA Speed :100.00MHz

PCI Bus A :66Mhz

PCI Bus B :33Mhz

printenv
Display all variables and current values.

setenv <variable>
Set variable to the given value.

set-default
<variable>

Reset the value of variable to the factory default.

set-defaults

Reset variable values to the factory defaults.


Key Sequences

These commands are disabled if the PROM security is on. Also, if your system has full security enabled, you cannot apply any of the suggested commands unless you have the password to get to the ok prompt.

Stop– Bypass POST. This command does not depend on security-mode. (Note: some systems bypass POST as a default; in such cases, use Stop-D to start POST.)

Stop-A
Abort.

Stop-D– Enter diagnostic mode (set diag-switch? to true).

Stop-F– Enter
Forth on TTYA instead of probing. Use
pan to continue with the initialization sequence. Useful if hardware is broken.

Stop-N Reset NVRAM contents to default values.

Start an OpenBoot Diagnostics

<STOP A>
OK setenv diag-switch? true
OK setenv auto-boot? false
OK reset-all

OK test-all or obdiag

Configure Graphics Console (e.g. Sun XVR-100 Graphics Accelerator) instead of serial TTYA

OK show-displays
Select the graphics accelerator, e.g. b

OK nvalias mydev <CTRL-Y>
OK setenv output-device mydev
OK setenv use-nvramrc? true
OK reset-all

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top