Enables read-only and read-write access to SNMP services using community strings. Use no snmp-server community to prevent access to SNMP services using community strings. By default, community string access is enabled.
Syntax
Important:
This command is not allowed when FIPS mode is enabled.
[no] snmp-server community read-onlycommunity-nameread-writecommunity-name
Parameters
Parameter
Description
Possible Values
Default Value
community-name
Assigns a read-only or read-write community string
User level
admin
Context
general
Example
To enable read-only access to SNMP services via the read-com community string and read-write access to SNMP services via the write-com community string:
Gxxx-001(super)# snmp-server community read-only read-com read-write write-com