Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

3032

December 19th, 2017 01:00

How to add Subscription for EventService with curl

Have looked for any info on how to add a subscription for the EventService in idrac via curl or through REST plugin to web browser. Have both idrac8 and idrac9 servers, R730XD and R740XD

Don't know what syntax to use. Have tried this curl POST, but are missing data about protocol , etc

curl -i -k -X POST -H "Content-Type: application/json"  -d '{"Destination": "https://XXX", "Protocol" : "odata"}' 'root:XXXX@idrac-XXX.xxx.se/.../Subscriptions' -v

Get HTTP/1.1 400 Bad Request

"The value odata for the property Protocol is not in the list of acceptable values."

Have tested http/https/TLS/odata as protocol name, what is missing ??

4 Operator

 • 

3K Posts

December 19th, 2017 05:00

Can you try below command

curl -i -k -X POST -H "Content-Type: application/json"  -d '{"Destination": "https:// ", "Protocol" : "Redfish", "EventTypes": ["Alert"], "Context": "Public"}' -u : 'https:// /redfish/v1/EventService/Subscriptions' –v

To perform Subscription, below properties are required.

  1. Destination – https address location
  2. Protocol – The only supported String value is “Redfish”
  3. EventTypes – Out of all the supported values, [“Alert”] is supported.
  4. Context – A client-supplied string that is stored with the event destination subscription.

4 Operator

 • 

3K Posts

December 20th, 2017 05:00

You can Refer DMTF Schema's(Link Below) to get details on this.

http://redfish.dmtf.org/schemas/DSP8010_2017.2.zip

Once Extracted you can refer "EventDestination_v1.xml" file under metadata folder to get details on this command

Below link have documentation on iDRAC support for redfish

http://topics-cdn.dell.com/pdf/idrac9-lifecycle-controller-v3.00.00.00_api%20guide_en-us.pdf

2 Posts

December 20th, 2017 05:00

Thanks a lot DELL-SHINE,

the curl command you sent me worked fine. Have tested to to send a Test Alert from iDRAC.

Do you by any chance know where this is documented ?? Could not find this specific info

by using my friend Google

Regards,

Peter

No Events found!

Top