Snmp-Agent Trap Enable - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

If the key words authentication and privacy are not specified, the authentication mode is no
authentication, no privacy.
Related commands: enable snmp trap updown, snmp-agent trap enable, snmp-agent trap source,
snmp-agent trap life.
Examples
# Enable the device to send SNMPv1 traps to 10.1.1.1, using the community name of public.
<Sysname> system-view
[Sysname] snmp-agent trap enable standard
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname public

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.
authentication: Enables the sending of authentication failure traps in the event of authentication
failure.
coldstart: Sends coldstart traps when the device restarts.
linkdown: Sends linkdown traps when the port is in a linkdown status. It should be configured
globally.
linkup: Sends linkup traps when the port is in a linkup status. It should be configured globally.
warmstart: Sends warmstart traps when the SNMP restarts.
system: Sends H3C-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 is enabled.
Only after the trap function is enabled can each module generate corresponding traps.
Note that:
1-22

Advertisement

Table of Contents
loading

Table of Contents