UJP - 技術情報

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

     

PROMコマンド

PROMコマンド


0.改定履歴

  • 2001.02.25 初版
  • 2002.09.14 Enterprise 450Rとかシリアル接続へのリンクを追加

1.はじめに

 このドキュメントでは,PROMに実装してあるテストコマンドの実行等を行う.
 なお,PROMは,Ultraマシンのバージョンによって異なるので,ここで紹介するすべてのコマンドが用意されているかは実機で確認する必要がある.

 このドキュメントでは,okプロンプトが"{0} ok"となっているが,これはCPUを複数搭載しているからである.

2.コマンドの内容

{0} ok help
Enter 'help command-name' or 'help category-name' for more help
(Use ONLY the first word of a category description) 
examples:  help select   -or-   help line
    Main categories are: 
Repeated loops
Defining new commands
Numeric output
Radix (number base conversions)
Arithmetic
Memory access
Line editor
System and boot configuration parameters
Select I/O devices
Floppy eject
Power on reset
Diag (diagnostic routines)
Diag-nv (Diagnostic NVRAM/environmental variables)
ASR Enable/Disable selected hardware subsystems
Environmental monitor
Resume execution
File download and boot 
nvramrc (making new commands permanent)
{0} ok 

 okプロンプトより,helpコマンドでdiagに関する情報を表示してみる.

{0} ok help diag
test  <device-specifier>   Run selftest method for specified device
  examples:
    test floppy       - test floppy disk drive
    test net          - test net
    test scsi         - test scsi
test-all        Execute 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
.post           Show POST results (failed hardware)
.asr            Show ASR enabled/disabled hardware
{0} ok

3.簡単なテスト

{0} ok test floppy
Testing floppy 
{0} ok test net
Testing net 
{0} ok test scsi
Testing scsi 
{0} ok

4.test-all

{0} ok test-all
Testing /pci@4,4000/pci@3/SUNW,isptwo@4 
The /pci@4,4000/pci@3/SUNW,isptwo@4 selftest failed. Return code = -1 
Testing /pci@4,4000/pci@3/SUNW,hme@0,1 
Internal loopback test -- succeeded.
Transceiver check  -- passed
Testing /pci@1f,4000/SUNW,m64B@4 
Display not installed
The /pci@1f,4000/SUNW,m64B@4 selftest failed. Return code = 192 
Testing /pci@1f,4000/scsi@2 
Testing /pci@1f,4000/scsi@3 
Testing /pci@1f,4000/network@1,1 
Testing /pci@1f,4000/ebus@1 
Testing /pci@1f,4000/ebus@1/SUNW,envctrl@14,600000 
Testing /pci@1f,4000/ebus@1/eeprom@14,0 
Testing /pci@1f,4000/ebus@1/fdthree@14,3023f0 
Testing /pci@1f,4000/ebus@1/ecpp@14,3043bc 
Testing /pci@1f,4000/ebus@1/su@14,3062f8 
Testing /pci@1f,4000/ebus@1/su@14,3083f8 
Testing /pci@1f,4000/ebus@1/se@14,400000 
{0} ok

 ここで何かエラーが発生している. デバイスisptwoとm64b24について調べればよい.

5.watch-clock

{0} ok watch-clock
Watching the 'seconds' register of the real time clock chip.
It should be 'ticking' once a second.
Type any key to stop.
13
{0} ok

 内部時計が正しく時間をきざんでいるかがわかる. 数字が順番にカウントダウンされるので,それが正しいかを確認する.

6.watch-netとwatch-net-all

{0} ok watch-net
Internal loopback test -- succeeded.
Transceiver check  -- passed
Looking for Ethernet Packets.
'.' is a Good Packet.  'X' is a Bad Packet.
Type any key to stop.
................................................................
................................................................
................................................................
.................
{0} ok

 ネットワークのテストを行う. 壊れたパケットの送受信があれば,Xが表示される.
 何かキーを押すまで続けられる.

 watch-net-allでは,すべてのネットワークインタフェイス毎に行う.

