Skip to main content

GET – SNMP Protocol

Use the GET method to retrieve Oem SNMP properties definition in a BMC.

Request URL

GET https://<BMC_IPADDR>/redfish/v1/Managers/1/NetworkProtocol/Oem/Lenovo/SNMP

Request body

None

Response body

FieldTypeDescription
IdString

“SNMP”

NameString

“SNMP Protocol”

DescriptionString

This resource is used to represent SNMP protocol for the manager for a Redfish implementation.

SNMPTrapsObject

Expanded

 SNMPv1TrapEnabledBoolean

Indicates if SNMPv1 trap is enabled.

 ProtocolEnabledBoolean

Indicates if SNMPv3 trap is enabled

 PortNumber

Trap port.

 AlertRecipientObject

Expanded.

 TargetsArray

Items: object

Item count: {0…N}, N is 1
Note
Current design N is 1.
  Targets[N]Object

Expanded

   AddressesArray

Host for SNMPv1

CommunityNamesArray

Community Name for SNMPv1

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example JSON response is returned:

{
"Id": "SNMP",
"Name": "SNMP Protocol",
"SNMPv3Agent": {
"Links": {
"UsersSNMPv3Settings": {
"@odata.id": "/redfish/v1/AccountService/Accounts"
}
},
"Location": "",
"Port": 161,
"ProtocolEnabled": false,
"ContactPerson": ""
},
"@odata.id": "/redfish/v1/Managers/1/NetworkProtocol/Oem/Lenovo/SNMP",
"CommunityNames": [
null
],
"@odata.etag": "\"60031ede1a38272aeb0\"",
"SNMPTraps": {
"SNMPv1TrapEnabled": false,
"AlertRecipient": {
"WarningEvents": {
"Enabled": false,
"AcceptedEvents": []
},
"SystemEvents": {
"Enabled": false,
"AcceptedEvents": []
},
"CriticalEvents": {
"Enabled": false,
"AcceptedEvents": []
}
},
"Targets": [
{
"Addresses": [
null
]
}
],
"ProtocolEnabled": false,
"Port": 162
},
"@odata.type": "#LenovoSNMPProtocol.v1_0_0.LenovoSNMPProtocol",
"Description": "This resource is used to represent SNMP protocol for the manager for a Redfish implementation."
}