Skip to main content

Adding an SNMP community

You can use the command line interface (CLI) to add a community to the administrative storage virtual machine (SVM) for a cluster that is running SNMPv1 or SNMPv2c.

This procedure is for adding an SNMP community to the administrative SVM for the cluster. The procedure for adding an SNMP community to a data SVM is described in the networking documentation.

Network Management Guide

Note
  • In new installations of ONTAP, SNMPv1 and SNMPv2c are disabled by default. SNMPv1 and SNMPv2c are enabled when you create an SNMP community.

  • ONTAP supports read-only communities.

  • By default, the SNMP service of the data firewall policy assigned to data LIFs is set to deny.

  • When creating an SNMP user for a data SVM, you should create a new firewall policy with SNMP service set to allow.

  • You can create SNMP communities for SNMPv1 and SNMPv2c users for both the admin SVM and the data SVM.

Procedure

  1. Create an SNMP community by using the system snmp community add command.
    • To create an SNMP community in the admin SVM cluster-1, run the following command:
      Cluster-1::> system snmp community add -type ro -community-name comty1 -vserver cluster-1
    • To create an SNMP community in the data SVM vs1, run the following command:

      Cluster-1::> system snmp community add -type ro -community-name comty2 -vserver vs1
  2. Verify that the communities have been created by using the system snmp community show command.
    The following command shows the two communities created for SNMPv1 and SNMPv2c:
    Cluster-1::> system snmp community show
    Cluster-1
    ro comty1
    vs1
    ro comty2