H3C SR6600 Command Reference Manual page 127

Network management and monitoring command reference
Hide thumbs Also See for SR6600:
Table of Contents

Advertisement

ip-address: Specifies the IPv4 address or name of the target host. The host name is a string of 1 to 255
characters.
ipv6 ipv6-address: Specifies the IPv6 address of the target host.
udp-port port-number: Specifies the UDP port for receiving SNMP traps. 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 combination is applicable only in a network supporting IPv4.
params securityname security-string: Specifies the authentication parameter. The security-string
argument specifies an SNMPv1 or SNMPv2c community name or an SNMPv3 username, a string of 1
to 32 characters.
v1: Specifies SNMPv1.
v2c: Specifies SNMPv2c.
v3: Specifies SNMPv3.
authentication: Specifies the security model to be authentication without privacy. You must specify
the authentication key when you create the SNMPv3 user.
privacy: Specifies the security model to be authentication with privacy. You must specify the
authentication key and privacy key when you create the SNMPv3 user.
Usage guidelines
You can specify up to 20 trap target hosts.
Make sure the SNMP agent uses the same UDP port number as the target host for traps. If udp-port
port-number is not specified, UDP port 162 is used by default. Port 162 is the SNMP-specified port used
for receiving traps, and is used by most NMSs, including IMC and MIB Browser.
Make sure the SNMP agent uses the same SNMP version as the trap host so the host can receive traps.
If none of the keywords v1, v2c, or v3 is specified, SNMPv1 is used.
If neither authentication nor privacy is specified, the authentication mode is no authentication, no
privacy.
In FIPS mode, only SNMPv3 is supported.
Examples
# Configure the SNMP agent to send SNMPv1 traps to 10.1.1.1 in the community 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
# Configure the SNMP agent to send SNMPv3 traps to 10.1.1.1 and set the username to v3test.
<Sysname> system-view
[Sysname] snmp-agent trap enable standard
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 vpn-instance vpn1 params
securityname v3test v3
Related commands
enable snmp trap updown
snmp-agent trap enable
snmp-agent trap life
119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sr6600-x

Table of Contents