Configuring Trap
281
Configuring Trap
Trap is the information that the managed device initially sends to the NMS without
request. Trap is used to report some urgent and important events (for example, the
managed device is rebooted).
Configuration
Prerequisites
Complete SNMP basic configuration.
Configuration Tasks
Set the size of SNMP packet that the
Agent can send/receive
snmp-agent packet
max
-
size
byte
-
count
Optional
By default, it is 1,500
bytes.
Set the device engine ID
snmp-agent local
-
engineid
engineid
Optional
By default, the device
engine ID is "Enterprise
device
information".
Create or update the view
information
snmp-agent mib
-
view
{
included
|
excluded
}
view
-
name
oid
-
tree
Optional
By default, the view name
is ViewDefault and OID is
1.
Table 250
Configure SNMP basic functions (SNMP V3) (Continued)
Operation
Command
Description
Table 251
Configure Trap
Operation
Command
Description
Enter system view
system-view
—
Enable the device to send
Trap packets
snmp-agent trap enable
[
configuration
|
flash
|
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart ]
* |
system
| ]
Optional
By default, the
port is enabled to
send Trap packets.
Enable the
port to
send Trap
packets
Enter port view
interface
interface-type interface-number
Enable the port
to send Trap
packets
enable snmp trap updown
Quit to system
view
quit
Set Trap target host address
snmp-agent target-host
trap
address
udp-domain
{
ip-addr }
[
udp-port
port-number ]
params
securityname
security-string
[
v1
|
v2c
|
v3
{
authentication
|
privacy
} ]
Required
Set the source address to send
Trap packets
snmp-agent trap source
interface-type
interface-number
Optional
Set the information queue
length of Trap packet sent to
destination host
snmp-agent trap queue-size
size
Optional
The default value I
s 100.
Set aging time for Trap
packets
snmp-agent trap life
seconds
Optional
The default aging
time for Trap
packets is 120
seconds.
Summary of Contents for 4200G 12-Port
Page 10: ...8 CONTENTS...
Page 14: ...4 ABOUT THIS GUIDE...
Page 46: ...32 CHAPTER 5 LOGGING IN THROUGH WEB BASED NETWORK MANAGEMENT SYSTEM...
Page 48: ...34 CHAPTER 6 LOGGING IN THROUGH NMS...
Page 60: ...46 CHAPTER 9 VLAN CONFIGURATION...
Page 64: ...50 CHAPTER 10 MANAGEMENT VLAN CONFIGURATION...
Page 80: ...66 CHAPTER 13 GVRP CONFIGURATION...
Page 98: ...84 CHAPTER 15 LINK AGGREGATION CONFIGURATION...
Page 112: ...98 CHAPTER 18 MAC ADDRESS TABLE MANAGEMENT...
Page 126: ...112 CHAPTER 19 LOGGING IN THROUGH TELNET...
Page 162: ...148 CHAPTER 20 MSTP CONFIGURATION...
Page 274: ...260 CHAPTER 29 IGMP SNOOPING CONFIGURATION...
Page 276: ...262 CHAPTER 30 ROUTING PORT JOIN TO MULTICAST GROUP CONFIGURATION...
Page 298: ...284 CHAPTER 33 SNMP CONFIGURATION...
Page 304: ...290 CHAPTER 34 RMON CONFIGURATION...
Page 338: ...324 CHAPTER 36 SSH TERMINAL SERVICES...
Page 356: ...342 CHAPTER 38 FTP AND TFTP CONFIGURATION...
Page 365: ...Information Center Configuration Example 351 S4200G terminal logging...
Page 366: ...352 CHAPTER 39 INFORMATION CENTER...
Page 378: ...364 CHAPTER 40 BOOTROM AND HOST SOFTWARE LOADING...
Page 384: ...370 CHAPTER 41 Basic System Configuration and Debugging...
Page 388: ...374 CHAPTER 43 NETWORK CONNECTIVITY TEST...
Page 406: ...392 CHAPTER 45 CONFIGURATION OF NEWLY ADDED CLUSTER FUNCTIONS...