{0} ok watch-net-all
/pci@4,4000/pci@3/SUNW,hme@0,1
Internal loopback test -- succeeded.
Transceiver check  -- passed
Looking for Ethernet Packets.
'.' is a Good Packet.  'X' is a Bad Packet.
Type any key to stop.
................................................................
................................................................
................................................................
...........................
/pci@1f,4000/network@1,1
Internal loopback test -- succeeded.
Transceiver check  -- passed
Looking for Ethernet Packets.
'.' is a Good Packet.  'X' is a Bad Packet.
Type any key to stop.
...............................................
................................................................
................................................................
................................................................
................................................................
................................................................
.....................
{0} ok

7.probe-scsiとprobe-scsi-all

{0} ok probe-scsi
Primary UltraSCSI bus:
Target 0 
  Unit 0   Disk     SEAGATE ST34371W        0484
Target 1 
  Unit 0   Disk     SEAGATE ST318275LC      0001
Target 2 
  Unit 0   Disk     SEAGATE ST318275LC      0001
Target 3 
  Unit 0   Disk     SEAGATE ST318275LC      0001
Removeable-Media/External SCSI bus:
Target 6 
  Unit 0   Removable Read Only device    TOSHIBA XM5701TASUN12XCD0997
{0} ok

 接続されているSCSIメディアに関する情報が表示される.

 複数のSCSIディスク(外づけ)を含む場合は,-allをつけて実行すればよい.

{0} ok probe-scsi-all
/pci@4,4000/pci@3/SUNW,isptwo@4
/pci@1f,4000/scsi@2
Target 6 
  Unit 0   Removable Read Only device    TOSHIBA XM5701TASUN12XCD0997
/pci@1f,4000/scsi@3
Target 0 
  Unit 0   Disk     SEAGATE ST34371W        0484
Target 1 
  Unit 0   Disk     SEAGATE ST318275LC      0001
Target 2 
  Unit 0   Disk     SEAGATE ST318275LC      0001
Target 3 
  Unit 0   Disk     SEAGATE ST318275LC      0001
{0} ok

8..post

 POST(Power On Self Test)での情報を表示させる.

{0} ok .post
System status: OK
CPU0:          OK
CPU1:          OK
CPU2:          OK
CPU3:          OK
SC-Marvin:     OK
Psycho@1f:     OK
Psycho@4:      OK
Psycho@6:      OK
Cheerio:       OK
SCSI:          OK
Mem Bank0:     OK
Mem Bank1:     OK
Mem Bank2:     OK
Mem Bank3:     OK
PROM:          OK
NVRAM:         OK
TTY:           OK
Audio:         OK
SuperIO:       OK
PCI Slots:     OK
{0} ok

 ちなみに,このようにOKと出ていても,CPUが1つ壊れていた...

9..asr

 利用可能・不可能なハードウェアの一覧を表示させる.

{0} ok .asr
System status: Enabled
CPU0:          Enabled
CPU1:          Enabled
CPU2:          Enabled
CPU3:          Enabled
SC-Marvin:     Enabled
Psycho@1f:     Enabled
Psycho@4:      Enabled
Psycho@6:      Enabled
Cheerio:       Enabled
SCSI:          Enabled
Mem Bank0:     Enabled
Mem Bank1:     Enabled
Mem Bank2:     Enabled
Mem Bank3:     Enabled
PROM:          Enabled
NVRAM:         Enabled
TTY:           Enabled
Audio:         Enabled
SuperIO:       Enabled
PCI Slots:     Enabled
{0} ok

10..env

 CPU温度や,電源,ファンの状態など,サブシステムの内容を表示する.

