The display snmp-agent inform command displays parameters configured for a specific or all target hosts to send Inform messages.
Parameter | Description | Value |
---|---|---|
host-name host-name |
Specifies an SNMP target host name. |
The name is a string of 1 to 32 characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string. |
address |
Indicates the address of a target host for receiving SNMP messages. |
The IP address specified using address and the security name specified using securityname together identify a host. |
udp-domain ip-address |
Specifies the IP address of a target host within a User Datagram Protocol (UDP) transmission domain. |
The value is in dotted decimal notation. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. vpn-instance is optional. To run the display snmp-agent inform command on a VPN network, use the VPN instance name, IP address, and security name together to identify a host. |
params |
Indicates information about a target host that generates SNMP messages. |
- |
securityname interface-name |
Specifies the user name or community name displayed on the NMS. |
The value is a string of 1 to 32 case-sensitive characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string. |
cipher protocol-interface-name |
Specifies the unencrypted or encrypted password of a security name. The simple text password or the ciphertext password can be entered. The password in the configuration file is displayed in ciphertext. |
A simple text password is a string of 1 to 32 case-sensitive characters. A ciphertext password is a string of 48 or from 68 to 168 case-sensitive characters. When quotation marks are used around the string, spaces are allowed in the string. Ciphertext passwords with various lengths configured in an earlier version are also supported in the existing version. |
Usage Scenario
To view the configuration of sending Inform messages on all target hosts, run the display snmp-agent inform command. The command output contains the following information:
To view the configuration of sending Inform messages on a specified target host and message statistics, run the display snmp-agent inform command. The command output contains the following information:
Prerequisites
The IP address of the target host that receives Inform messages and parameters for sending Inform messages has been configured using the snmp-agent target-host inform command.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display snmp-agent inform
Global config: resend-times 3, timeout 15s, pending 39
Global status: current notification count 0
Target-host ID: Host name/VPN instance/IP-Address/Security name
targetHost_1_36305/-/10.1.1.1/%#%#[7SCH}$<HX.vZ8%7YS3L:IsCPA^LbRRK-`/6"i"$%#%#:
Config: resend-times 3, timeout 15s
Status: retries 0, pending 0, sent 0, dropped 0, failed 0, confirmed 0
Item | Description |
---|---|
Global config | Global configuration:
|
Global status | Global packet statistics. |
Target-host ID | ID of the target host, consisting of the VPN instance name, IP address of the target host, and security name. |
Config | Configuration of the host where the SNMP agent resides:
|
Status | Statistics about the Inform messages generated on the host where the SNMP agent resides. The possible types are:
|