???IPMI????/???Linux??????
???????????? ???????[ 2015/1/16 11:33:06 ] ????????Linux ?????? ???
????1 IPMI????
????IPMI??????????????????????????????????
????1????????豸??????????????CPU????????????????????????
????2?????豸A??????????????????豸B??????????????????????????????????????????μ?嶯????????
????IPMI??????????????????????????ο?[1]????????????????
????[1]:???ipmitool???Linux????????????ipmi????http://www.ibm.com/developerworks/cn/linux/l-ipmi/
????1.1 ????????????
????????IPMI??????OS???????????????????κ??????????????£??????????????????????IPMI??????????
????BMCо? + ipmi?????? + ipmitool
????1.2 ?ж?IPMI?????????????????????
????cat /var/log/messages | grep BMC????????????д??found BMCо?????????????????????????????BMCо???
????lsmod | grep ipmi??????????????????/lib/modules/2.*.*/kernel/drivers/char/ipmi???μ??????飬?????????????IPMI?????飻
????ipmitool help??????????????????
????1.3 ??????÷????
???????????????????????????????????
?????????????????????????ipmitool??????????????????BMCо? + ipmi??顣?????????????????????BMCо???д??????????????????????????????IPMI????????????????????BMCо??????????????????????????????????????????????
????2 IPMI?????
????2.1 ipmitool????????
????ipmitool help??ipmitool Commands help??ipmitool Commands para help
????http://linux.die.net/man/1/ipmitool
????2.2 ???????????????
????ipmitool sdr
???????ipmi????????????????????????ù??????????????
????2.3 ?????ó???????(???????)??
????2.3.1 BMCо??????????????????
?????????????ipmi???????????????ipmi???????????????????????BMCо??????????????????????????????????????eth0??????????????????????п???????????BMCо???????????????????????eth0??????????????????????????ipmi??ip??eth0???????????ip???????Ρ?
?????????BMCо??????????channel???????????????о?????????????channel???????channel 1?????channel 1????????????????channel????о???????channel??????????????????????й漲??
????2.3.2 ????IPMI??????/?????BMCо???
??????????????????lan?????user???
????ipmitool lan set 1 ipsrc static #????IP????????????
????ipmitool lan set 1 ipaddr 192.168.0.1 #????IP???????????????IP???????Σ?
????ipmitool lan set 1 netmask 255.255.255.0 #????????????
????ipmitool lan set 1 defgw ipaddr 192.168.0.100 #?????????????????????????
????ipmitool lan set 1 access on #??????????????в????????????
????ipmitool lan set 1 access off #???????
????ipmitool lan set 1 user #?????????????(1??????)
????ipmitool user list 1 #??channel 1?????
????ipmitool user set name 1 admin #???????????1????ID??
????ipmitool user set password 1 111111 #????????1????ID??
????ipmitool user enabled 1 #???????
????ipmitool user priv 1 4 1 #?????????????????1????ID??
????2.3.3 ????/??????????????
????ipmitool -I lan -H 192.168.0.100 -U admin -P 111111 power status #???????
????ipmitool -I lan -H 192.168.0.100 -U admin -P 111111 power off/down #???
????ipmitool -I lan -H 192.168.0.100 -U admin -P 111111 power on/up #????
????ipmitool -I lan -H 192.168.0.100 -U admin -P 111111 power reset #????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11