display snmp-agent target-host

Function

The display snmp-agent target-host command displays information about all target hosts, including the IP address of each target host, VPN instance names, modes of sending trap messages, security names used to send trap messages, protocol versions, and security levels.

Format

display snmp-agent target-host

Parameters

None

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
snmp read

Usage Guidelines

Usage Scenario

To view the configuration information about all target hosts, run the display snmp-agent target-host command.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the configurations of all target hosts on a device.
<HUAWEI> display snmp-agent target-host
 Target-host NO. 1
-----------------------------------------------------------
  Host-name        : targetHost_1_55062
  IP-address       : 10.18.27.183 
  Source interface : -
  VPN instance     : -
  Security name    : %#%#j!IJ)6sI%#%#j!IJ6^(sI<z~CMH5@^@zj(&.G^ylO4#{n4sXq&-A*;iAW(:-!@0&rY'5x\6%#%#
  Port             : 162
  Type             : trap
  Version          : v2c
  Level            : No authentication and privacy
  NMS type         : NMS
  With ext-vb      : No
  Notification filter profile name : -
-----------------------------------------------------------

Target-host NO. 2
-----------------------------------------------------------
  Host-name        : targetHost_2_25846
  IP-address       : 10.18.27.184 
  Source interface : -
  VPN instance     : -
  Security name    : %#%#[7SCH}$<HX.vZ8%7YS3L:IsCPA^LbRRK-`/6"i"$%#%#
  Port             : 162
  Type             : trap
  Version          : v1
  Level            : No authentication and privacy
  NMS type         : NMS
  With ext-vb      : No
  Notification filter profile name : -
-----------------------------------------------------------
Table 1 Description of the display snmp-agent target-host command output
Item Description
Target-host NO

Index of a target host.

Host-name

Name of a target host.

IP-address

IP address of a target host.

Source interface

Source IP address of an NMS.

VPN instance

VPN instance name.

Security name

Security user name in ciphertext for SNMPv1 and SNMPv2c and simple text for SNMPv3.

Port

Number of a UDP port through which SNMP Request messages are sent.

The default port number is 162.

Type

Type of SNMP notification:

  • Trap: SNMP notifications are sent in the form of trap messages.
  • Inform: SNMP notifications are sent in the form of Inform messages.
Version

SNMP version:

  • v1.
  • v2c.
  • v3.
Level

Security level defined in a security mechanism:

  • Authentication: Messages are authenticated, not encrypted.
  • Privacy: Messages are authenticated and encrypted.
  • No authentication and privacy: Messages are neither authenticated nor encrypted.
NMS type

Type of host NM:

  • NMS.
  • HW NMS.
With ext-vb

Whether an SNMP trap sent to a destination host carries extended VB information:

  • No: No extended private VB information is carried.
  • Yes: Extended private VB information is carried.
Notification filter profile name

Filter profile name.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >