R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

177
View
System view
Default level
3: Manage level
Parameters
trap: Specifies a target host for receiving the traps sent by the device.
address: Specifies a target host for receiving the traps sent by the device.
udp-domain: Specifies UDP as the transport protocol.
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 trap target host.
udp-port port-number: Specifies the number of the port on the target host to receive traps. The value
defaults to 162.
vpn-instance vpn-instance-name: Specifies the VPN 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 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.
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.
Description
Use snmp-agent target-host to configure the related settings for a trap target host.
Use undo snmp-agent target-host to remove settings for an SNMP trap target host.
You can specify multiple trap target hosts. The maximum number of trap target hosts is 20.
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.
In non-FIPS mode, if none of the keywords v1, v2 and v3 is specified, SNMPv1 is used. In FIPS mode, only
v3 is available.
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 life, and
snmp-agent trap source.