The snmp-agent inform address command sets parameters for sending informs, including the timeout period for waiting for inform ACK messages from the NMS and times to retransmit an inform.
The undo snmp-agent inform address command restores the default setting for a particular inform host.
By default, the timeout waiting period for inform ACK messages is 15 seconds and the number of times to retransmit informs is 3.
snmp-agent inform { timeout seconds | resend-times times } * address udp-domain ip-address [ vpn-instance vpn-instance-name ] params securityname { security-name | cipher security-name }
undo snmp-agent inform { timeout [ seconds ] | resend-times [ times ] } * address udp-domain ip-address [ vpn-instance vpn-instance-name ] params securityname { security-name | cipher security-name }
Parameter | Description | Value |
---|---|---|
timeout seconds |
Specifies the timeout period for waiting for inform ACK messages from the NMS. |
The value is an integer ranging from 1 to 1800, in seconds. The default value is 15, which is equal to the global timeout period configured using the snmp-agent inform command. |
resend-times times |
Specifies the number of times that informs are retransmitted when no inform ACK message is returned from the NMS. |
The value is an integer ranging from 0 to 10. The default value is 3, which is equal to the global retransmission times configured using the snmp-agent inform command. |
address |
Indicates the address of the target host for receiving SNMP traps. NOTE:
The IP address specified by address and the security name specified by securityname together identify a host. |
The value is dotted decimal notation. |
udp-domain ip-address |
Specifies the IP address of a specified target host, with the transmission domain based on UDP. |
The value is dotted decimal notation. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value must be an existing VPN instance name. The parameter vpn-instance is optional. On a VPN network, you need to use the VPN instance specified by vpn-instance, IP address, and security name to identify a target host. |
params |
Indicates information about the target host that generates SNMP notifications. |
- |
securityname security-name |
Displays the name of the target host for receiving informs on the NMS. For SNMPv3, securityname must be configured as the user name. securityname configured on the host needs to be the same as that configured on the NMS, or the NMS cannot receive the trap messages sent from the host. For SNMPv2c, the NMS can receive trap messages from all hosts without having securityname configured. securityname is used to distinguish multiple hosts that generate trap messages. |
The value is a string of 1 to 32 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
cipher security-name |
Indicates the unencrypted or encrypted string of security name. |
The value is a string of 1 to 32 case-sensitive characters or a string of 32, 48, 56, or 68 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
|
Usage Scenario
You can use both the snmp-agent inform address command and the snmp-agent inform command to set parameters according to the network condition.
Prerequisites
Parameters for sending informs take effect only after the IP address of the target host for receiving informs is configured using the snmp-agent target-host inform command.
Precautions