@cdmonkey
2015-11-03T04:44:59.000000Z
字数 3815
阅读 1882
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
对于戴尔服务器的检测,首选应该通过对``
[root@oadb ~]# yum install -y OpenIPMI*# Start the service:[root@oadb ~]# /etc/init.d/ipmi start[root@oadb ~]# chkconfig ipmi on
ipmitool [-c|-h|-d N|-v|-V] -I open <command>ipmitool [-c|-h|-v|-V] -I lan -H <hostname>[-p <port>][-U <username>][-A <authtype>][-L <privlvl>][-a|-E|-P|-f <password>][-o <oemtype>][-O <sel oem>][-e <esc_char>]<command>ipmitool [-c|-h|-v|-V] -I lanplus -H <hostname>[-p <port>][-U <username>][-L <privlvl>][-a|-E|-P|-f <password>][-o <oemtype>][-O <sel oem>][-C <ciphersuite>][-Y|[-K|-k <kg_key>][-y <hex_kg_key>][-e <esc_char>]<command>
| 选项 | |
|---|---|
-a |
远程服务器密码提示。 |
-A <authtype> |
指定一个身份验证类型使用ipmiv1.5局域网会话激活过程中。支持的类型有NONE,PASSWORD, MD2, MD5, or OEM |
[root@oadb ~]# ipmitool -I open mc info|grep IPMIIPMI Version : 2.0
[root@oadb ~]# ipmitool -I open sensor list#命令能够获取传感器中各种监测值和该值的监测阈值,包括处理器温度,电压,风扇转速,电源调制模块温度,电源电压等。CPU 1 Temp | na | degrees C | na | na | na | na | na | na | naCPU 2 Temp | na | degrees C | na | na | na | na | na | na | naCPU 3 Temp | na | degrees C | na | na | na | na | na | na | naCPU 4 Temp | na | degrees C | na | na | na | na | na | na | naPS 1 Temp | na | degrees C | na | na | na | na | na | na | naPS 2 Temp | na | degrees C | na | na | na | na | na | na | naPS 3 Temp | na | degrees C | na | na | na | na | na | na | naPS 4 Temp | na | degrees C | na | na | na | na | na | na | naIOR Temp | na | degrees C | na | na | na | na | na | na | naIOH 1 Temp | na | degrees C | na | na | na | na | na | na | naIOH 2 Temp | na | degrees C | na | na | na | na | na | na | na...
[root@oadb ~]# ipmitool -I open sensor get "CPU 1 Temp"#CPU 1 Temp is the sensor ID.#命令能够获取指定ID的监测值,服务器品牌型号不同,ID表示也不同。通过上面的指令能够获取所有的传感器ID值。Locating sensor record...Sensor ID : CPU 1 Temp (0x1)Entity ID : 3.1Sensor Type (Analog) : TemperatureSensor Reading : Unable to read sensor: Device Not PresentEvent Status : Event Messages DisabledAssertion Events :Event Enable : Event Messages DisabledAssertions Enabled :
[root@oadb ~]# ipmitool -I open chassis status#命令能够查看主板状态,其中显示了主板电源信息以及工作状态信息等。System Power : onPower Overload : falsePower Interlock : inactiveMain Power Fault : falsePower Control Fault : falsePower Restore Policy : previousLast Power Event :Chassis Intrusion : inactiveFront-Panel Lockout : inactiveDrive Fault : falseCooling/Fan Fault : falseSleep Button Disable : not allowedDiag Button Disable : allowedReset Button Disable : not allowedPower Button Disable : allowedSleep Button Disabled : falseDiag Button Disabled : trueReset Button Disabled : falsePower Button Disabled : false
ipmitool -I open chassis power on # Remote bootipmitool -I open chassis power off # Remote shutdownipmitool -I open chassis power reset # Remote restart
[root@oadb ~]# ipmitool -I open lan print 1Set in Progress : Set CompleteAuth Type Support : NONE MD2 MD5 PASSWORDAuth Type Enable : Callback : MD2 MD5: User : MD2 MD5: Operator : MD2 MD5: Admin : MD2 MD5: OEM :IP Address Source : Static AddressIP Address : 192.168.100.32Subnet Mask : 255.255.255.0MAC Address : f0:1f:af:df:49:9bSNMP Community String : publicIP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10BMC ARP Control : ARP Responses Enabled, Gratuitous ARP DisabledDefault Gateway IP : 192.168.100.1Default Gateway MAC : 00:00:00:00:00:00Backup Gateway IP : 0.0.0.0Backup Gateway MAC : 00:00:00:00:00:00802.1q VLAN ID : Disabled802.1q VLAN Priority : 0RMCP+ Cipher Suites : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14Cipher Suite Priv Max : Xaaaaaaaaaaaaaa: X=Cipher Suite Unused: c=CALLBACK: u=USER: o=OPERATOR: a=ADMIN: O=OEM
http://blog.csdn.net/yunsongice/article/details/5408802
http://www.freeoa.net/osuport/netmanage/use-ipmitool-manage-remote-server_1370.html
无需于服务器上安装其他的软件,只需要客户端使用安装ipmitool工具,但相关的命令中应加入指定服务器的名字或地址信息。它能够通过内网监测远端的服务器,而通过内网进行远端访问需要使用用户名和密码(BMC内有一序列的用户名以及密码),其指令语法如下所示:
ipmitool -H IPaddress -U root -P password -I lan <command>