354
C
HAPTER
33: SNMP C
ONFIGURATION
Set a
community
name and
access
permission
Direct
configura
tion
Set a
communit
y name
snmp-agent community
{
read
|
write
}
community
-
name
[
acl
acl-number
|
mib-view
view-name
]*
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.
Indirect
configura
tion
Set an
SNMP
group
snmp-agent group
{
v1
|
v2c
}
group-name
[
read-view
read-view
] [
write-view
write-view
] [
notify-view
notify-view
] [
acl
acl-number
]
Add a user
to an
SNMP
group
snmp-agent usm-user
{
v1
|
v2c
}
user-name
group-name
[
acl
acl-number
]
Set the maximum size of an SNMP
packet for SNMP agent to receive
or send
snmp-agent packet
max
-
size
byte
-
count
Optional
1,500 bytes by default.
Set the device switch fabric ID
snmp-agent local
-
switch
fabricid
switch fabricid
Optional
By default, the device
switch fabric ID is
"enterprise
device information".
Create/Update the view
information
snmp-agent mib
-
view
{
included
|
excluded
}
view
-
name oid
-
tree
[
mask
mask-value
]
Optional
By default, the view name
is "ViewDefault" and OID
is 1.
Table 274
Configure basic SNMP functions (SNMPv3)
Operation
Command
Description
Enter system view
system-view
-
Enable SNMP agent
snmp-agent
Optional
Disabled by default.
You can enable SNMP agent
by executing this command or
any of the commands used to
configure SNMP agent.
Set system information and
specify to enable SNMPv3 on
the switch
snmp-agent sys-info
{
contact
sys-contact
|
location
sys-l
ocation
|
version
{ {
v1
|
v2c
|
v3
}* |
all
} }
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.
Set an SNMP group
snmp-agent group v3
group-name
[
authentication
|
privacy
] [
read-view
read-view
] [
write-view
write-view
] [
notify-view
notify-view
] [
acl
acl-number
]
Required
Table 273
Configure basic SNMP functions (SNMPv1 and SNMPv2c)
Operation
Command Description
Содержание Switch 4210 9-Port
Страница 10: ...Password Control Configuration 556 Displaying Password Control 563 Password Control Configuration Example 564 ...
Страница 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Страница 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Страница 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Страница 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Страница 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Страница 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Страница 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Страница 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Страница 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Страница 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Страница 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Страница 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Страница 340: ...338 CHAPTER 30 CLUSTER ...
Страница 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Страница 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Страница 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Страница 451: ......
Страница 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Страница 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Страница 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...