SNMP Commands 327
SNMP Commands
snmp-server community
The snmp-server community command sets up the community access string to permit access to the
Simple Network Management Protocol command. Use the no form of this command removes the
specified community string.
Syntax
•
snmp-server community
community
[
ro
|
rw
|
su
] [
ipv4-address
|
ipv6-address
] [
view
view-name
]
•
snmp-server community-group
community group-name
[
ipv4-address
|
ipv6-address
]
•
no snmp-server community
community
[
ipv4-address
|
ipv6-address
]
•
community
— Community string that acts like a password and permits access to the SNMP
protocol. (Range: 1- 20 characters)
•
ro
— Specifies read-only access (Default)
•
rw
— Specifies read-write access
•
su
— Specifies SNMP administrator access
•
view
view-name
— Name of a previously defined view. The view defines the objects available
to the community. It’s not relevant for
su
,
which has an access to the whole MIB.
If
unspecified, all the objects except of the community-table and SNMPv3 user and access
tables are available. (Range: 1 - 30 characters)
•
ipv4-address
— Management station IPv4 address. Default is all IP addresses.
•
ipv6-address
— Management station IPv6 address. Default is all IP addresses.
•
group-name
— Specifies the name of a group configured using the command 'snmp-server
group' with v1 or v2 parameter (no specific order of the 2 command configurations).
The
group defines the objects available to the community. (Range: 1 - 30 characters)
Default Configuration
There are no default communities defined.
Command Mode
Global Configuration mode.
5400_CLI.book Page 327 Wednesday, December 17, 2008 4:33 PM