IPMI(智能平臺管理接口)是一種開放標準的硬件管理接口規格,定義了嵌入式管理子系統進行通訊的特定方法。IPMI信息經過基板管理控制器(位於IPMI規格的硬件組件上)進行交流。使用低級硬件智能管理而不使用操做系統進行管理。IPMI針對大量監控、控制和自動回覆服務器的做業,提供了智能型的管理方式。用戶能夠利用IPMI監視服務器的物理健康特徵,如溫度、電壓、風扇工做狀態、電源狀態等。linux
Centos安裝ipmitoolbash
yum install ipmitool
啓動IPMI服務(默認安裝後是啓動的)服務器
[root@mu01 ~]# /etc/init.d/ipmi start Starting ipmi drivers: [ OK ]
系統下配置IPMI的IPide
在本機的linux系統下修改IPMI地址的獲取方式:ui
[root@cu01 ~]# ipmitool lan set 1 ipsrc static
在本機的linux系統下配置IPMI地址:spa
[root@cu01 ~]# ipmitool lan set 1 ipaddr 192.168.1.1 #Setting LAN IP Address to 192.168.1.1 [root@cu01 ~]# ipmitool lan set 1 netmask 255.255.0.0 #Setting LAN Subnet Mask to 255.255.0.0
查看IPMI信息操作系統
查看本機的IPMI信息接口
[root@mu01 ~]# ipmitool -I open lan print [root@mu01 ~]# ipmitool -I open lan print Set in Progress : Set Complete Auth Type Support : NONE MD2 MD5 PASSWORD Auth Type Enable : Callback : MD2 MD5 PASSWORD : User : MD2 MD5 PASSWORD : Operator : MD2 MD5 PASSWORD : Admin : MD2 MD5 PASSWORD : OEM : MD2 MD5 PASSWORD IP Address Source : Static Address IP Address : 192.168.1.1 Subnet Mask : 255.255.0.0 MAC Address : 00:25:90:6f:d7:82 SNMP Community String : public IP Header : TTL=0x00 Flags=0x00 Precedence=0x00 TOS=0x00 BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled Default Gateway IP : 10.0.1.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 : 1,2,3,6,7,8,11,12 Cipher Suite Priv Max : aaaaXXaaaXXaaXX : X=Cipher Suite Unused : c=CALLBACK : u=USER : o=OPERATOR : a=admin : O=OEM
使用IPMI開關機ip
在mu01管理節點上對其他計算節點操做it
硬重啓cu01:
[root@mu01 ~]#ipmitool -U admin -I lan -H 192.168.1.1 -P "admin" power reset
硬關機cu01:
[root@mu01 ~]#ipmitool -U admin -I lan -H 192.168.1.1 -P "admin" power off
軟關機cu01(如同輕按一下開關按鈕):
[root@mu01 ~]#ipmitool -U admin -I lan -H 192.168.1.1 -P "admin" power soft
硬開機cu01:
[root@mu01 ~]#ipmitool -U admin -I lan -H 192.168.1.1 -P "admin" power on