Comments (4)
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.
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:
so for this library, what kind of license is needed? (specially the mount process)
Thanks!
from python-ilorest-library.
@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.
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)
- BIOs settings not changed after successful response HOT 2
- rdmc_helper import error HOT 1
- Fix for rdmc_helper needed in latest versions HOT 1
- Please add some fallback if rdmc_helper can't get imported HOT 1
- Invalid syntax when importing HOT 1
- ilorest rawpost question HOT 1
- add user HOT 2
- Add User is not working for iLo6 firmware 1.20 (DL385Gen11) HOT 1
- python 2.7 support HOT 1
- Cannot build locally HOT 2
- Can we retrieve memory/DIMM part number using restapi or ilorest command? HOT 1
- Volume creation fails "Unable to locate instance for volume. " HOT 2
- Unable to set onetime boot using ilorest 4.1.0.0 HOT 2
- Modify User is not working for iLo6 firmware 1.20 (DL385Gen11) HOT 3
- ChifDriverMissingOrNotFound with iLO 6 HOT 2
- Can't set retries parameter for RedfishClient HOT 1
- iLO6 description documents HOT 4
- Publish whl files to pypi HOT 2
- upload_firmware_ilo_repository.py example not working on a local connection? HOT 4
- Expanding multiple levels possible? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-ilorest-library.