This post is more than 5 years old
2 Posts
0
3032
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 ??
DELL-Shine K
4 Operator
4 Operator
•
3K Posts
1
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.
DELL-Shine K
4 Operator
4 Operator
•
3K Posts
0
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
peek99
2 Posts
0
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