54

Based on a previous question, I installed ipmitool (yum install ipmitool).

Even after a reboot, though, i get the following error when trying to run ipmitool power status:

Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
Unable to get Chassis Power Status

Is this an OS/hardware issue (CentOS 6.3 x64 on a hosted machine in a remote datacenter - unsure on hardware vendor)? Or have I missed something more elemental in installing ipmitool?

warren
  • 19,297

5 Answers5

77

You probably need to load the IPMI kernel modules:

modprobe ipmi_devintf
modprobe ipmi_si

You can add these to /etc/modules to have them loaded automatically (just list the module names):

ipmi_devintf
ipmi_si
mgorven
  • 31,399
9

Do you have the devices loaded ? You can load manually the modules : modprobe ipmi_devintf ; modprobe ipmi_si and check your logs

Dom
  • 6,873
5

Just wanted to highlight another minor point: "Make sure you are running with root/admin privileges".

user@host:~$ ipmitool power status
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory

user@host:~$ ls /dev/ipmi* /dev/ipmi0

user@host:~$ lsmod | grep ipmi ipmi_devintf 20480 0 ipmi_ssif 24576 0 ipmi_si 57344 0 ipmi_msghandler 49152 3 ipmi_ssif,ipmi_devintf,ipmi_si

user@host:~$ sudo ipmitool power status [sudo] password for user: Chassis Power is on

user@host:~$

sid
  • 51
0

Another possibility is that you didn't use sudo. On my device, it shows the same error message when sudo isn't used.

enter image description here

chansey
  • 109
-1
  1. Set up the IPMI interface network cable [enter image description here][1]

  2. Press F2 or DEL to enter the BIOS, enter the Server Mgmt menu and select BMC network configuration. [enter image description here][2] 3 Configure the IP acquisition method IP address gateway

    ipmitool lan set 1 ipsrc static | dhcp ipmitool lan set 1 ipaddr 192.168.1.2 ipmitool lan set 1 netmask 255.255.255.0 ipmitool lan set 1 defgw 192.168.1.254