Creating SNMP Communities on SNMP V1 and V2


SNMPv1 and v2 protocol uses communities as a method of controlling access to information. A community consists of the community string and community type. You can create a community using the following command:


CLI (network-admin@switch) > snmp-community-create community-string community-string-string community-type read-only|read-write


community-string community-string-string

Specify a community name

community-type read-only|read-write

Specify the community type having read-only or read-write privileges


For example, to create a SNMP community string named, pluribus, with read-only privileges, use the following command:


CLI (network-admin@switch) > snmp-community-create community-string pluribus community-type read-only


In Netvisor ONE, the snmp-show command enables SNMP walk internally on specific MIB tables or MIB elements. You can run SNMP walk from any host where SNMP software is enabled. To display the details of a Pluribus custom MIB, pnFabricTable, for example, use the command:


CLI (network-admin@switch) > snmp-show community-string pluribus name pnFabricTable show-type walk


switch                                       name                                             value

------------                        ---------------------                           -------------------

switch-name                           FbIndex.100663455                        Gauge32: 100663455

switch-name                           NodeName.100663455                      STRING: switch.

switch-name                           FabricName.100663455                    STRING: switch.

switch-name                           NodeState.100663455                      Gauge32: 1


To modify the SNMP community, pluribus, to read-write, use the following command:


CLI (network-admin@switch) > snmp-community-modify community-string pluribus community-type read-write


To display information about the SNMP community, pluribus, use the following command:


CLI (network-admin@switch) > snmp-community-show community-string pluribus


switch           community-string          community-type

------           ----------------          --------------

switch                pluribus                       read-write


To delete the SNMP community, pluribus, use the following command:


CLI (network-admin@switch) > snmp-community-delete community-string pluribus