戴爾服務器使用omreport(OMSA)查看監控硬件信息

安裝OMSA

wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
yum install -y net-snmp net-snmp-devel net-snmp-utils wget perl OpenIPMI yum -y install srvadmin-all                           #安裝路徑:/opt/dell/srvadmin/
/opt/dell/srvadmin/sbin/srvadmin-services.sh start #啓動OMSA ln -s /opt/dell/srvadmin/bin/omreport /usr/local/bin/

備用地址

官方網址

戴爾服務器使用omreport硬件查看信息

1、命令指南

omreport chassis # 顯示全部主要組件的常規狀態 omreport chassis memory # 顯示內存信息 omreport chassis temps # 顯示系統主要組件的溫度 omreport storage adisk controller=0 # 查看磁盤陳列中的硬盤狀態 omreport storage pdisk controller=0 # 查看物理磁盤信息 omreport storage vdisk controller=0 # 查看虛擬硬盤的狀態 omreport storage controller # 查看控制器(即RAID卡)的屬性 omreport storage enclosure controller=0 # 查看enclosure的屬性 omreport storage battery # 查看電池屬性

在寫腳本的時候還能夠這樣使用好分割數據:omreport chassis info -fmt ssvlinux

-fmt ssv

例:ios

[root@localhost wcy]# omreport chassis info -fmt ssv Chassis Information Index;0 Chassis Name;Main System Chassis Host Name;localhost.localdomain iDRAC7 Version;1.40.40 (Build 17) Lifecycle Controller 2 Version;1.1.5.165 Chassis Model;PowerEdge R420 Chassis Lock;Present Chassis Service Tag;6X8QZY1 Express Service Code;15070774393 Chassis Asset Tag;Unknown Flash chassis identify LED state;Off Flash chassis identify LED timeout value;300 [root@localhost wcy]# omreport chassis info Chassis Information Index : 0 Chassis Name : Main System Chassis Host Name : localhost.localdomain iDRAC7 Version : 1.40.40 (Build 17) Lifecycle Controller 2 Version             : 1.1.5.165 Chassis Model : PowerEdge R420 Chassis Lock : Present Chassis Service Tag : 6X8QZY1 Express Service Code : 15070774393 Chassis Asset Tag : Unknown Flash chassis identify LED state : Off Flash chassis identify LED timeout value : 300

2、命令樣例

1.系統摘要信息

機箱型號#服務器型號
快速服務代碼#快速服務代碼(可在在官網查詢服務器保修時間)
機箱服務標籤#服務標籤git

[root@zeping ~]# omreport chassis info Chassis Information Index : 0 Chassis Name : Main System Chassis Host Name : zeping.linuxhub.cn iDRAC7 Version : 1.40.40 (Build 17) Lifecycle Controller 2 Version : 1.1.5.165 Chassis Model : PowerEdge R720 Chassis Lock : Present Chassis Service Tag : 4TMMGY1 Express Service Code : 10498648393 Chassis Asset Tag : Unknown Flash chassis identify LED state : Off Flash chassis identify LED timeout value : 300

2.顯示虛擬磁盤信息(陣列信息)

狀態#陣列狀態
佈局#陣列卡類型
尺寸#陣列空間大小
總線協議#總線協議
媒體#介質github

[root@zeping ~]# omreport storage vdisk List of Virtual Disks in the System Controller PERC H710 Mini (Embedded) ID : 0 Status : Ok Name : Virtual Disk0 State : Ready Hot Spare Policy violated : Not Assigned Encrypted : No Layout : RAID-5 Size : 11,176.50 GB (12000675495936 bytes) T10 Protection Information Status : No Associated Fluid Cache State : Not Applicable Device Name : /dev/sda Bus Protocol : SAS Media : HDD Read Policy : Adaptive Read Ahead Write Policy : Write Back Cache Policy : Not Applicable Stripe Element Size : 64 KB Disk Cache Policy : Disabled

3.查看物理磁盤信息

