snmp-agent target-host trap-hostname
Function
The snmp-agent target-host trap-hostname configures the target host of trap messages.
The undo snmp-agent target-host trap-hostname deletes the target host of trap messages.
Parameters
Parameter |
Description |
Value |
---|---|---|
hostname |
Specifies the name of the target host. |
The value is a string of 1 to 32 characters. |
address ipv4-addr |
Indicates the IPv4 address of the target host. |
The value is in dotted decimal notation, ranging from 0.0.0.0 to 255.255.255.255. |
address ipv6 ipv6-addr |
Specifies the IPv6 address of the target host. |
The value is a hexadecimal number that ranges from 0 to FFFF (0::0 to ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, "::" indicates that the value of the field between the two colons is 0). |
domain domain-name | Specifies the domain name of the destination host. |
The value is a string of 1 to 64 characters without spaces. |
udp-port udp-portid |
Indicates the ID of the port on the target host for receiving trap messages. |
The value is an integer that ranges from 1 to 65535. The default value is 162. |
trap-paramsname paramsname |
Indicates the name of the trap sending parameter list used by the target host. |
The value is a string of 1 to 32 characters. |
Usage Guidelines
Only the terminal configured as the target host of trap messages can receive traps. The NMS is generally configured as the target host of trap messages. Currently, the system supports a maximum of 20 target hosts.
If the IP address of the destination host changes dynamically and a fixed domain name is used, configure a destination host by configuring its domain name.