Skip to main content

GET – Event subscriptions for SNMPv2c-{N}

Use the GET method to retrieve properties in event subscription entries for a server.

Request URL

GET https://<BMC_IPADDR>/redfish/v1/EventService/Subscriptions/REST-SNMPv2c-{N}

Request body

None

Response body

FieldTypeDescription

Id

StringREST-SNMPv1-{N}, N is from 1 - 3

Name

StringREST-SNMPv1-{N}, N is from 1 - 3

Context

StringEmpty string.

Status

ObjectExpanded
 

State

StringThe state of the Event subscription.

EventFormatType

Boolean“Event“

Destination

StringThis property shall contain a URI to the destination where the events will be sent.

SubscriptionType

String“SNMPTrap“

Description

ArrayThis resource represents an event destination for a Redfish implementation.

Protocol

String“SNMPv2c”

SNMP

ObjectExpanded
 

TrapCommunity

StringThe SNMP trap community string.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example JSON response is returned:

{
"Description": "This resource represents an event destination for a Redfish implementation.",
"Status": {
"State": "Enabled"
},
"Name": "REST-SNMPv2c-1",
"@odata.type": "#EventDestination.v1_12_0.EventDestination",
"@odata.id": "/redfish/v1/EventService/Subscriptions/REST-SNMPv2c-1",
"@odata.context": "/redfish/v1/$metadata#EventDestination.EventDestination",
"Id": "REST-SNMPv2c-1",
"Protocol": "SNMPv2c",
"Context": "",
"Destination": "snmp://10.10.10.10",
"EventFormatType": "Event",
"SNMP": {
"TrapCommunity": "test"
},
"SubscriptionType": "SNMPTrap",
"@odata.etag": "\"3e292697ce252a26e2b\"",
"@Message.ExtendedInfo": [
{
"Resolution": "If failed, retry before meeting the requirement of the security mode.",
"Message": "The value \"snmp://10.10.10.10\" for the property Destination is not recommanded by current security mode Standard.",
"@odata.type": "#Message.v1_1_2.Message",
"MessageArgs": [
"\"snmp://10.10.10.10\"",
"Destination",
"Standard"
],
"MessageId": "LenovoExtendedWarning.1.0.NotRecommandedOperation",
"MessageSeverity": "Warning"
}
]
}