About the Solaris OK mode

Source: Internet
Author: User
Tags true true

Boot (disk CDROM net device)
Boot-s Single user mode boot
Boot cdrom-s CD single user Boot
Probe-scsi-all hard drive, optical drive and other equipment
Devalias the default settings for hard, light, and equipment
Show-devs Display System Configuration
Banner system configuration information, memory information
Power-off Breakpoint Shutdown
Version shows prom system release information
Devalies System Device Alias
Printenv Show Prom system environment variables
Setenv Set the prom system environment variable
Example "'
Setenv Auto-boot False
setenv Boot-device Disk

Set-defaults Set the prom system environment variable to the default value
setenv output-device Scrcen (output device, if the serial port is set to TTYA,TTYB)

Boot-osflags check boot devices and parameters

Watch-net-all View Network card
setenv Diag-device Disk
Reset-all to system automatic hard drive

Devfsadm-v View video card

prtconf System Information

Bootprom is equivalent to the CMOS PC, can detect hardware under Bootrpom and set startup options.
The Sun system includes the following two basic hardware:
? Bootprom Chip
? Non-volatile Memory (NVRAM): Save the host's ID number and startup option settings
Bootprom basic Commands
? Banner

OK banner
Sun UltraSPARC Upa/pci (2 X ultrasparc-ii 296MHz), keyboard Present
Openboot 3.11, 256 MB memory installed, serial #3159808.
Ethernet address 8:0:22:1a:e7:3f, Host id:72303700.
Ok

The banner command displays the basic configuration information of the system, including the machine model, CPU number and frequency, memory size, Ethernet address, host serial number, and so on.

? Boot command and Parameters
OK boot [device_name]-[options]

Options include:
A interactive boot operating system
R RECONFIGURE operating system hardware information
s operating system into debug state (single user mode)
V Display details of startup information
OK boot Disk2-r

? printenv command
The printenv command displays the settings and default values for the NVRAM variable.

OK printenv
Parameter Name Value Default value
Tpe-link-test? True True
Output-device Ttya Screen
Input-device Ttya Keyboard
Sbus-probe-list f0123 f0123
Keyboard-click? False false
Diag-file
Diag-device Net Net
Boot-file
Boot-device Disk2 Disk
Auto-boot? True True
More [,, Q]? Q
Ok

? setenv command
SETENV set the parameter values for the prom, commonly used parameters are:
Parameter value meaning
Auto-boot? True to start the operating system automatically next time
False next start stop in OK State
Boot-device CDROM boot operating system from optical drive
Disk2 boot the operating system from the second hard drive
Note: Since Ultra 5 does not have a built-in SCSI port, it can only be added with a NIC with a SCSI port. The startup disk should be set at this time:
OK setenv boot-device/pci@1f,0/pci@1/pci@1/sunw,isptwo@4/sd@2,0:a

The Ultra 60 external hard drive should start with:

OK setenv boot-device/pci@1f,4000/scsi@3,1/disk@2,0:a
? Set-defaults
Restore all parameters of NVRAM to default values
Keyboard input at machine startup
? Stop
If you press the STOP key while the system is on the power self-test, cancel the post (Power on self-test) diagnostics and stay in the OK state.
? Stop+d
When you press both the stop and D keys at the system self-test, the system will automatically go to diagnostic mode and the system will perform a more complete self-test in diagnostic mode.
? Stop+n
If the system does not start properly because the NVRAM is set incorrectly, you can press the stop and N keys at the same time as the system power on the self-test. Its role is to set the NVRAM parameter value to the default value.
? Stop+a
Pressing the stop and a key at the same time will disrupt the operation of the operating system and retire to the OK state.
Warning: Try not to press STOP+A while the operating system is running, which will cause the operating system to stop and result in loss of data. When you are not able to, after pressing Stop+a, type the sync command to synchronize the memory data to the hard disk.
Find System Devices
? Probe-scsi-all

OK probe-scsi-all
Target 3
Unit 0 Disk SEAGATE ST1480 SUN0424626600190016
Copyright (c)
All Rights Reserved
Target 6
Unit 0 removable Read only device SONY CD-ROM

This command locates all SCSI devices in the system.
Note: If you exit from the operating system and then run this command, it may cause the system to panic. Please set Auto-boot to False before running Reset-all, the system will self-test, stay in OK State, and then run this command.
? Probe-ide
Find all IDE devices for the system.

OK probe-ide
Device 0 (Primary Master)
ATA model:st 34342A
Device 1 (Primary Slave)
Not Present
Device 2 (secondary Master)
Removable ATAPI model:cdr-8240b
Device 3 (Secondary Slave)
Removable ATAPI Model yyyyyyyyyyyyyyy

Note: If you exit from the operating system and then run this command, it may cause the system to panic. Please set Auto-boot to be false and then run Reset-all again, the system will be self-test, stay in OK State, and then run this command. &NBSP
Device detection  
? eject 
Put the floppy disk in the floppy drive, and then in the input eject, the floppy disk will automatically eject. &NBSP
? watch-net-all 
Tests all network adapters and network status. Each NIC test is divided into two parts: Loop-back Test and Network line test. If the Loop-back (network card from the loop) through, indicating that the NIC is in good condition. If the network line test failed, indicating that the cable did not receive the signal, may be the cable is not connected or the network cable is not good.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.