@cdmonkey
2015-11-03T12:44:59.000000Z
字数 3815
阅读 1736
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 IPMI
IPMI Version : 2.0
[root@oadb ~]# ipmitool -I open sensor list
#命令能够获取传感器中各种监测值和该值的监测阈值,包括处理器温度,电压,风扇转速,电源调制模块温度,电源电压等。
CPU 1 Temp | na | degrees C | na | na | na | na | na | na | na
CPU 2 Temp | na | degrees C | na | na | na | na | na | na | na
CPU 3 Temp | na | degrees C | na | na | na | na | na | na | na
CPU 4 Temp | na | degrees C | na | na | na | na | na | na | na
PS 1 Temp | na | degrees C | na | na | na | na | na | na | na
PS 2 Temp | na | degrees C | na | na | na | na | na | na | na
PS 3 Temp | na | degrees C | na | na | na | na | na | na | na
PS 4 Temp | na | degrees C | na | na | na | na | na | na | na
IOR Temp | na | degrees C | na | na | na | na | na | na | na
IOH 1 Temp | na | degrees C | na | na | na | na | na | na | na
IOH 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.1
Sensor Type (Analog) : Temperature
Sensor Reading : Unable to read sensor: Device Not Present
Event Status : Event Messages Disabled
Assertion Events :
Event Enable : Event Messages Disabled
Assertions Enabled :
[root@oadb ~]# ipmitool -I open chassis status
#命令能够查看主板状态,其中显示了主板电源信息以及工作状态信息等。
System Power : on
Power Overload : false
Power Interlock : inactive
Main Power Fault : false
Power Control Fault : false
Power Restore Policy : previous
Last Power Event :
Chassis Intrusion : inactive
Front-Panel Lockout : inactive
Drive Fault : false
Cooling/Fan Fault : false
Sleep Button Disable : not allowed
Diag Button Disable : allowed
Reset Button Disable : not allowed
Power Button Disable : allowed
Sleep Button Disabled : false
Diag Button Disabled : true
Reset Button Disabled : false
Power Button Disabled : false
ipmitool -I open chassis power on # Remote boot
ipmitool -I open chassis power off # Remote shutdown
ipmitool -I open chassis power reset # Remote restart
[root@oadb ~]# ipmitool -I open lan print 1
Set in Progress : Set Complete
Auth Type Support : NONE MD2 MD5 PASSWORD
Auth Type Enable : Callback : MD2 MD5
: User : MD2 MD5
: Operator : MD2 MD5
: Admin : MD2 MD5
: OEM :
IP Address Source : Static Address
IP Address : 192.168.100.32
Subnet Mask : 255.255.255.0
MAC Address : f0:1f:af:df:49:9b
SNMP Community String : public
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Default Gateway IP : 192.168.100.1
Default Gateway MAC : 00:00:00:00:00:00
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14
Cipher 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>