Comments (7)
Updated script has been posted, please try it out and let me know if you hit any issues.
Thanks
Tex
from idrac-redfish-scripting.
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.
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.
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.
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.
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.
Thank you. Your update works perfectly well!
from idrac-redfish-scripting.
Related Issues (20)
- Invoke-GenerateCsrREDFISH Missing Subject Alternative Name? HOT 6
- Which is most appropriate Redfish/OEM call to check the current boot stage of the server HOT 2
- pxe boot job id no long working HOT 1
- ComponentID zero HOT 6
- DELL/iDRAC -Redfish HOT 5
- MetricReports PowerMetrics HOT 3
- Redfish Query for Host OS Network Interfaces HOT 7
- Can add an example for querying from iDrac KeyVault by Redfish API? HOT 2
- Switching the storage controller from PERC to HBA and vice-versa HOT 3
- InsertEjectVirtualMediaREDFISH.py unable to insert ISO file residing on CIFS share; works from iDRAC GUI HOT 15
- Importing CA certificate to iDRAC via Redfish HOT 6
- Traceback error running ExportSystemConfigurationLocalREDFISH.py HOT 2
- Delete portion of CreateDeleteIdracUsersREDFISH.py only disables the account; it doesn't delete it. HOT 2
- Redfish Resource not found - Export Configuration HOT 1
- Can't insert CD and RemovableMedia virtual media simultaneously HOT 5
- iDRAC Version 7.00.00.171 Traceback Errors HOT 14
- Export/import certificates HOT 1
- Account Services Question HOT 6
- Set-IdracLcSystemAttributesREDFISH does not work on iDRAC8 HOT 3
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 idrac-redfish-scripting.