Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 SNMP Configuration Commands
Huawei Technologies Proprietary
1-17
params
: Specifies SNMP target host information to be used in the generation of SNMP
messages.
security-string
: The community name of SNMP V1 and SNMP V2C, or SNMP V3 user
name, ranging from 1 to 32 characters.
v1
: Represents SNMPv1.
v2c
: Represents SNMPv2C.
v3
: RepresentsSNMPv3.
authentication
: Configures to authenticate the packet without encryption.
privacy
: Configures to authenticate and encrypt the packet.
Description
Use
snmp-agent target-host
command to configure destination of SNMP Trap
packets.
Use
undo snmp-agent target-host
command to cancel the current setting.
The
snmp-agent target-host
command and the
snmp-agent trap enable
or
enable
snmp trap updown
command must be used at the same time on the device to send
Trap packets.
1) Use
the
snmp-agent trap enable
or
enable snmp trap updown
command to set
Trap packets allowed to send (all Trap packets can be sent by default).
2) Use
the
snmp-agent target-host
command to set the address of the destination
host receiving SNMP Trap packets.
Related command:
snmp-agent trap enable
,
snmp-agent trap source
and
snmp-agent trap life
.
Example
# Enable sending SNMP Trap packets 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 standard
[Quidway] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public
1.1.19 snmp-agent trap enable
Syntax
snmp-agent trap enable
[
configuration
|
flash
|
ospf
[
process-id
] [
ospf-trap-list
] |
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
]* |
system |
vrrp
[
authfailure
|
newmaster
] ]