community
This command grants and defines access to the specified SNMPv1 or v2c communities.
Syntax
community communityName read-only [IP_address]
community communityName read-write [IP_address]
Parameters
- communityName
- Specifies the name of the community. The community name is effectively a password phrase that accompanies SNMP requests, and is used to determine whether the request can be fulfilled or not.
read-only
- Indicates that managers are restricted to SNMP get operations, which means that these managers can read, but cannot change management information base (MIB) values.
read-write
- Indicates that managers have access to both SNMP get and set operations, which means that these managers can read and change MIB values.
- IP_address
- Specify an IP address to restrict access to the SNMP manager in the named community with the specified IP address. By default, any SNMP manager belonging to the named community can make requests.
Examples
- Specify read-only access to the community named
private
.# community private read-only