Giter Club home page Giter Club logo

Comments (7)

texroemer avatar texroemer commented on September 27, 2024 1

Updated script has been posted, please try it out and let me know if you hit any issues.

Thanks
Tex

from idrac-redfish-scripting.

texroemer avatar texroemer commented on September 27, 2024

Hi @jgranduel

I wasn't able to repro the issue you hit in my lab but i did update the script with more error handling when Members array is not reported in the JSON output. Can you try latest script version and see if it resolves the issue.

Thanks
Tex

from idrac-redfish-scripting.

jgranduel avatar jgranduel commented on September 27, 2024

Hi,
I cloned the latest Python version. Here's my output:

python ./GetIdracLcLogsREDFISH.py -ip <ip> - <user> -p <pass>  --get-all

- INFO, this may take 30 seconds to 1 minute to collect all iDRAC LC logs depending on log file size
-WARNING, 'Members' key not detected in JSON response, script will exit

I don't get any log.

But with python ./GetIdracLcLogsREDFISH.py -ip <ip> -u <user> -p <pass> --get-severity critical, it works as expected.

With --get-all, I am supposed to well... get all logs ?

from idrac-redfish-scripting.

texroemer avatar texroemer commented on September 27, 2024

I know what the issue is, I updated the script to leverage LogServices schema for all functions to be DMTF compliant but the function to get severity entries was not updated and still leveraging Logs which is why this function is passing but the get all logs function is failing. In newer versions of iDRAC if you run GET on "redfish/v1/Managers/iDRAC.Embedded.1", you will not see Logs reported but LogServices instead. Even though Logs is no longer reported in newer iDRAC versions support is still there for backwards compatibility.

What iDRAC version are you currently using?

from idrac-redfish-scripting.

jgranduel avatar jgranduel commented on September 27, 2024

iDRAC 8. (2.8 (Build 04) if this info is relevant.

Sorry but I didn't understand all your comment.

With updated version:

python ./GetIdracLcLogsREDFISH.py -ip <ip> -u <user> -p <pass>  --get-all

- INFO, this may take 30 seconds to 1 minute to collect all iDRAC LC logs depending on log file size
- WARNING, 'Members' key not detected in JSON response, unable to get LC logs. Manually check iDRAC interfaces to confirm you can view LC logs

from idrac-redfish-scripting.

texroemer avatar texroemer commented on September 27, 2024

Thanks for the iDRAC version, this helps. So Redfish implementation is different between iDRAC8 and iDRAC9. I'll need to add a check in the script to first get the iDRAC version to decide which URI to use to get LC logs, either "redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog" for iDRAC 8 or "redfish/v1/Managers/iDRAC.Embedded.1/LogServices/Lclog" for iDRAC 9.

Let me update the script test on both iDRAC 8 and 9, will let you know once posted.

-Tex

from idrac-redfish-scripting.

jgranduel avatar jgranduel commented on September 27, 2024

Thank you. Your update works perfectly well!

from idrac-redfish-scripting.

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.