IPMI(4D) Devices IPMI(4D)

ipmi - OpenIPMI compatible IPMI interface driver

/dev/ipmi0

The ipmi device is a character special file that provides access to the Intelligent Platform Management Interface for the system. For more information on IPMI and to obtain a copy of the IPMI specification and implementation guidelines, refer to http://www.intel.com/design/servers/ipmi/. The driver is adapted from the FreeBSD driver which is in turn adapted from the Linux driver, however, not all features described in the standard are supported. The current implementation depends on the smbios(4D) to discover the existence of an IPMI device.

Sending and receiving messages through the IPMI drivers requires the use of ioctl(2).

The ioctl command codes below are defined in sys/ipmi.h. The third argument to ioctl should be a pointer to the type indicated. Currently the following ioctls are supported:

IPMICTL_RECEIVE_MSG "struct ipmi_recv"
Receive a message.
Possible error values:
EAGAIN No messages are in the process queue.
EFAULT An address supplied was invalid.
EMSGSIZE The address could not fit in the message buffer and will remain in the buffer.

IPMICTL_RECEIVE_MSG_TRUNC "struct ipmi_recv"
Like IPMICTL_RECEIVE_MSG but if the message cannot fit into the buffer, it will truncate the contents instead of leaving the data in the buffer.

IPMICTL_SEND_COMMAND "struct ipmi_req"
Send a message to the interface.
Possible error values:
EFAULT An address supplied was invalid
ENOMEM Buffers could not be allowed for the command, out of memory.

IPMICTL_SET_MY_ADDRESS_CMD "unsigned int"
Set the slave address for source messages.

IPMICTL_GET_MY_ADDRESS_CMD "unsigned int"
Get the slave address for source messages.

IPMICTL_SET_MY_LUN_CMD "unsigned int"
Set the slave LUN for source messages.

IPMICTL_GET_MY_LUN_CMD "unsigned int"
Get the slave LUN for source messages.

Stub Only Ioctl

IPMICTL_SET_GETS_EVENTS_CMD int
Set whether this interface receives events.

Unimplemented Ioctls

IPMICTL_REGISTER_FOR_CMD
Register to receive a specific command

IPMICTL_UNREGISTER_FOR_CMD
Unregister to receive a specific command

ipmitool(1), ioctl(2), smbios(4D)

Intelligent Platform Management Interface Specification Second Generation, v2.0 — June 12, 2009 Markup

Not all systems include an IPMI.

October 31, 2013 OmniOS