DELLサーバのハードウェア状態をコマンドにより取得 (omreport)

目的

サーバ状態(特にディスク状態)を取得したい
条件は、DELLサーバで Dell OpenManage Server Administrator がインストールされている事

汎用的に使えるコマンド

下記のように色々とありますが人間でも機械でも見やすく
取得したかったり、RAIDコントローラの詳細情報を見たい事があると思います。

  • lspci
  • cat /proc/scsi/scsi (etc…
  • dmidecode

 

omreport コマンド

バージョン等にもよりけり取得出来る情報に幅があると思いますが
かなり昔のサーバ(2000年位)ですが、色々な値が取得可能です。
下記でほんの一部の情報です。

実際のエラーステータス表示

今回は社内検証用サーバでオレンジランプが点滅しており
RAID状態の崩れたサーバからサンプルで値を取得してみました。

論理ディスク状態が Degraded

Name : Virtual Disk 0
State : Degraded

物理ディスク状態が Critical / Offline

Status : Critical
Name : Physical Disk 0:1
State : Offline

活用する事でデータセンターに行かずとも
ラック構成図等とマッシュアップする事で
温度をマッピングしたり、サーバアラートと組み合わせる事で
状態を視覚化する事が出来そうです。

他にも取得できたサーバ情報は下記となります。

こちらのリンク先にかなり詳細な使い方がありましたのでご参考に下さい。
http://cavepopo.hd.free.fr/wordpress/linux/dell-server-utility-omreport/

 

機種情報

---------------------
Main System Chassis
---------------------
Chassis Information
Chassis Model              : PowerEdge 1650
Chassis Service Tag        : [SERVICE TAG]
Chassis Lock               : Present
Chassis Asset Tag          :

Processor 1
Processor Manufacturer     : Intel
Processor Family           : Pentium III
Processor Version          : Model 11 Stepping 4
Current Speed              : 1266 MHz
Maximum Speed              : 1533 MHz
External Clock Speed       : 133 MHz
Voltage                    : 1500 mV

Memory
Total Installed Capacity   : 512 MB
Memory Available to the OS : 503 MB
Total Maximum Capacity     : 4096 MB
Memory Array Count         : 1

Memory Array 1
Location                   : System Board or Motherboard
Use                        : System Memory
Installed Capacity         : 512 MB
Maximum Capacity           : 4096 MB
Slots Available            : 4
Slots Used                 : 2
ECC Type                   : Multibit ECC

Slot PCI1
Adapter                    : [Not Occupied]
Type                       : PCI 66 MHz
Data Bus Width             : 64 Bits
Speed                      : 66 MHz
Slot Length                : Long
Voltage Supply             : 3.3 Volts

Slot PCI2
Adapter                    : [Not Occupied]
Type                       : PCI 66 MHz
Data Bus Width             : 64 Bits
Speed                      : 66 MHz
Slot Length                : Short
Voltage Supply             : 3.3 Volts

BIOS Information
Manufacturer               : Dell Inc.
Version                    : A11
Release Date               : 10/08/2003

 

RAIDコントローラより取得したRAIDステータス

# omreport storage vdisk
List of Virtual Disks in the System

Controller PERC 3/Di (Embedded)
ID                  : 0
Status              : Non-Critical
Name                : Virtual Disk 0
State               : Degraded
Progress            : Not Applicable
Layout              : RAID-1
Size                : 33.90 GB (36398825472 bytes)
Device Name         : /dev/sda
Type                : SCSI
Read Policy         : Read Cache Enabled
Write Policy        : Write Cache Enabled Protected
Cache Policy        : Not Applicable
Stripe Element Size : Not Applicable
Disk Cache Policy   :

 

RAIDコントローラより取得した物理ディスクの詳細ステータス

# omreport storage pdisk controller=0
List of Physical Disks on Controller PERC 3/Di (Embedded)

Controller PERC 3/Di (Embedded)
ID                        : 0:0
Status                    : Ok
Name                      : Physical Disk 0:0
State                     : Online
Failure Predicted         : No
Progress                  : Not Applicable
Type                      : SCSI
Capacity                  : 33.90 GB (36398759936 bytes)
Used RAID Disk Space      : 33.90 GB (36398759936 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : [VENDOR ID]
Product ID                : [PRODUCT ID]
Revision                  : [REVSION]
Serial No.                : [HDD SERIAL NUMBER]
Negotiated Speed          : Not Available
Capable Speed             : Not Available
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : Not Available

ID                        : 0:1
Status                    : Critical
Name                      : Physical Disk 0:1
State                     : Offline
Failure Predicted         : No
Progress                  : Not Applicable
Type                      : SCSI
Capacity                  : 33.90 GB (36398759936 bytes)
Used RAID Disk Space      : 0.00 GB (0 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : [VENDOR ID]
Product ID                : [PRODUCT ID]
Revision                  : [REVSION]
Serial No.                : [HDD SERIAL NUMBER]
Negotiated Speed          : Not Available
Capable Speed             : Not Available
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : Not Available

 

ハードウェア全体の状態

# omreport chassis
Health

Main System Chassis

SEVERITY     : COMPONENT
Ok           : Fans
Ok           : Intrusion
Ok           : Memory
Ok           : Power Supplies
Ok           : Processors
Ok           : Temperatures
Ok           : Voltages
Non-Critical : Hardware Log

For further help, type the command followed by -?

 

BIOS設定値

# omreport chassis biossetup
BIOS Setup

General
Attribute : Num Lock
Setting   : On

Attribute : Diskette
Setting   : Auto

Attribute : NIC 1
Setting   : Enabled only

Attribute : NIC 2
Setting   : Enabled only
...

 

omhelpコマンド

豊富なオプションの omreportコマンドの引数を確認できました。

# omhelp omreport

omreport         Reports component properties.

The available command(s) are:

Command          Description
about            Product and version properties.
system           System component properties.
rac              Command not supported. Use the racadm utility.
chassis          Chassis component properties.
storage          Display storage component properties.
...

 
カテゴリ階層が分かれているため、都度 omhelpコマンドで確認できます。

# omhelp omreport chassis

chassis          Chassis component properties.

The available command(s) are:

Command          Description
pwrmonitoring    Power monitoring properties.
hwperformance    Hardware performance information.
acswitch         AC switch settings.
bios             BIOS properties.
biossetup        BIOS setup configuration.
bmc              Remote Access information.
                   SUBCOMMAND DEPRECATION WARNING:
                   This subcommand is deprecated and will be discontinued in
                   a subsequent release.
                   Use the subcommand "remoteaccess" instead.
fans             Fan probe(s) properties.
fru              System Components (FRU) information.
fancontrol       Fan control settings.
leds             Chassis LED settings.
firmware         Firmware properties.
info             Chassis information.
intrusion        Chassis intrusion status.
memory           System memory configuration.
nics             Network interface card(s) properties.
ports            Port(s) properties.
frontpanel       Front panel button control settings.
processors       Processor(s) properties.
pwrsupplies      Power supply(s) properties.
slots            Slot(s) properties.
temps            Temperature probe(s) properties.
volts            Voltage probe(s) properties.
remoteaccess     Remote Access information.
batteries        Battery(s) properties.
...

投稿者プロフィール

takashi
Japan AWS Ambassadors 2023-
開発会社での ASP型WEBサービス企画 / 開発 / サーバ運用 を経て
2010年よりスカイアーチネットワークスに在籍しております

機械化/効率化/システム構築を軸に人に喜んで頂ける物作りが大好きです。

ABOUTこの記事をかいた人

Japan AWS Ambassadors 2023- 開発会社での ASP型WEBサービス企画 / 開発 / サーバ運用 を経て 2010年よりスカイアーチネットワークスに在籍しております 機械化/効率化/システム構築を軸に人に喜んで頂ける物作りが大好きです。