Giter Club home page Giter Club logo

Comments (3)

texroemer avatar texroemer commented on September 23, 2024

By default iDRAC is already monitoring storage for any errors related to drives, controllers, backplanes, etc and any type of event will be logged in the iDRAC Lifecycle Logs (example: Drive predictive failure or foreign configuration detected). Using Redfish API (GET on URI redfish/v1/Managers/iDRAC.Embedded.1/Logs/Lclog), you can view the Lifecycle logs for any current storage events that occur.

Or are you looking for setting up iDRAC alerts for storage events and once an event is detected, it would send an event to a specific location (example: send email or snmp trap).

from idrac-redfish-scripting.

earankyk avatar earankyk commented on September 23, 2024

I'm looking to setup iDRAC alerts for critical errors. Is there a way to do this programatically without using the web gui?
Also, could you give me an example on how to listen to the Redfish Event alerts configured in the Configuration->Systems Settings page of the gui.

from idrac-redfish-scripting.

texroemer avatar texroemer commented on September 23, 2024

@earankyk

First you would need to enable alerts for iDRAC and then set the event filters for what entries you want to receive using Redfish Event Listener. Easiest way to do this is to use Server Configuration Profile (SCP) feature (script "ExportSystemConfigurationLocalREDFISH.py") .

Example of running the script:

C:\Python27>ExportSystemConfigurationLocalREDFISH.py -ip 192.168.0.120 -u root -p calvin -t idrac,eventfilters

Perform an export and for Target, you will only need iDRAC and EventFilters values. By only passing in these targets, you will only export these settings. Under iDRAC FQDD node, you will see attribute "IPMILan.1#AlertEnable". This attribute enables iDRAC alerts so set this attribute to "Enabled". Under the EventFilters FQDD node, you will see event filters for multiple devices (HDs, PSU, battery, etc). For the device you want an alert sent to Redfish event listener, set attribute "Alert#RedfishEventing" to "Enabled". Example for battery event which i enabled Redfish:

<!-- <Attribute Name="BAT_1_3#DisplayName">Battery Event (Informational)</Attribute>--> 
 <Attribute Name="BAT_1_3#Alert#Email">Enabled</Attribute> 
 <Attribute Name="BAT_1_3#Alert#SNMP">Disabled</Attribute> 
 <Attribute Name="BAT_1_3#Alert#IPMI">Disabled</Attribute> 
 <Attribute Name="BAT_1_3#Alert#SysLog">Disabled</Attribute> 
 <Attribute Name="BAT_1_3#Alert#WSEventing">Disabled</Attribute> 
 <Attribute Name="BAT_1_3#Alert#OSLog">Disabled</Attribute> 
 <Attribute Name="BAT_1_3#Alert#RedfishEventing">Enabled</Attribute>

Once you have edited the SCP file with all your changes, import this SCP file to apply the changes. You can use script "ImportSystemConfigurationLocalFilenameREDFISH.py".

Example of running the script:

C:\Python27>ImportSystemConfigurationLocalFilenameREDFISH.py -ip 192.168.0.120 -u root -p calvin -t all -f 2018-9-7_124423_export.xml

Next step is to set up a Redfish subscription. You can use script "SubmitTestEventREDFISH.py" to set this up.

Example of running the script. 192.168.0.130 is my client IP which will have Redfish event listener running:

C:\Python27>SubmitTestEventREDFISH.py -ip 192.168.0.120 -u root -p calvin -c y -D https://192.168.0.130 -E Alert

Final step is to setup Redfish listener on the client. You can use this Redfish event listener on GitHub. Link has setup instructions on how to set this up:

https://github.com/DMTF/Redfish-Event-Listener

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.