Open hinxx opened 2 years ago
just added support for that .. please test it and give a feedback
Sorry for late response.
I get the following error when running ipmitool.py ... sdr list
command:
Traceback (most recent call last):
File "/home/bddev/labmachines/venv/bin/ipmitool.py", line 11, in <module>
load_entry_point('python-ipmi', 'console_scripts', 'ipmitool.py')()
File "/home/bddev/labmachines/venv/src/python-ipmi/pyipmi/ipmitool.py", line 601, in main
cmd(ipmi, args)
File "/home/bddev/labmachines/venv/src/python-ipmi/pyipmi/ipmitool.py", line 199, in cmd_sdr_list
print_sdr_list_entry(s.id, number, s.device_id_string,
AttributeError: 'SdrManagementControllerConfirmationRecord' object has no attribute 'device_id_string'
When I run
ipmitool.py .. sdr show <ID>
against one of the SDR records on my machine I get this error:Running
ipmitool.py .. sdr raw <ID>
returns this:Looking at the source code the SDR record type 0x13 does not seems to be handled.. https://github.com/kontron/python-ipmi/blob/471e609a8b30a6ac876ab592aa24b4012cf95936/pyipmi/sdr.py#L37
If I kludge the code in https://github.com/kontron/python-ipmi/blob/471e609a8b30a6ac876ab592aa24b4012cf95936/pyipmi/ipmitool.py#L93 to skip over this record type the error is gone.
FWIW,
ipmitool
does not show this record ID in its output at all (looks like it skips it).