A newer release of this product is available.
Manage cluster-wide SNMP configuration
Configure and retrieve cluster-wide SNMP settings, including enabling or disabling SNMP and authentication traps, to manage monitoring and security features in your environment.
Overview
Cluster wide SNMP configuration. You can configure or retrieve the following SNMP parameters using this endpoint:
-
enable or disable SNMP
-
enable or disable SNMP authentication traps
Examples
Disables SNMP protocol in the cluster.
# The API:
PATCH "/api/support/snmp"
# The call
curl -H "accept: application/json" -H "Content-Type: application/json" -X PATCH "https://<mgmt-ip>/api/support/snmp" -d '{"enabled":"false"}'
# The response
200 OK
{}
Enables SNMP authentication traps in the cluster.
# The call
curl -H "accept: application/json" -H "Content-Type: application/json" -X PATCH "https://<mgmt-ip>/api/support/snmp" -d '{"auth_traps_enabled":"true"}'
# The response
200 OK
{}
Enables SNMP protocol and SNMP authentication traps in the cluster.
# The call
curl -H "accept: application/json" -H "Content-Type: application/json" -X PATCH "https://<mgmt-ip>/api/support/snmp" -d '{"enabled":"true", "auth_traps_enabled":"true"}'
# The response
200 OK
{}