供應商ID#供應商ID
產品編號#磁盤ID
序列號#序列號
部件編號#部件號
修訂版#修訂
製造日#磁盤製造日期(日)
製造周#磁盤製造日期(周)
製造年#磁盤製造日期(年份)
容量#磁盤容量
已用RAID磁盤空間#已用RAID磁盤空間
可用RAID磁盤空間#可用RAID磁盤空間
扇區大小#扇區大小
熱備用#是否熱備份
總線協議#總線協議
媒體#介質
協商速度#協商速度
有能力快速#支持速度bootstrap

[root@zeping ~]# omreport storage controller controller=0 #ID等於0的鏈接器 ID : 0:1:0 Status : Ok Name : Physical Disk 0:1:1 State : Online Power Status : Spun Up Bus Protocol : SAS Media : HDD Part of Cache Pool : Not Applicable Remaining Rated Write Endurance : Not Applicable Failure Predicted : No Revision : MS05 Driver Version : Not Applicable Model Number : Not Applicable T10 PI Capable : No Certified : Yes Encryption Capable : No Encrypted : Not Applicable Progress : Not Applicable Mirror Set ID : Not Applicable Capacity : 3,725.50 GB (4000225165312 bytes) Used RAID Disk Space : 3,725.50 GB (4000225165312 bytes) Available RAID Disk Space : 0.00 GB (0 bytes) Hot Spare : No Vendor ID : DELL(tm) Product ID : ST4000NM0005 Serial No. : Z4C04CQ7 Part Number : TH0XWM1W2123363I02P9A00 Negotiated Speed : 6.00 Gbps Capable Speed : 6.00 Gbps PCIe Negotiated Link Width : Not Applicable PCIe Maximum Link Width : Not Applicable Sector Size : 512B Device Write Cache : Not Applicable Manufacture Day : 07 Manufacture Week : 11 Manufacture Year : 2016 SAS Address : 5000C500853BD529 Non-RAID HDD Disk Cache Policy : Not Applicable Disk Cache Policy : Not Applicable Form Factor : Not Available Sub Vendor : Not Available

4.顯示系統主要組件的溫度

讀數#當前溫度
最小警告閾值#警告閾值最小溫度
最大警告閾值#警告閾值最大溫度
最小故障閾值#故障閾值最小溫度
最大故障閾值#故障閾值最大溫度bash

[root@zeping ~]# omreport chassis temps Temperature Probes Information ------------------------------------ Main System Chassis Temperatures: Ok ------------------------------------ Index : 0 Status : Ok Probe Name : System Board Inlet Temp Reading : 29.0 C Minimum Warning Threshold : 3.0 C Maximum Warning Threshold : 42.0 C Minimum Failure Threshold : -7.0 C Maximum Failure Threshold : 47.0 C

5.內存插槽信息

已安裝容量#安裝容量
最大容量#最大容量
操做系統可用的總安裝容量#操做系統可用的總安裝容量
可用的插槽#可用的插槽
使用的插槽#已用插槽
鏈接器名稱#鏈接器上的內存設備
類型#內存類型
尺寸#單條內存大小服務器

[root@zeping ~]# 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 : 65536 MB Maximum Capacity : 786432 MB Slots Available : 24 Slots Used : 8 Error Correction : Multibit ECC Total of Memory Array(s) Total Installed Capacity : 65536 MB Total Installed Capacity Available to the OS : 64575 MB Total Maximum Capacity : 786432 MB Details of Memory Array 1 Index : 0 Status : Ok Connector Name : DIMM_A1 Type : DDR3 - Synchronous Registered (Buffered) Size : 8192 MB

6.CPU處理器信息

處理器品牌#處理器品牌
處理器版本#處理器版本
當前速度#當前速度
核心數#核心數dom

[root@zeping ~]# omreport chassis processors Processors Information Health : Ok Index : 0 Status : Ok Connector Name : CPU1 Processor Brand : Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz Processor Version : Model 45 Stepping 7 Current Speed : 2000 MHz State : Present Core Count : 6

7.CPU處理器詳細信息

64位支持#64位支持
超線程(HT)#超線程(HT)
虛擬化技術(VT)#虛擬化技術(VT)
基於需求的切換(DBS)#按需切換技術(DBS)ide

