-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get sdr/ sensor #17
Comments
what do you mean with the docment was not found? 2016-06-27 13:07 GMT+02:00 silenceJI [email protected]:
|
README not found about sensor options query , Want to know how to do |
do you use the ipmitool.py tool or do you want to do it in python? If you use the ipmitool.py tool try the "sdr list" argument. If you want to Heiko 2016-06-27 13:26 GMT+02:00 silenceJI [email protected]:
|
yes, I want use python collect server temp data, but , now not find how to use ipmitool.py tools realization. |
does the answer solves your problem? you can take a look into the sources for collecting sdr data: https://github.com/kontron/python-ipmi/blob/master/pyipmi/sdr.py#L95 or for sensors: https://github.com/kontron/python-ipmi/blob/master/pyipmi/sensor.py#L135 or use ipmitool.py as example: https://github.com/kontron/python-ipmi/blob/master/pyipmi/ipmitool.py#L160 Heiko 2016-06-27 13:40 GMT+02:00 silenceJI [email protected]:
|
does the answer solves your issue? |
no, This is my code: import pyipmi interface = pyipmi.interfaces.create_interface('ipmitool', interface_type='lanplus') exec info : |
check if you device supports sensor commands. id = ipmi.get_device_id() print id.supported_functionsif not you should use the sdr_repository_entries ( 2016-06-29 12:06 GMT+02:00 silenceJI [email protected]:
|
thank you ➜ ipmitool -I lanplus -H 10.90.8.214 -U admin -P xxxxx sensor CPU1 Status | 0x0 | discrete | 0x8080| na | na | na | na | na | na |
useid = ipmi.get_device_id() print id.supported_functionspython get_ipmitool.py by silence |
I am using ipmitool.py and tried the following command to run the program:
I have checked the supported functions and it gives: |
Please provide the output with increasing the verbose level. Add '-v' to your command line. |
What version of the lib do you use? The latest released or the last from master? |
Hi, i am using ipmitool.py and tried but i get:
I have checked the supported functions:
I use version 0.4.1 from master, when i insert :
to:
script never ends, how to fix it ? |
hello author, i got a problem in excute pyipmi shell, how did you get the address "0x20" in your code "pyipmi.Target(0x20)"? |
Hi, normally the 0x20 is the standard address of an BMC. |
shell command:
ipmitool -I lanplus -H $hostname -U admin -P xxxxxx sensor
The document was not found.
How in the python implementation? thx ~
The text was updated successfully, but these errors were encountered: