Configuring Trap Parameters
355
n
A Switch 4210 provides the following functions to prevent attacks through
unused UDP ports.
■
Executing the
snmp-agent
command or any of the commands used to
configure SNMP agent enables the SNMP agent, and at the same opens UDP
port 161 and UDP port 1024 used by SNMP agents and SNMP trap clients
respectively.
■
Executing the
undo snmp-agent
command disables the SNMP function and
closes UDP port 161 and UDP port 1024 as well.
Configuring Trap
Parameters
Configuring Basic Trap
Trap messages are those sent by managed devices to the NMS without request.
They are used to report some urgent and important events (for example, the
rebooting of managed devices).
Note that basic SNMP configuration is performed before you configure basic trap.
Encrypt a plain-text password
to generate a cipher-text one
snmp-agent
calculate-password
plain-password
mode
{
md5
|
sha
} {
local-switch fabricid |
specified-switch fabricid
switch fabricid
}
Optional
This command is used if
password in cipher-text is
needed for adding a new
user.
Add a user to an SNMP group
snmp-agent usm-user v3
user-name group-name
[
cipher
] [
authentication-mode
{
md5
|
sha
}
auth-password
[
privacy-mode
{
des56
}
priv-password
] ] [
acl
acl-number
]
Required
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 or 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
Table 275
Configure basic Trap
Operation
Command
Description
Enter system view
system-view
-
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...