This command adds (and names) a new SNMP community, and optionally sets the access mode, allowed IP address, and create a view for the community.
Note:
Note the following:
- No SNMP communities exist by default.
- 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 | None |
| Format | snmp-server community community-name [{ro | rw |su }] [ipaddress ip-address [ipmask ip-mask]][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-string can be up to 20 case-sensitive characters. |
| ro | rw | su | The access mode of the SNMP community, which can be read-only (ro), read-write (rw), or super user su). |
| ip-address | The associated community SNMP packet sending address. It is used along with an optional IP mask value to denote an individual client or range of IP addresses from which SNMP clients may access the device using the specified community-string. If unspecified, access from any host is permitted. |
| ip-mask | The optional IP mask. This value is AND'ed with the IP address to determine the range of permitted client IP addresses. |
| view-name | The name of the view to create or update. |