snmp-server community

Last Updated : May 24, 2019 |
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.
Prolog information
Important:
This command is not allowed when FIPS mode is enabled.

Syntax

[no] snmp-server community read-only community-name read-write community-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