Giter Site home page Giter Site logo

Comments (16)

CengSin avatar CengSin commented on August 16, 2024

the error is RuntimeError: ipmitool failed with rc=2

from python-ipmi.

hthiery avatar hthiery commented on August 16, 2024

What physical connection do you use?

from python-ipmi.

hthiery avatar hthiery commented on August 16, 2024

Are you able to get the Info using ipmitool without the pyipmi lib?

You also can increase the Log Level to see more verbose output.

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024

image

from python-ipmi.

hthiery avatar hthiery commented on August 16, 2024

Please increase the lib Log Level to debug to see the used ipmitool command

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024

how to set the lib Log Level

from python-ipmi.

hthiery avatar hthiery commented on August 16, 2024

`
handler = logging.StreamHandler()

if verbose:
handler.setLevel(logging.DEBUG)

else:
handler.setLevel(logging.INFO)
pyipmi.logger.add_log_handler(handler)
pyipmi.logger.set_log_level(logging.DEBUG)
`

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024
Running ipmitool "ipmitool -I lanplus -H 172.16.19.111 -p 22 -U "root" -P "calvin" -b 0 -t 0x20 -l 0 raw 0x00 0x01 2>&1"

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024

return with rc=2, output was: option -p not recognized

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024

and i use the port 623 , output is same

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024

i use ipmitool -I lanplus -H 172.16.19.111 -U root -P calvin chassis power status can have the power status by windows cmd

from python-ipmi.

hthiery avatar hthiery commented on August 16, 2024

Seems there is an issue with your installed ipmitool. What version do you use?

The -p option ist not known.

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024

image

in pycharm, the ipmitool shell don't exec, but in cmd, the shell can exec

from python-ipmi.

hthiery avatar hthiery commented on August 16, 2024

We never used it under windows before. Can you please give the output of ipmitool -h

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024

I use reboot to solve the output, now the output is :

IPMI Request [<pyipmi.msgs.chassis.GetChassisStatusReq object at 0x000000000A15D9B0>]
Running ipmitool "ipmitool -I lanplus -H 172.16.19.111 -p 623 -U "root" -P "calvin" -b 0 -l 0 raw 0x00 0x01 2>&1"
<pyipmi.chassis.ChassisStatus object at 0x000000000A15D9B0>
return with rc=0, output was:
 01 10 40 54

IPMI Response [<pyipmi.msgs.chassis.GetChassisStatusRsp object at 0x000000000A15DAC8>])

how can i to get the Chassis Power is on

from python-ipmi.

CengSin avatar CengSin commented on August 16, 2024

thx , Thank you for spending an afternoon with me to solve this problem. the last problem i can solve, very thanks

from python-ipmi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.