IPMITool使用

in 网站建设
关注公众号【好便宜】( ID:haopianyi222 ),领红包啦~
阿里云,国内最大的云服务商,注册就送数千元优惠券:https://t.cn/AiQe5A0g
腾讯云,良心云,价格优惠: https://t.cn/AieHwwKl
搬瓦工,CN2 GIA 优质线路,搭梯子、海外建站推荐: https://t.cn/AieHwfX9

内核模块
加载 ipmi_devintf 和 ipmi_si 后,会生成 /dev/ipmi0。
ps: 获取传感器信息请安装 lm-sensors,然后运行 sensors-detect。

参考手册:
http://manpages.ubuntu.com/manpages/lucid/man1/ipmitool.1.html

常见ipmitool

$ ipmitool bmc reset cold            #Reset BMC/DRAC to default
$ ipmitool –I open bmc info          #check BMC info
$ ipmitool sel                       #check SEL log
$ ipmitool sel list                  #list SEL log
$ ipmitool raw 0x34 0x11             #Check which node you are in [For Dell Cloud edge]
$ ipmitool lan set 1 ipsrc static    #Set BMC/DRAC static IP
$ ipmitool lan set 1 ipaddr          #Set BMC/DRAC IP Address
$ ipmitool lan set 1 netmask         #Set BMC/DRAC Subnet Mask
$ ipmitool lan set 1 defgw ipaddr    #Set BMC/DRAC Default Gateway
$ ipmitool lan set 1 defgw macaddr 00:0e:0c:aa:8e:13    #Set BMC/DRAC Default Gateway mac address
$ ipmitool lan set 1 arp respond on        #Enable arp
$ ipmitool lan set 1 auth ADMIN MD5        #Enable auth
$ ipmitool lan set 1 access on             #allow access
$ ipmitool user set name 2 admin           #create admin
$ ipmitool user set password 2             #set password
$ ipmitool channel setaccess 1 2 link=on ipmi=on callin=on privilege=2        #set user access permission
$ ipmitool user enable 2                   #Enable user
$ ipmitool channel getaccess 1 2           #set channel
$ ipmitool raw 0x30 0x24 2                 #Change the NIC settings to dedicated
$ ipmitool raw 0x30 0x24 0                 #Change the NIC settings to shared
$ ipmitool raw 0x30 0x25                   #Check the NIC settings[Output of 00 means shared and 02 means dedicated]
$ ipmitool mc reset warm                   #Restart the BMC/DRAC
$ ipmitool -I open sensor                  #read sensor data
$ ipmitool sunoem fan speed 100            #set fan speed
关注公众号【好便宜】( ID:haopianyi222 ),领红包啦~
阿里云,国内最大的云服务商,注册就送数千元优惠券:https://t.cn/AiQe5A0g
腾讯云,良心云,价格优惠: https://t.cn/AieHwwKl
搬瓦工,CN2 GIA 优质线路,搭梯子、海外建站推荐: https://t.cn/AieHwfX9
扫一扫关注公众号添加购物返利助手,领红包
Comments are closed.

推荐使用阿里云服务器

超多优惠券

服务器最低一折,一年不到100!

朕已阅去看看