
88
Examples
# Configure the contact information as
Dial System Operator at beeper # 27345
.
<Sysname> system-view
[Sysname] snmp-agent sys-info contact Dial System Operator at beeper # 27345
snmp-agent target-host
Syntax
snmp-agent target-host
trap
address
udp-domain
{
ip-address
|
ipv6
ipv6-address
} [
udp-port
port-number
]
[
vpn-instance
vpn-instance-name
]
params
securityname
security-string
[
v1
|
v2c
|
v3
[
authentication
|
privacy
] ]
undo
snmp-agent
target-host trap
address
udp-domain
{
ip-address
|
ipv6
ipv6-address
}
params
securityname
security-string
[
vpn-instance
vpn-instance-name
]
View
System view
Default level
3: Manage level
Parameters
trap
: Specifies a target host for receiving the traps and notifications sent by the device.
address
: Specifies the target host’s IP address as the destination IP address in the SNMP traps and
notifications.
udp-domain
: Specifies UDP as the transport protocol.
ip-address
:
Specifies the IPv4 address of the trap target host.
ipv6
ipv6-address
:
Specifies the IPv6 address of the target host.
udp-port
port-number
: Specifies the UDP port for receiving the SNMP traps and notifications. The default
UDP port is 162.
vpn-instance
vpn-instance-name
: Specifies the MPLS L3VPN to which the target host belongs, where
vpn-instance-name
is a case-sensitive string of 1 to 31 characters. If the target host is on the public
network, do not specify this option. This option is applicable only to IPv4.
params
securityname
security-string
: Specifies the authentication related parameter, which is an
SNMPv1 or SNMPv2c community name or an SNMPv3 user name, a string of 1 to 32 characters.
v1
: Specifies SNMPv1. This keyword must be the same as the SNMP version on the NMS; otherwise, the
NMS cannot receive any trap.
v2c
: Specifies SNMPv2c. This keyword must be the same as the SNMP version on the NMS; otherwise,
the NMS cannot receive any trap.
v3
: Specifies SNMPv3. This keyword must be the same as the SNMP version on the NMS; otherwise, the
NMS cannot receive any trap.
•
authentication
: Specifies the security model to be authentication without privacy. Authentication is
a process to check whether the packet is integral and whether it has been tampered with. When
creating an SNMPv3 user, configure the authentication password.