snmp-server community
This command adds (and names) a new SNMP community. A community <name> is a name associated
with the switch and with a set of SNMP managers that manage it with a specified privileged level. The
length of <name> can be up to 16 case-sensitive characters.
Community names in the SNMP Community Table must be unique. If you make multiple entries using
the same community name, the first entry is kept and processed and all duplicate entries are ignored.
Default
Format
Mode
no snmp-server community
This command removes this community name from the table. The <name> is the community name to
delete.
Format
Mode
snmp-server community ipaddr
This command sets a client IP address for an SNMP community. The address is 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. The name is the applicable community name.
Default
Format
Mode
no snmp-server community ipaddr
This command sets a client IP address for an SNMP community to 0.0.0.0. The name is the applicable
community name.
Format
Mode
snmp-server community ipmask
This command sets a client IP mask for an SNMP community. The address is the associated community
SNMP packet sending address and is used along with the client IP address value to denote a range of IP
addresses from which SNMP clients may use that community to access the device.
Two default community names: Public and Private. You can replace these
default community names with unique identifiers for each community. The
default values for the remaining four community names are blank.
snmp-server community <name>
Global Config
no snmp-server community <name>
Global Config
0.0.0.0
snmp-server community ipaddr <ipaddr> <name>
Global Config
no snmp-server community ipaddr <name>
Global Config
Setup and Management Commands
43