Could not open device at /dev/ipmi0 or /dev/ipmi/0

CentOS 7 下新安裝ipmitool命令後,執行ipmitool出現如下報錯:bash

[root@localhost]# ipmitool 
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory

分析緣由:ide

新安裝ipmitool命令後,ipmi相關模塊沒有加載,需手動加載或重啓系統。code

root用戶手動加載ipmi相關模塊:orm

[root@localhost]# modprobe ipmi_watchdog
[root@localhost]# modprobe ipmi_poweroff
[root@localhost]# modprobe ipmi_devintf

查看已加載模塊:ip

[root@localhost]# lsmod | grep -i ipmi
ipmi_poweroff          14366  0 
ipmi_watchdog          25058  0 
ipmi_devintf           17603  0 
ipmi_ssif              23894  0 
ipmi_si                57587  2 
ipmi_msghandler        46608  5 ipmi_ssif,ipmi_devintf,ipmi_poweroff,ipmi_watchdog,ipmi_si
i2c_core               63151  9 ast,drm,i2c_designware_core,i2c_designware_platform,ipmi_ssif,i2c_piix4,drm_kms_helper,i2c_algo_bit,nvidia

此時,ipmitool命令可正常使用。it

相關文章
相關標籤/搜索