The switch supports SNMPv2c community-based security for read-only and read-write access.
(switch#) Enter configuration mode.
configure terminal
(switch#) Configure the SNMPv2c community name.
snmp-server community community-name access-mode
Parameters:
| Parameter | Description |
|---|---|
community-name |
The user defined name for this community. |
access-mode |
The access level for this community. Can be ro for read-only or rw for read-write access |
(switch#) The following command configures a read-only SNMP community called “public”.
snmp-server community public ro
When successful this command returns no output.
(switch#) The following command displays information about any SNMP community that may have been configured.
show snmp community
Example output:
Community : public
Access : read-only