kontron / python-ipmi

A pure python IPMI library
GNU Lesser General Public License v2.1
187 stars 75 forks source link

how to read /dev/ipmi0 #72

Closed mhf-ir closed 3 years ago

mhf-ir commented 4 years ago

I use install ipmi tools and it's availibe with command :

it's directed by kernel module:

modprobe ipmi_devintf
modprobe ipmi_si
root@myserver:~# ipmitool sel info
SEL Information
Version          : 1.5 (v1.5, v2 compliant)
Entries          : 20
Free Space       : 704 bytes 
Percent Used     : 31%
Last Add Time    : 06/10/2019 09:37:05
Last Del Time    : 01/13/2012 09:04:19
Overflow         : false
Supported Cmds   : 'Reserve' 

Hot to use python-ipmi, no network lan or etc ... just direct call to kernel ipmi on /dev/ipmi0

hthiery commented 4 years ago

Hi,

you should use the ipmitool backend with interface type opeǹ.

Take a look on https://github.com/kontron/python-ipmi/blob/master/pyipmi/interfaces/ipmitool.py#L228.

hthiery commented 3 years ago

closed due to missing feedback