[关闭]
@cdmonkey 2015-11-03T04:44:59.000000Z 字数 3815 阅读 1659

Monitor DELL Server-IPMI

Nagios


一、简介

IPMI: Intelligent Platform Management Interface

不同制造商之间设备通常会使用不同管理软件,所以监测硬件不会像监测操作系统上的服务那样容易。为了便于对不同厂商的产品进行监测,服务器硬件管理接口都使用了业界统一的IPMI协议。

智能平台管理接口IPIM为管理使用英特尔结构的系统中所使用的外围设备采用的一种工业标准,该标准由英特尔、美国戴尔电脑、惠普等公司制定。用户能够利用IPMI监视服务器的物理健康状况,例如温度、电压、风扇工作状态、电源状态等。对服务器进行IPMI管理,则需要被检测的系统具有支持智能平台管理接口的硬件设备。

http://my.oschina.net/davehe/blog/88801
http://www.07net01.com/storage_networking/IPMIyuanchengguanliyidianjilu_53093_1357975254.html
http://www.linuxde.net/2013/10/15408.html

二、

对于戴尔服务器的检测,首选应该通过对``

Step 1:

Step 2: Install OpenIPMI

  1. [root@oadb ~]# yum install -y OpenIPMI*
  2. # Start the service:
  3. [root@oadb ~]# /etc/init.d/ipmi start
  4. [root@oadb ~]# chkconfig ipmi on
  1. ipmitool [-c|-h|-d N|-v|-V] -I open <command>
  2. ipmitool [-c|-h|-v|-V] -I lan -H <hostname>
  3. [-p <port>]
  4. [-U <username>]
  5. [-A <authtype>]
  6. [-L <privlvl>]
  7. [-a|-E|-P|-f <password>]
  8. [-o <oemtype>]
  9. [-O <sel oem>]
  10. [-e <esc_char>]
  11. <command>
  12. ipmitool [-c|-h|-v|-V] -I lanplus -H <hostname>
  13. [-p <port>]
  14. [-U <username>]
  15. [-L <privlvl>]
  16. [-a|-E|-P|-f <password>]
  17. [-o <oemtype>]
  18. [-O <sel oem>]
  19. [-C <ciphersuite>]
  20. [-Y|[-K|-k <kg_key>]
  21. [-y <hex_kg_key>]
  22. [-e <esc_char>]
  23. <command>
选项
-a 远程服务器密码提示。
-A <authtype> 指定一个身份验证类型使用ipmiv1.5局域网会话激活过程中。支持的类型有NONE,PASSWORD, MD2, MD5, or OEM

Get Local Information

  1. [root@oadb ~]# ipmitool -I open mc info|grep IPMI
  2. IPMI Version : 2.0
  1. [root@oadb ~]# ipmitool -I open sensor list
  2. #命令能够获取传感器中各种监测值和该值的监测阈值,包括处理器温度,电压,风扇转速,电源调制模块温度,电源电压等。
  3. CPU 1 Temp | na | degrees C | na | na | na | na | na | na | na
  4. CPU 2 Temp | na | degrees C | na | na | na | na | na | na | na
  5. CPU 3 Temp | na | degrees C | na | na | na | na | na | na | na
  6. CPU 4 Temp | na | degrees C | na | na | na | na | na | na | na
  7. PS 1 Temp | na | degrees C | na | na | na | na | na | na | na
  8. PS 2 Temp | na | degrees C | na | na | na | na | na | na | na
  9. PS 3 Temp | na | degrees C | na | na | na | na | na | na | na
  10. PS 4 Temp | na | degrees C | na | na | na | na | na | na | na
  11. IOR Temp | na | degrees C | na | na | na | na | na | na | na
  12. IOH 1 Temp | na | degrees C | na | na | na | na | na | na | na
  13. IOH 2 Temp | na | degrees C | na | na | na | na | na | na | na
  14. ...
  1. [root@oadb ~]# ipmitool -I open sensor get "CPU 1 Temp"
  2. #CPU 1 Temp is the sensor ID.
  3. #命令能够获取指定ID的监测值,服务器品牌型号不同,ID表示也不同。通过上面的指令能够获取所有的传感器ID值。
  4. Locating sensor record...
  5. Sensor ID : CPU 1 Temp (0x1)
  6. Entity ID : 3.1
  7. Sensor Type (Analog) : Temperature
  8. Sensor Reading : Unable to read sensor: Device Not Present
  9. Event Status : Event Messages Disabled
  10. Assertion Events :
  11. Event Enable : Event Messages Disabled
  12. Assertions Enabled :
  1. [root@oadb ~]# ipmitool -I open chassis status
  2. #命令能够查看主板状态,其中显示了主板电源信息以及工作状态信息等。
  3. System Power : on
  4. Power Overload : false
  5. Power Interlock : inactive
  6. Main Power Fault : false
  7. Power Control Fault : false
  8. Power Restore Policy : previous
  9. Last Power Event :
  10. Chassis Intrusion : inactive
  11. Front-Panel Lockout : inactive
  12. Drive Fault : false
  13. Cooling/Fan Fault : false
  14. Sleep Button Disable : not allowed
  15. Diag Button Disable : allowed
  16. Reset Button Disable : not allowed
  17. Power Button Disable : allowed
  18. Sleep Button Disabled : false
  19. Diag Button Disabled : true
  20. Reset Button Disabled : false
  21. Power Button Disabled : false
  1. ipmitool -I open chassis power on # Remote boot
  2. ipmitool -I open chassis power off # Remote shutdown
  3. ipmitool -I open chassis power reset # Remote restart
  1. [root@oadb ~]# ipmitool -I open lan print 1
  2. Set in Progress : Set Complete
  3. Auth Type Support : NONE MD2 MD5 PASSWORD
  4. Auth Type Enable : Callback : MD2 MD5
  5. : User : MD2 MD5
  6. : Operator : MD2 MD5
  7. : Admin : MD2 MD5
  8. : OEM :
  9. IP Address Source : Static Address
  10. IP Address : 192.168.100.32
  11. Subnet Mask : 255.255.255.0
  12. MAC Address : f0:1f:af:df:49:9b
  13. SNMP Community String : public
  14. IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
  15. BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
  16. Default Gateway IP : 192.168.100.1
  17. Default Gateway MAC : 00:00:00:00:00:00
  18. Backup Gateway IP : 0.0.0.0
  19. Backup Gateway MAC : 00:00:00:00:00:00
  20. 802.1q VLAN ID : Disabled
  21. 802.1q VLAN Priority : 0
  22. RMCP+ Cipher Suites : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14
  23. Cipher Suite Priv Max : Xaaaaaaaaaaaaaa
  24. : X=Cipher Suite Unused
  25. : c=CALLBACK
  26. : u=USER
  27. : o=OPERATOR
  28. : a=ADMIN
  29. : O=OEM

http://blog.csdn.net/yunsongice/article/details/5408802
http://www.freeoa.net/osuport/netmanage/use-ipmitool-manage-remote-server_1370.html

Get Remote Server Information

无需于服务器上安装其他的软件,只需要客户端使用安装ipmitool工具,但相关的命令中应加入指定服务器的名字或地址信息。它能够通过内网监测远端的服务器,而通过内网进行远端访问需要使用用户名和密码(BMC内有一序列的用户名以及密码),其指令语法如下所示:

  1. ipmitool -H IPaddress -U root -P password -I lan <command>
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注