2011032572396品保订单号
ok模式输入go 重新今进入init 3或其他init模式
ok模式
devalias 检查当前引导系统的磁盘别名
 
banner
boot
help
printenv
setenv
reset-all
set-defaults
sifting 'text'
.registers
probe-scsi
probe-scsi-all
probe-ide
probe-fcal-all
show-devs
devalias
nvalias
nvunalias
show-disks
sync
test
 
 
scvs -xv
svc-syseventd start
/etc/power.conf
 
boot -s
boot cdrom -s
boot -a
boot -r
boot -v
boot -rv
boot -sv
 
help  boot
help nvramrc
help diag
help misc
 
printenv boot-device
printenv auto-boot?
 
以下2条命令要一起用
setenv auto-boot? false
reset-all
 
set-defaults
set-defaults diag-level
 
sifting probe
 
 
 
 
nvalias mydisk /pci@1f,0/pci@1,1/ide@3/disk@0,0:a
setenv boot-device mydisk
printenv boot-device
nvunalias mydisk
reset-all
 
-----以下eeprom开头的命令在ok模式下不可用
eeprom
 
eeprom boot-device
eeprom boot-device=disk2
eeprom auto-boot?=true
 
---------练习-------------
搜集信息:
1 OpenBoot PROM revision 4.6
l Megabytes of installed memory 512M
l System type Sun Blade 150 UltraSPARC-IIe 650MHz
l NVRAM serial number 53297920
l Ethernet 0:3:ba:2d:43:0
hostid 832d4300
 
Set the auto-boot? parameter to false.
 
 
 
Create a new device alias called mydisk that uses the same device as
the disk device alias. Verify the contents of the nvramrc file, and
verify how to set the use-nvramrc? parameter.
 
 
Boot the system using the new alias. As the root user, use the
eeprom command to list all parameters. Set the boot-device
parameter to the mydisk device alias.
 
 
Shut down the system to run level 0, and verify the change you
made by using the printenv command. Remove the mydisk device
alias. Reset the boot-device parameter to its default value, and boot
the system.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--------------
 
通过USB2COM口接到SUN 的Serial Management Port,然后运行SecureCRT 6.1控制。可以顺利进入SC>,但是用console总是没有办法切换到ok提示符下,后来在系统启动显示:
 
Rebooting with command: boot   
 
时按下Ctrl+break(Stop+A),此时可以进入ok提示符。
------------
 
 
 
 
 
 
 
-----------------------------------------------------
(一)指令集 
 
格式: OK> 指令 
 
1.banner 显示当前机器配置状况,CPU,内存,hostid,EtherNet 
 
2.probe-scsi 显示内部SCSI通道所挂接设备 
 
3.probe-scsi-all 显示所有SCSI通道及所挂接设备 
 
4.probe-ide 显示所有IDE通道及所挂接设备(针对U10,U5) 
 
probe-fcal-all 
 
5.devalias 显示设备别名,如 cdrom,disk,disk0,disk1等 
 
6.printenv 无参数,显示环境变量或 
 
参数为环境变量名 如: printenv auto-boot? 
 
7.setenv 设置环境变量,如: setenv auto-boot? false 
 
8.set-default 恢复环境变量预定值 如:set-default auto-boot? 
 
9.set-defaults 恢复所有环境变量预定值 
 
10.boot device [option] 启动主机 
 
device :设备别名,如:cdrom,disk,net 
 
或直接设备名 如:Ultra60 外置CDROM 
 
/pci@1f,4000/scsi@3,1/disk@6,0:f 
 
option : -r 系统重新配置 
 
-s 启动单用户环境 
 
11.eject [cdrom|floppy] 弹出cdrom或floppy 
 
12.reset 复位 
 
 
 
 
注意 –set-defaults命令只对有缺省值的参数生效。
 
  ______________________________________________________________________
 
  影响系统启动和自检的按键有:
 
  stop
 
  如果在系统加电自检时按下Stop键,就取消POST(加电自检)诊断,然后停留在OK状态。
 
  Stop+d
 
  在系统自检时同时按下stop和d键,系统将自动转到诊断模式,诊断模式下系统将更完全地进行自检。
 
  Stop+n
 
  如果由于NVRAM的设置不正确而导致系统无法正确启动时,可以在系统加电自检时同时按下stop和n键。它的作用是将NVRAM的参数值设为默认值。
 
  Stop+a
 
  同时按下stop和a键将中断操作系统的运行,退到OK状态。
 
  警告:尽量不要在操作系统运行时按stop+a,这将导致操作系统停止并且导致数据的丢失。在万不得以的时候,在按下stop+a后,键入sync命令用以将内存的数据同步到硬盘中。
 
  探测系统总线
 
  将外围设备(如光驱、硬盘)与主板连接在一起的I/O总线有SCSI(small computer system interface)总线和IDE (integrated drive electronics)总线。
 
  在OpenBoot 3.x系统中使用probe-命令
 
  在OpenBoot 3.x的系统中,使用probe-命令时,您会看到一个警告。如果您在操作系统运行状态下,用stop-a将系统强行暂停,或使用halt退出操作系统。这样的状态下使用probe-命令会造成机器挂起。因此,您必须先运行reset-all命令。
 
  请先设置auto-boot?为false后再运行reset-all,系统将重新自检,停留在OK状态下,然后可以运行这个命令
 
 
/kernel/sparcv9/unix
 
(二)环境变量 
 
1.auto-boot? 预定值=true 自动启动 
 
=false 进入PROM状态 
 
2.diag-switch? 预定值=false 启动状态,启动设备名为boot-device 
 
=true 诊断状态,启动设备名为diag-device 
 
3.boot-device 预定值=disk 
 
4.diag-device 预定值=net 
 
5.tpe-link-test? 网络检测 =true 检测网络(一部分机器具有此变量)
 
 
修改过配置以后需要保存到nvrom里
nvstore