15 Posts
0
1531
Redfish body
Hello, I am trying to initiate SNMP trap test via Redfish with
Model: PowerEdge R740
iDRAC Version: 4.10.10.10 and
Reference:
So I POST to /redfish/v1/Dell/Managers/ /DelliDRACCardService/Actions/DelliDRACCardService.SendTestSNMPTrap, with body: {"InstanceID": "SNMPAlert.1.Destination"}, and get "Message" : "Invalid parameter value for InstanceID.". What would be the InstanceID? How can I figure this out?
Thank you,
DELL-Shine K
4 Operator
4 Operator
•
3K Posts
0
June 4th, 2020 01:00
Can you try with below body
ITAKIS
15 Posts
0
June 4th, 2020 02:00
Thank you Shine, and it works.
Returned (just for reference):
ITAKIS
15 Posts
0
February 13th, 2022 16:00
Here is curl command:
curl -u user:password -H "Content-Type: application/json" -X POST https:// /redfish/v1/Dell/Managers/iDRAC.Embedded.1/DelliDRACCardService/Actions/DelliDRACCardService.SendTestSNMPTrap --insecure -d
'{"InstanceID": "iDRAC.Embedded.1#SNMPAlert.1#Destination"}'
Returned message:
{"@Message.ExtendedInfo":[{"Message":"Successfully Completed Request","MessageArgs":[],"MessageArgs@odata.count":0,"MessageId":"Base.1.7.Success","RelatedProperties":[],"RelatedProperties@odata.count":0,"Resolution":"None","Severity":"OK"},{"Message":"The operation was successful.","MessageArgs":[],"MessageArgs@odata.count":0,"MessageId":"IDRAC.2.4.TST100","RelatedProperties":[],"RelatedProperties@odata.count":0,"Resolution":"No response action is required.","Severity":"Informational"}]}