snmp-server community

This command adds (and names) a new SNMP (Simple Network Management Protocol) community, and optionally sets the access mode, allowed IP address, and create a view for the community.

Note

Note

Community names in the SNMP Community Table must be unique. When making multiple entries using the same community name, the first entry is kept and processed and all duplicate entries are ignored.
Default Two communities are created by default:
  • public, with read-only permissions, a view name of Default, and allows access from all IP addresses
  • private, with read/write permissions, a view name of Default, and allows access from all IP addresses.
Format snmp-server community community-string [{ro | rw |su}] [ipaddress ip-address] [view view-name]
Mode Global Config
Parameter Description
community-string A name associated with the switch and with a set of SNMP managers that manage it with a specified privileged level. The length of community-name can be up to 16 case-sensitive characters.
ro | rw | su The access mode of the SNMP community, which can be public (Read-Only/RO), private (Read-Write/RW), or Super User (SU).
ip-address The associated community SNMP packet sending address and is used along with the client IP mask value to denote a range of IP addresses from which SNMP clients may use that community to access the device. A value of 0.0.0.0 allows access from any IP address. Otherwise, this value is ANDed with the mask to determine the range of allowed client IP addresses.
view-name The name of the view to create or update.