Server Management - Remote Server Management
1821546 Members
2143 Online
109633 Solutions
New Discussion

Disabling SNMP v1 Service

 
BradV
Esteemed Contributor

Disabling SNMP v1 Service

The iLO5 Redfish REST API says that /redfish/v1/managers/{item}/snmpservice has GET, POST, and PATCH available.  I can use:

curl --silent --insecure --header "X-Auth-Token: ${iLOAuth}" --request GET https://myserver-ilo.com/redfish/v1/Managers/1/snmpservice | jq -r .SNMPv1Enabled'

to retrieve the state of the service, but I can't quite figure out how to set it.  The documentation is not showing how to do that (at least that I could find).  I'm trying:

curl --silent --insecure --header "X-Auth-Token: ${iLOAuth}" \
--data "{\"SNMPv1Enabled\": false }" --header "Content-Type: application/json" \
--request GET https://myserver-ilo.com/redfish/v1/Managers/1/snmpservice | jq -r '.'

and I get back:

{
  "error": {
    "code": "iLO.0.10.ExtendedInfo",
    "message": "See @Message.ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "MessageArgs": [
          "Action"
        ],
        "MessageId": "Base.1.4.PropertyMissing"
      }
    ]
  }
}

Does anyone know how to correctly disable SNMP v1 through the REST API?