首页 > 技术文章 > IPMI日常使用

suran 2021-04-25 09:49 原文

重启ipmi:

ipmitool mc reset  <warm|cold> 
warm表示软重启;
cold表示硬重启;
 

设置IPMI地址:

ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr IPMI地址
ipmitool lan set 1 netmask IPMI掩码
ipmitool lan set 1 defgw ipaddr IPMI网关
 

IPMI远程开机,重启设备命令:

ipmitool -I lanplus -H (需重启设备IPMI地址)  -U SinoCache -a power status(状态)
交互式输入密码(建议使用-a):
 
ipmitool -I lanplus -H (需重启设备IPMI地址)-U IPMIuser SinoCache -P IPMIpassword  power status
 
ipmitool -I lanplus    -H (需重启设备的IPMI) -U IPMIuser -P IPMIpassword chassis  power reset(重启)
 
ipmitool -I lan   -H (需重启设备的IPMI) -U IPMIuser  -P IPMIpassword   power reset
 
 

设置权限

ipmitool user priv 2 4 1
2:用户名
4:权限
1:权限

 

查看bmc信息

ipmitool mc info
 
查看物理设备信息
ipmitool fru list
 

查看用户清单

ipmitool user list 1
 

设置IPMI用户并给予权限

ipmitool user enable 2
ipmitool user set name 2 账户
ipmitool user set password 2 密码
ipmitool channel setaccess 1 2 callin=on link=on ipmi=on privilege=4
###开启链路连接 #开启IPMI功能 #开启权限
 

IPMI模块告警

Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
modprobe ipmi_watchdog modprobe ipmi_poweroff modprobe ipmi_devintf modprobe ipmi_si modprobe ipmi_msghandler 
 
modprobe ipmi_watchdog
modprobe ipmi_poweroff
modprobe ipmi_devintf
modprobe ipmi_si   (加载不成功不影响。)
modprobe ipmi_msghandler 
 
有的设备加载完之后还不行,那管理口可能是真有问题了

 

推荐阅读