The snmp-agent target-host trap ipv6 command sets the destination that receives the SNMP notification.
The undo snmp-agent target-host ipv6 command removes the host that receives the SNMP messages.
snmp-agent target-host trap ipv6 address udp-domain ipv6-address [ udp-port port-number | vpn-instance vpn-instance-name ] * params securityname security-string [ { v3 [ authentication | privacy ] | v2c | v1 } | notify-filter-profile profile-name | private-netmanager | ext-vb ] *
snmp-agent target-host trap ipv6 address udp-domain ipv6-address [ udp-port port-number | vpn-instance vpn-instance-name ] * } params securityname cipher security-string [ { v2c | v1 } | notify-filter-profile profile-name | private-netmanager | ext-vb ] *
undo snmp-agent target-host ipv6 ipv6-address securityname [ cipher ] security-string [ vpn-instance vpn-instance-name ]
undo snmp-agent target-host trap ipv6 address { udp-domain ipv6-address [ udp-port port-number | vpn-instance vpn-instance-name ]* } params securityname { security-string | cipher security-string }
Usage Scenario
On an IPv6 network, to help the NMS manage devices efficiently, you can use the snmp-agent target-host trap ipv6 command to set the destination IP address of a trap message and to filter trap messages. The snmp-agent target-host trap ipv6 command configures trap messages to be sent based on the IPv6 protocol.
Precautions
Sending trap messages based on the IPv6 protocol is not supported.
For SNMPv2c, when a user with a level lower than the level configured using this command queries the securityname configured using the display this or display current-configuration command, the securityname is displayed as asterisks (******).
# Configure an IPv6 NM which is based on SNMP v3 protocol, named Huawei, and encrypted in authentication and encryption mode.
<sysname> system-view [sysname] snmp-agent trap enable Warning: All switches of SNMP trap/notification will be open. Continue? [Y/N]:y [sysname] snmp-agent target-host trap ipv6 address udp-domain 2001:db8::1 params securityname Huawei v3 privacy