GithubHelp home page GithubHelp logo

Comments (4)

Yergidy avatar Yergidy commented on June 12, 2024

The import name is "redfish" not ilorest. Try importing that instead and see if it works correctly.

As for _redfishobject, that object is located in our example scripts folder: https://github.com/HewlettPackard/python-ilorest-library/tree/master/examples/Redfish

Try importing from there and see if it imports correctly.

from python-ilorest-library.

Bareliah avatar Bareliah commented on June 12, 2024

Yes, it works like a charm! thank you!

I know it is different subject but it's related to the init process - the server is G9 so as recommended the rest object is Redfish type.
from the web I succeed login but from the script, it throws an exception (without error message).
It failed in the init process of HttpClient:
super(HttpClient, self).__init__(base_url, username=username, \ password=password, default_prefix=default_prefix, \ sessionkey=sessionkey, biospassword=biospassword, \ cache=cache)
surranding it in try-except, it returns:

'HttpClient' object has no attribute 'root'

---- update ---

in HPe docs there is a statement:
image
so for this library, what kind of license is needed? (specially the mount process)

Thanks!

from python-ilorest-library.

Yergidy avatar Yergidy commented on June 12, 2024

@Bareliah Sorry for the slow response. Depending on the iLO version redfish may not be available, which can produce this error. I'd recommend updating to the latest iLO version and retrying.

Scripting virtual media requires the iLO advanced license. See the available licenses here along with their features.
https://h20195.www2.hpe.com/v2/getpdf.aspx/4aa4-5167enw.pdf

from python-ilorest-library.

matthnter avatar matthnter commented on June 12, 2024

I had an issue where the symlink to /usr/bin/python went to 2.x versus 3.x.

I then ran python3 quickstart.py and it ran correctly.

Looked like the path for python2 and python3 do not share "site-package"

my redfish/python-ilorest-library is installed to /usr/lib/python3.4/site-pagackes/redfish and the symlink or python path is pointing to the older folder.

Check permissions too!

from python-ilorest-library.

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.