Start a Conversation

Solved!

Go to Solution

1531

June 3rd, 2020 18:00

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:

https://www.dell.com/support/manuals/jp/ja/jpbsd1/idrac9-lifecycle-controller-v4.x-series/idrac9_4.00.00.00_redfishapiguide_pub/supported-action-sendtestsnmptrap?guid=guid-36524723-fca4-4e3b-9c34-978d2f6f0cbc&lang=en-us

 

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,

4 Operator

 • 

3K Posts

June 4th, 2020 01:00

Can you try with below body

{"InstanceID": "iDRAC.Embedded.1#SNMPAlert.1#Destination"}

15 Posts

June 4th, 2020 02:00

Thank you Shine, and it works. 

Returned (just for reference):

{
     "@Message.ExtendedInfo" : [
        {
             "Message" :  "Successfully Completed Request" ,
             "MessageArgs" : [],
             "MessageArgs@odata.count" :  0 ,
             "MessageId" :  "Base.1.5.Success" ,
             "RelatedProperties" : [],
             "RelatedProperties@odata.count" :  0 ,
             "Resolution" :  "None" ,
             "Severity" :  "OK"
        },
        {
             "Message" :  "The operation was successful." ,
             "MessageArgs" : [],
             "MessageArgs@odata.count" :  0 ,
             "MessageId" :  "IDRAC.2.1.TST100" ,
             "RelatedProperties" : [],
             "RelatedProperties@odata.count" :  0 ,
             "Resolution" :  "No response action is required." ,
             "Severity" :  "Informational"
        }
    ]
}

15 Posts

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"}]}

No Events found!

Top