Command Manual – System Management
Quidway S8500 Series Routing Switches
Chapter 5 SNMP Configuration Commands
Huawei Technologies Proprietary
5-16
privacy
: Configures to authenticate and encrypt the packet.
Description
Use the
snmp-agent target-host
command to configure destination of SNMP
notification.
Use the
undo snmp-agent target-host
command to cancel the host that receives
SNMP notification.
The
snmp-agent target-host
command and the
snmp-agent trap enable
command
should be used at the same time. Use the
snmp-agent trap enable
command to
enable the device to transmit Trap packets. The
snmp-agent trap enable
command
and
snmp-agent target-host
command should be used at the same time on the host
to enable notify message sending.
Note:
If the version of SNMP message is v3, the packet authentication encryption mode
specified by the command must be consistent with configuration for SNMP group to
which the
securityname
belongs.
Related command:
snmp-agent trap enable
,
snmp-agent trap source
and
snmp-agent trap life
,
snmp-agent group
,
snmp-agent usm-user
.
Example
# Enable sending Trap message to 10.1.1.1 with community name public.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent trap enable
[Quidway] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public
5.1.16 snmp-agent trap enable
Syntax
snmp-agent trap enable
[
bgp
[
backwardtransition
|
established
]* |
configuration
|
flash
|
ospf
[
process-id
] [
ospf-trap-list
] |
ldp
|
lsp
|
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
]* |
system
|
vrrp
[
authfailure
|
newmaster
] ]
undo snmp-agent trap enable
[
bgp
[
backwardtransition
|
established
]* |
configuration
|
flash
|
ospf
[
process-id
] [
ospf-trap-list
] |
ldp
|
lsp
|
standard