[root@zeping ~]# omreport chassis pwrsupplies Power Supplies Information Power Supply Redundancy Redundancy Status : Full Individual Power Supply Elements Index : 0 Status : Ok Location : PS1 Status Type : AC Rated Input Wattage : 900 W Maximum Output Wattage : 750 W Firmware Version : 69.45.99 Online Status : Presence Detected Power Monitoring Capable : Yes

8.電源設備信息

額定輸入功率#額定輸入瓦特
最大輸出功率#最大輸出瓦特佈局

[root@zeping ~]# omreport chassis pwrsupplies Power Supplies Information Power Supply Redundancy Redundancy Status : Full Individual Power Supply Elements Index : 0 Status : Ok Location : PS1 Status Type : AC Rated Input Wattage : 900 W Maximum Output Wattage : 750 W Firmware Version : 69.45.99 Online Status : Presence Detected Power Monitoring Capable : Yes

9.電源管理

讀取#當前功耗
警告閾值#警告閾值功耗
故障閾值#故障閾值功耗

Power Headroom#電源淨空
System Instant Skroom#系統瞬時淨空
System Peak Headroom#系統峯值淨空

[root@zeping ~]# omreport chassis pwrmonitoring Power Consumption Information Power Consumption Index : 2 Status : Ok Probe Name : System Board Pwr Consumption Reading : 126 W Warning Threshold : 896 W Failure Threshold : 980 W Amperage PS1 Current 1 : 0.2 A PS2 Current 2 : 0.0 A Power Headroom System Instantaneous Headroom : 756 W System Peak Headroom : 613 W Power Tracking Statistics Statistic : Energy Consumption Measurement Start Time : Wed Jul 10 01:37:33 2013 Measurement Finish Time : Fri Jul 8 09:27:41 2016 Reading : 2981.0 kWh Statistic : System Peak Power Measurement Start Time : Wed Jul 10 01:37:33 2013 Peak Time : Fri Jul 19 10:32:15 2013 Peak Reading : 287 W Statistic : System Peak Amperage Measurement Start Time : Wed Jul 10 01:37:33 2013 Peak Time : Sat Jan 11 07:35:38 2014 Peak Reading : 6.1 A

10.風扇探測器信息

閱讀#當前風扇轉速(轉/分)
最小故障閾值#故障閾值最小(轉/分)

[root@zeping ~]# omreport chassis fans Fan Probes Information Fan Redundancy Redundancy Status : Full Probe List Index : 0 Status : Ok Probe Name : System Board Fan1 RPM Reading : 3960 RPM Minimum Warning Threshold : 840 RPM Maximum Warning Threshold : [N/A] Minimum Failure Threshold : 600 RPM Maximum Failure Threshold : [N/A]

11.硬件日誌

omreport system esmlog #硬件日誌 omreport system alertlog #警報日誌 omreport system alertaction #查看爲系統組件的警告和故障事件所配置的警報措施的摘要

查看其餘信息

//內存
# free -m # cat /proc/meminfo # dmidecode -t memory //CPU
# lscpu # cat /proc/cpuinfo # dmidecode -t processor # dmidecode | grep "CPU" //獲取CPU信息 //硬盤
# df -lhP # lsblk # fdisk -l # dmesg|grep sd //查看開機信息裏面的磁盤info
# hdparm -I /dev/sda //查看磁盤硬件信息、開啓的功能等,信息特別詳細 【hdparm須要yum安裝】
# smartctl -H /dev/sda //查看硬盤健康狀態
# smartctl --all /dev/sda //【smartctl須要yum安裝才能用】
# smartctl -h //還有不少有用的參數 //網卡
# lspci|grep -i eth # ifconfig -a # ip link show # ethtool eth0 //顯示網卡eth0的詳細參數和指標 //系統信息
# dmidecode -t system # dmidecode | grep"Product" # dmidecode | grep"Manufacturer" //獲取廠商
# dmidecode | grep -B 4 "SerialNumber" | more //獲取序號信息
# dmidecode | grep "Date" //獲取生產日期 //dmesg和dmidecode還有不少信息,涵蓋了所有硬件信息。 //主板
# lspci //BIOS
# dmidecode -t bios # dmidecode -q //列出全部有用的信息 //RAID信息
# lspci|grep RAID //列出RAID卡的信息
# megacli64 //須要額外安裝
相關文章
相關標籤/搜索