Network Management Protocol (SNMP) Commands
OL-32830-01 Command Line Interface Reference Guide
860
45
45.2 snmp-server community-group
To configure access rights to a user group, use snmp-server community-group.
The group must exist in order to be able to specify the access rights. This
command configures both SNMP v1 and v2.
Syntax
snmp-server community-group
community
-
string group-name [ip-address |
ipv6-address] [
mask
mask |
prefix
prefix-length]
Parameters
•
community-string—Define the password that permits access to the SNMP
protocol. (Range: 1–20 characters).
•
group-name—This is the name of a group configured using
snmp-server
group
with v1 or v2 (no specific order of the two command configurations is
imposed on the user). The group defines the objects available to the
community. (Range: 1–30 characters)
•
ip-address—(Optional) Management station IP address. The default is all IP
addresses. This can be an IPv4 address, IPv6 or IPv6z address. See
IPv6z
Address Conventions
.
•
mask—(Optional) Specifies the mask of the IPv4 address. This is not a
network mask, but rather a mask that defines which bits of the packet’s
source address are compared to the configured IP address. If unspecified,
it defaults to 255.255.255.255. The command returns an error if the mask is
specified without an IPv4 address.
•
prefix-length—(Optional) Specifies the number of bits that comprise the
IPv4 address prefix. If unspecified, it defaults to 32. The command returns
an error if the prefix-length is specified without an IPv4 address.
Default Configuration
No community is defined
Command Mode
Global Configuration mode
Содержание 300 Series
Страница 2: ......