10-22
snmp-agent trap enable
Syntax
snmp-agent trap enable
[
configuration
|
flash
|
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
]* |
system
]
undo snmp-agent trap enable
[
configuration
|
flash
|
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
]* |
system
]
View
System view
Default Level
3: Manage level
Parameters
configuration
: Enables the sending of configuration traps.
flash
: Enables the sending of FLASH-related traps.
standard
: Standard traps.
z
authentication
: Enables the sending of authentication failure traps in the event of authentication
failure.
z
coldstart
: Sends coldstart traps when the device restarts.
z
linkdown
: Sends linkdown traps when the port is in a linkdown status. It should be configured
globally.
z
linkup
: Sends linkup traps when the port is in a linkup status. It should be configured globally.
z
warmstart
: Sends warmstart traps when the SNMP restarts.
system
: Sends 3Com-SYS-MAN-MIB (a private MIB) traps.
Description
Use the
snmp
-
agent trap enable
command to enable the trap function globally.
Use the
undo snmp-agent trap enable
command to disable the trap function globally.
By default, the trap function of other modules is enabled.
Only after the trap function is enabled can each module generate corresponding traps.
Note that:
To enable an interface to generate Linkup/Linkdown traps when its state changes, you need to enable
the linkUp/linkDown trap function on the interface and globally. Use the
enable snmp trap updown
command to enable this function on an interface, and use the
snmp-agent trap enable
[
standard
[
linkdown
|
linkup
] * ] command to enable this function globally.
Related commands:
snmp
-
agent target
-
host
,
enable snmp trap updown
.
Examples
# Enable the device to send SNMP authentication failure packets to 10.1.1.1, using the community
name
public
.
<Sysname> system-view
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname public
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...