kontron / python-ipmi

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

about fru_info = connection.get_fru_inventory() #20

Closed u2bo closed 6 years ago

u2bo commented 7 years ago

can't get fru info!
what's the error? fru_info = connection.get_fru_inventory() File "build\bdist.win-amd64\egg\pyipmi\fru.py", line 92, in get_fru_inventory File "build\bdist.win-amd64\egg\pyipmi\fru.py", line 74, in read_fru_data File "build\bdist.win-amd64\egg\pyipmi\__init__.py", line 196, in send_message_with_name File "build\bdist.win-amd64\egg\pyipmi\__init__.py", line 181, in send_message File "build\bdist.win-amd64\egg\pyipmi\interfaces\ipmitool.py", line 136, in send_and_receive print('') File "build\bdist.win-amd64\egg\pyipmi\interfaces\ipmitool.py", line 112, in send_and_receive_raw print("LNC: %s" % t_lnc) RuntimeError: ipmitool failed with rc=1

hthiery commented 7 years ago

Hi,

do you use your own script or do you use ipmitool.py?

please increase the debug level either by adding the -v option to ipmitool.py or by using the pyipmi logging ...

as example you can take look at the code in ipmitool.py.

-- Heiko

Am 22.01.2017 8:02 vorm. schrieb "swq" notifications@github.com:

can't get fru info! what's the error? fru_info = connection.get_fru_inventory() File "build\bdist.win-amd64\egg\pyipmi\fru.py", line 92, in get_fru_inventory File "build\bdist.win-amd64\egg\pyipmi\fru.py", line 74, in read_fru_data File "build\bdist.win-amd64\egg\pyipmi__init__.py", line 196, in send_message_with_name File "build\bdist.win-amd64\egg\pyipmi__init__.py", line 181, in send_message File "build\bdist.win-amd64\egg\pyipmi\interfaces\ipmitool.py", line 136, in send_and_receive print('') File "build\bdist.win-amd64\egg\pyipmi\interfaces\ipmitool.py", line 112, in send_and_receive_raw print("LNC: %s" % t_lnc) RuntimeError: ipmitool failed with rc=1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kontron/python-ipmi/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/AGRTUuyIsVRhGXQuhSQnS9H-1H-RvTpZks5rUv8ZgaJpZM4LqTaX .

hthiery commented 6 years ago

Ping