GithubHelp home page GithubHelp logo

Comments (2)

Yergidy avatar Yergidy commented on June 12, 2024

The object "RestObject" is for iLO 4, non-redfish servers. For iLO 5 and servers with redfish, the object "RedfishObject" is the one you should be using.

from python-ilorest-library.

karthikvrsjp avatar karthikvrsjp commented on June 12, 2024

I am running the code for iLO 4 on m510 server and getting this error..
AttributeError: 'RestObject' object has no attribute 'rest_client'

Full log:
[root@splunksetup01 Rest]# python3.6 ex16_computer_details.py
Started..!
Trying to get REST object..!
In init function of RestObject
Traceback (most recent call last):
File "ex16_computer_details.py", line 107, in
REST_OBJ = RestObject(iLO_https_url, iLO_account, iLO_password)
File "/home/karthikvr/PYTHON_iLO_REST/python-ilorest-library-master/examples/Rest/_restobject.py", line 90, in init
username=login_account, password=login_password)
File "/usr/local/lib/python3.6/site-packages/redfish/rest/v1.py", line 1231, in get_client_instance
is_redfish=is_redfish, cache=cache, proxy=proxy)
File "/usr/local/lib/python3.6/site-packages/redfish/rest/v1.py", line 445, in init
self.get_root_object()
File "/usr/local/lib/python3.6/site-packages/redfish/rest/v1.py", line 590, in get_root_object
"return code: %d" % resp.status)
redfish.rest.v1.ServerDownOrUnreachableError: Server not reachable, return code: 404
Exception ignored in: <bound method RestObject.del of <_restobject.RestObject object at 0x7f9a632939e8>>
Traceback (most recent call last):
File "/home/karthikvr/PYTHON_iLO_REST/python-ilorest-library-master/examples/Rest/_restobject.py", line 98, in del
self.rest_client.logout()
AttributeError: 'RestObject' object has no attribute 'rest_client'

Can you please let me know the resolution? Many thanks in advance.

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.