Commands for managing SNMP
You can use the system snmp
commands to manage SNMP, traps, and traphosts. You can use the security
commands to manage SNMP users per SVM. You can use the event
commands to manage events related to SNMP traps.
Commands for configuring SNMP
If you want to… |
Use this command… |
---|---|
Enable SNMP on the cluster |
The SNMP service must be allowed under the management (mgmt) firewall policy. You can verify whether SNMP is allowed by using the system services firewall policy show command. |
Disable SNMP on the cluster |
|
Commands for managing SNMP v1, v2c, and v3 users
If you want to… |
Use this command… |
---|---|
Configure SNMP users |
|
Display SNMP users |
|
Delete SNMP users |
|
Modify the access-control role name of a login method for SNMP users |
|
Commands for providing contact and location information
If you want to… |
Use this command… |
---|---|
Display or modify the contact details of the cluster |
|
Display or modify the location details of the cluster |
|
Commands for managing SNMP communities
If you want to… |
Use this command… |
---|---|
Add a read-only (ro) community for an SVM or for all SVMs in the cluster |
|
Delete a community or all communities |
|
Display the list of all communities |
|
Because SVMs are not part of the SNMP standard, queries on data LIFs must include the NetApp root OID (1.3.6.1.4.1.789), for example, snmpwalk -v 2c -c snmpNFS 10.238.19.14 1.3.6.1.4.1.789
.
Command for displaying SNMP option values
If you want to… |
Use this command… |
---|---|
Display the current values of all SNMP options, including cluster contact, contact location, whether the cluster is configured to send traps, the list of traphosts, and list of communities and access control type |
|
Commands for managing SNMP traps and traphosts
If you want to… |
Use this command… |
---|---|
Enable SNMP traps sent from the cluster |
|
Disable SNMP traps sent from the cluster |
|
Add a traphost that receives SNMP notifications for specific events in the cluster |
|
Delete a traphost |
|
Display the list of traphosts |
|
Commands for managing events related to SNMP traps
If you want to… |
Use this command… |
---|---|
Display the events for which SNMP traps (built-in) are generated |
Use the Use the Routing of individual SNMP trap events to specific traphost destinations is not supported. All SNMP trap events are sent to all traphost destinations. |
Display a list of SNMP trap history records, which are event notifications that have been sent to SNMP traps |
|
Delete an SNMP trap history record |
|
For more information about the system snmp
, security
, and event
commands, see the ONTAP command reference.