ONTAP 9

to Japanese version

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

options -option-name snmp.enable -option-value on

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

options -option-name snmp.enable -option-value off

Commands for managing SNMP v1, v2c, and v3 users

If you want to…​

Use this command…​

Configure SNMP users

security login create

Display SNMP users

security snmpusers and security login show -application snmp

Delete SNMP users

security login delete

Modify the access-control role name of a login method for SNMP users

security login modify

Commands for providing contact and location information

If you want to…​

Use this command…​

Display or modify the contact details of the cluster

system snmp contact

Display or modify the location details of the cluster

system snmp location

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

system snmp community add

Delete a community or all communities

system snmp community delete

Display the list of all communities

system snmp community show

Because SVMs are not part of the SNMP standard, queries on data LIFs must include the Fujitsu 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

system snmp show

Commands for managing SNMP traps and traphosts

If you want to…​

Use this command…​

Enable SNMP traps sent from the cluster

system snmp init -init 1

Disable SNMP traps sent from the cluster

system snmp init -init 0

Add a traphost that receives SNMP notifications for specific events in the cluster

system snmp traphost add

Delete a traphost

system snmp traphost delete

Display the list of traphosts

system snmp traphost show

If you want to…​

Use this command…​

Display the events for which SNMP traps (built-in) are generated

event route show

Use the -snmp-support true parameter to view only SNMP-related events.

Use the instance -messagename <message> parameter to view a detailed description why an event might have occurred, and any corrective action.

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

event snmphistory show

Delete an SNMP trap history record

event snmphistory delete

For more information about the system snmp, security, and event commands, see the man pages: ONTAP 9.14.1 commands.

Top of Page