354
C
33: SNMP C
HAPTER
ONFIGURATION
Table 273 Configure basic SNMP functions (SNMPv1 and SNMPv2c)
Operation
Set a
Direct
community
configura
name and
tion
access
permission
Indirect
configura
tion
Set the maximum size of an SNMP
packet for SNMP agent to receive
or send
Set the device switch fabric ID
Create/Update the view
information
Table 274 Configure basic SNMP functions (SNMPv3)
Operation
Enter system view
Enable SNMP agent
Set system information and
specify to enable SNMPv3 on
the switch
Set an SNMP group
Command
Set a
snmp-agent community {
communit
read | write }
y name
community-name [ acl
acl-number | mib-view
view-name ]*
Set an
snmp-agent group { v1 |
SNMP
v2c } group-name [
group
read-view read-view ] [
write-view write-view ] [
notify-view notify-view ] [
acl acl-number ]
Add a user
snmp-agent usm-user { v1
to an
| v2c } user-name
SNMP
group-name [ acl
group
acl-number ]
snmp-agent packet
max-size byte-count
snmp-agent local-switch
fabricid switch fabricid
snmp-agent mib-view {
included | excluded }
view-name oid-tree [ mask
mask-value ]
Command
system-view
snmp-agent
snmp-agent sys-info {
contact sys-contact |
location sys-location |
version { { v1 | v2c | v3 }* | all
} }
snmp-agent group v3
group-name [
authentication | privacy ] [
read-view read-view ] [
write-view write-view ] [
notify-view notify-view ] [
acl acl-number ]
Description
Required
You can set an
■
SNMPv1/SNMPv2c
community name
through direct
configuration.
Indirect configuration
■
is compatible with
SNMPv3. The added
user is equal to the
community name for
SNMPv1 and
SNMPv2c.
You can choose either
■
of them as needed.
Optional
1,500 bytes by default.
Optional
By default, the device
switch fabric ID is
"enterprise number +
device information".
Optional
By default, the view name
is "ViewDefault" and OID
is 1.
Description
-
Optional
Disabled by default.
You can enable SNMP agent
by executing this command or
any of the commands used to
configure SNMP agent.
Required
By default, the contact
information for system
maintenance is "R&D
Hangzhou, 3Com Technology
Co., Ltd.", the system location
is "Hangzhou China", and the
SNMP version is SNMPv3.
Required