dell开源工具omsa安装后可查看硬件信息状态,硬件报错等。类似于dell企业版idrac
1.安装epel源
rpm -ivh http://mirrors.hustunique.com/epel/6/i386/epel-release-6-8.noarch.rpm
2.安装依赖包
yum install libcmpiCppImpl0 libwsman1 sblim-sfcb sblim-sfcc openwsman-client openwsman-server smbios-utils
3.获取dell最新yum的rpeo
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
4./etc/redhat-release添加redhat标识(rhel系统不用)
sed -i 's/$/ Santiago/' /etc/redhat-release
5.安装openmanage所有包
yum install srvadmin-all
6.修改openmanage对系统类型的检查:
sed -i 's/OEM String 1/Vendor/' /opt/dell/srvadmin/sbin/CheckSystemType
7.logout系统再login,运行openmanage(全OK则启动成功)
/opt/dell/srvadmin/sbin/srvadmin-services.sh start
8.访问https://yourserver:1311(账号密码为系统root账号密码)
9.通过CLI命令显示硬件信息:
(1)(显示帮助信息):
/opt/dell/srvadmin/bin/omreport -?
omreport Reports component properties.
The available command(s) are:
Command Description
about Product and version properties.
licenses Displays the digital licenses of the installed hardware devices.
preferences Report system preferences.
system System component properties.
chassis Chassis component properties.
storage Display storage component properties.
Usage: omreport <command...> [name=value...] ... [option...]
Valid command line options are:
-? Print available command(s) or command help.
-fmt <lst|tbl|ssv|cdv|xml> Format for output results, default is lst.
Where: lst List format.
tbl Table format.
ssv Semicolon separated format.
cdv Custom delimiter separated format.
xml Raw XML format.
-outc <file> Redirect output to file, delete old if exists.
OR
-outa <file> Redirect output to file, append to old if exists.
OR
Output may also be redirected using Operating System facilities (e.g. |more).
个人以为这里主要用到chassis,storage两个分支
给几个例子:
查看电源:
omreport chassis pwrmonitoring
Power Consumption Information
Power Consumption
Index : 1
Status : Ok
Probe Name : System Board System Level
Reading : 77 W
Warning Threshold : 917 W
Failure Threshold : 966 W
Amperage
PS 1 Current : 0.2 A
Power Headroom
System Instantaneous Headroom : 548 W
System Peak Headroom : 437 W
Power Tracking Statistics
Statistic : Energy Consumption
Measurement Start Time : Tue Sep 13 08:26:31 2011
Measurement Finish Time : Mon Mar 10 14:28:25 2014
Reading : 386.7 KWh
Statistic : System Peak Power
Measurement Start Time : Mon Sep 5 10:22:06 2011
Peak Time : Fri Aug 31 03:41:28 2012
Peak Reading : 193 W
Statistic : System Peak Amperage
Measurement Start Time : Mon Sep 5 10:22:06 2011
Peak Time : Sat Aug 18 09:35:54 2012
Peak Reading : 0.9 A
查看风扇:
omreport chassis fans
Fan Probes Information
Fan Redundancy
Redundancy Status : Full
Probe List
Index : 0
Status : Ok
Probe Name : System Board FAN MOD 1A RPM
Reading : 5160 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 1
Status : Ok
Probe Name : System Board FAN MOD 2A RPM
Reading : 5280 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 2
Status : Ok
Probe Name : System Board FAN MOD 3A RPM
Reading : 5280 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 3
Status : Ok
Probe Name : System Board FAN MOD 4A RPM
Reading : 5160 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 4
Status : Ok
Probe Name : System Board FAN MOD 5A RPM
Reading : 5280 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 5
Status : Ok
Probe Name : System Board FAN MOD 6A RPM
Reading : 5160 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 6
Status : Ok
Probe Name : System Board FAN MOD 1B RPM
Reading : 3960 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 7
Status : Ok
Probe Name : System Board FAN MOD 2B RPM
Reading : 3960 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 8
Status : Ok
Probe Name : System Board FAN MOD 3B RPM
Reading : 3960 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 9
Status : Ok
Probe Name : System Board FAN MOD 4B RPM
Reading : 3960 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 10
Status : Ok
Probe Name : System Board FAN MOD 5B RPM
Reading : 3840 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
Index : 11
Status : Ok
Probe Name : System Board FAN MOD 6B RPM
Reading : 3960 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]
查看内存:
omreport chassis memory
Memory Information
Health : Ok
Attributes of Memory Array(s)
Attributes of Memory Array(s)
Location : System Board or Motherboard
Use : System Memory
Installed Capacity : 16384 MB
Maximum Capacity : 196608 MB
Slots Available : 12
Slots Used : 4
Error Correction : Multibit ECC
Total of Memory Array(s)
Total Installed Capacity : 16384 MB
Total Installed Capacity Available to the OS : 15934 MB
Total Maximum Capacity : 196608 MB
Details of Memory Array 1
Index : 0
Status : Ok
Connector Name : DIMM_A1
Type : DDR3 - Synchronous Registered (Buffered)
Size : 4096 MB
Index : 1
Status : Ok
Connector Name : DIMM_A2
Type : DDR3 - Synchronous Registered (Buffered)
Size : 4096 MB
Index :
Status : Unknown
Connector Name : DIMM_A3
Type : [Not Occupied]
Size :
Index :
Status : Unknown
Connector Name : DIMM_A4
Type : [Not Occupied]
Size :
Index :
Status : Unknown
Connector Name : DIMM_A5
Type : [Not Occupied]
Size :
Index :
Status : Unknown
Connector Name : DIMM_A6
Type : [Not Occupied]
Size :
Index : 2
Status : Ok
Connector Name : DIMM_B1
Type : DDR3 - Synchronous Registered (Buffered)
Size : 4096 MB
Index : 3
Status : Ok
Connector Name : DIMM_B2
Type : DDR3 - Synchronous Registered (Buffered)
Size : 4096 MB
Index :
Status : Unknown
Connector Name : DIMM_B3
Type : [Not Occupied]
Size :
Index :
Status : Unknown
Connector Name : DIMM_B4
Type : [Not Occupied]
Size :
Index :
Status : Unknown
Connector Name : DIMM_B5
Type : [Not Occupied]
Size :
Index :
Status : Unknown
Connector Name : DIMM_B6
Type : [Not Occupied]
Size :
查看cpu:
omreport chassis processors
Processors Information
Health : Ok
Index : 0
Status : Ok
Connector Name : CPU1
Processor Brand : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
Processor Version : Model 44 Stepping 2
Current Speed : 2400 MHz
State : Present
Core Count : 6
Index : 1
Status : Ok
Connector Name : CPU2
Processor Brand : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
Processor Version : Model 44 Stepping 2
Current Speed : 2400 MHz
State : Present
Core Count : 6
查看cmos电池:
omreport chassis batteries
Batteries
Health : Ok
Individual Battery Elements
Index : 0
Status : Ok
Probe Name : System Board CMOS Battery
Reading : Good
查看raid卡:
omreport storage controller
Controller SAS 6/iR Integrated (Embedded)
Controllers
ID : 0
Status : Ok
Name : SAS 6/iR Integrated
Slot ID : Embedded
State : Ready
Firmware Version : 00.25.47.00.06.22.03.00
Latest Available Firmware Version : Not Applicable
Driver Version : 3.04.20
Minimum Required Driver Version : Not Applicable
Storport Driver Version : Not Applicable
Minimum Required Storport Driver Version : Not Applicable
Number of Connectors : 2
Rebuild Rate : Not Applicable
BGI Rate : Not Applicable
Check Consistency Rate : Not Applicable
Reconstruct Rate : Not Applicable
Alarm State : Not Applicable
Cluster Mode : Not Applicable
SCSI Initiator ID : Not Applicable
Cache Memory Size : Not Applicable
Patrol Read Mode : Not Applicable
Patrol Read State : Not Applicable
Patrol Read Rate : Not Applicable
Patrol Read Iterations : Not Applicable
Abort Check Consistency on Error : Not Applicable
Allow Revertible Hot Spare and Replace Member : Not Applicable
Load Balance : Not Applicable
Auto Replace Member on Predictive Failure : Not Applicable
Redundant Path view : Not Applicable
CacheCade Capable : Not Applicable
Persistent Hot Spare : Not Applicable
Encryption Capable : Not Applicable
Encryption Key Present : Not Applicable
Encryption Mode : Not Applicable
Preserved Cache : Not Applicable
查看虚拟磁盘:
omreport storage vdisk
List of Virtual Disks in the System
Controller SAS 6/iR Integrated (Embedded)
ID : 0
Status : Ok
Name : Virtual Disk 0
State : Ready
Hot Spare Policy violated : Not Assigned
Encrypted : Not Applicable
Layout : RAID-1
Size : 278.88 GB (299439751168 bytes)
Associated Fluid Cache State : Not Applicable
Device Name : /dev/sda
Bus Protocol : SAS
Media : HDD
Read Policy : Not Applicable
Write Policy : Not Applicable
Cache Policy : Not Applicable
Stripe Element Size : Not Applicable
Disk Cache Policy : Disabled
查看物理磁盘:
omreport storage pdisk controller=0
List of Physical Disks on Controller SAS 6/iR Integrated (Embedded)
Controller SAS 6/iR Integrated (Embedded)
ID : 0:0:0
Status : Ok
Name : Physical Disk 0:0:0
State : Online
Power Status : Not Applicable
Device Name : Not Available
Bus Protocol : SAS
Media : HDD
Part of Cache Pool : Not Applicable
Device Life Remaining : Not Applicable
Remaining Rated Write Endurance : Not Applicable
Failure Predicted : No
Revision : DA07
Driver Version : Not Applicable
Model Number : Not Applicable
Certified : Not Applicable
Encryption Capable : No
Encrypted : Not Applicable
Progress : Not Applicable
Mirror Set ID : Not Applicable
Capacity : 278.88 GB (299439751168 bytes)
Used RAID Disk Space : 278.88 GB (299439751168 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare : No
Vendor ID : DELL(tm)
Product ID : MBF2300RC
Serial No. : EB03PB80BAGA
Part Number : PH0740Y77557118K83L4A03
Negotiated Speed : 3.00 Gbps
Capable Speed : 3.00 Gbps
Device Write Cache : Not Applicable
Manufacture Day : 07
Manufacture Week : 34
Manufacture Year : 2011
SAS Address : 50000393781B0D5E
ID : 0:0:1
Status : Ok
Name : Physical Disk 0:0:1
State : Online
Power Status : Not Applicable
Device Name : Not Available
Bus Protocol : SAS
Media : HDD
Part of Cache Pool : Not Applicable
Device Life Remaining : Not Applicable
Remaining Rated Write Endurance : Not Applicable
Failure Predicted : No
Revision : DA07
Driver Version : Not Applicable
Model Number : Not Applicable
Certified : Not Applicable
Encryption Capable : No
Encrypted : Not Applicable
Progress : Not Applicable
Mirror Set ID : Not Applicable
Capacity : 278.88 GB (299439751168 bytes)
Used RAID Disk Space : 278.88 GB (299439751168 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare : No
Vendor ID : DELL(tm)
Product ID : MBF2300RC
Serial No. : EB03PB80BF26
Part Number : PH0740Y77557118K843OA03
Negotiated Speed : 3.00 Gbps
Capable Speed : 3.00 Gbps
Device Write Cache : Not Applicable
Manufacture Day : 07
Manufacture Week : 34
Manufacture Year : 2011
SAS Address : 500003937820726A
*以上步骤在dellR610,710 系统为centos6.1~3上成功,dellR620 centos6.4以上时有报错。暂未找到原因
此文非原创,只是按照官方文档及谷歌。留作备忘,随意转载