{0} ok help environment
The environmental monitoring sub-system monitors for high
temperature conditions, as well as fan and power-supply failure
conditions. The actions performed by the monitor are controlled
by the setting of the variable 'env-monitor'. The available
options for setting up the environmental monitor are:
  o enabled    Environmental monitor will monitor the system and
               take appropriate actions including shutting down
               the system in the event of an error condition.
  o disabled   Environmental monitor is disabled.
  o advise     Environmental monitor will perform routine checks
               and will only report failures.
Use setenv env-monitor <option> to change the current mode.
Use .env to show the current environmental readings.
{0} ok .env
Environmental monitor: enabled
Ambient temperature:   20 deg.C  (Limit: 50 deg.C)
CPU0 temperature:    < 40 deg.C  (Limit: 80 deg.C)
CPU1 temperature:    < 40 deg.C  (Limit: 80 deg.C)
CPU2 temperature:    < 40 deg.C  (Limit: 80 deg.C)
CPU3 temperature:    < 40 deg.C  (Limit: 80 deg.C)
Power Supply 0 present
    Inlet temperature: 30 deg.C  (Limit: 55 deg.C)
     +3.3V diode temp: 28 deg.C  (Limit: 100 deg.C)
     +5.0V diode temp: 32 deg.C  (Limit: 100 deg.C)
    +12.0V diode temp: 28 deg.C  (Limit: 100 deg.C)
Power Supply 1 present
    Inlet temperature: 28 deg.C  (Limit: 55 deg.C)
     +3.3V diode temp: 26 deg.C  (Limit: 100 deg.C)
     +5.0V diode temp: 27 deg.C  (Limit: 100 deg.C)
    +12.0V diode temp: 27 deg.C  (Limit: 100 deg.C)
Disk & Power Supply fan 2: OK;  fan 1: OK;  fan 0: OK
CPU/Electronics Bay fan 0: OK;  fan 1: OK;  fan 2: OK
{0} ok 

12.printenv

{0} ok printenv
Variable Name         Value                          Default Value
tpe-link-test?        true                           true
scsi-initiator-id     7                              7
keyboard-click?       false                          false
keymap                                               
ttyb-rts-dtr-off      false                          false
ttyb-ignore-cd        true                           true
ttya-rts-dtr-off      false                          false
ttya-ignore-cd        true                           true
ttyb-mode             9600,8,n,1,-                   9600,8,n,1,-
ttya-mode             9600,8,n,1,-                   9600,8,n,1,-
pci-slot-skip-list    none                           none
pci0-probe-list       1,3,2,4                        1,3,2,4
upa-port-skip-list    none                           none
memory-interleave     auto                           auto
disk-led-assoc        0                              0
diag-level            min                            min
diag-script           normal                         normal
diag-targets          none                           none
diag-trigger          power-reset                    power-reset
diag-continue?        false                          false
diag-passes           1                              1
diag-verbosity        tests                          tests
env-monitor           enabled                        enabled
mfg-options           server
#power-cycles         128
system-board-serial#  806MC89C
system-board-date     34df4f17
fcode-debug?          false                          false
output-device         screen                         screen
input-device          keyboard                       keyboard
load-base             16384                          16384
boot-command          boot                           boot
auto-boot?            true                           true
auto-boot-on-error?   false                          false
watchdog-reboot?      false                          false
diag-file                                            
diag-device           net                            net
boot-file                                            
boot-device           disk net                       disk net
local-mac-address?    false                          false
ansi-terminal?        true                           true
screen-#columns       80                             80
screen-#rows          34                             34
silent-mode?          false                          false
use-nvramrc?          false                          false
nvramrc                                              
security-mode         none
security-password     
security-#badlogins   0
oem-logo              
oem-logo?             false                          false
oem-banner            
oem-banner?           false                          false
hardware-revision     
last-hardware-update  
diag-switch?          false                          false
{0} ok

11.set-defaults

{0} ok set-defaults
Setting NVRAM parameters to default values.
Platform is configured as a Server
{0} ok

12.power-off

 電源をOffにする. スイッチとの連動はしない.

{0} ok power-off

参考



広告スペース
Google