No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - Network Management and Monitoring

CloudEngine 8800, 7800, 6800, and 5800 V200R005C10

This document describes the configurations of Network Management and Monitoring, including SNMP, RMON, NETCONF, OpenFlow, LLDP, NQA, Mirroring, Packet Capture, Packet Trace, Path and Connectivity Detection Configuration, NetStream, sFlow, and iPCA.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring a Device to Communicate with an NMS Using SNMPv2c

Example for Configuring a Device to Communicate with an NMS Using SNMPv2c

Networking Requirements

In the network shown in Figure 1-12, NMS1 and NMS2 monitor devices on the network. The network is large and has high security, and devices are configured to use SNMPv2c to communicate with the NMSs. A switch is added on the network for expansion and monitored by the NMSs.

Users want to monitor the switch using current network resources and quickly locate and troubleshoot faults on the switch. The NMS needs to manage objects excluding the IS-IS object on the switch.

Figure 1-12 Networking diagram for configuring a device to communicate with an NMS by using SNMPv2c

Configuration Roadmap

SNMPv2c can still be used after a device is added on the user network. To reduce the load of the NMS, configure NMS2 to monitor the switch and NMS1 not to monitor the switch.

The configuration roadmap is as follows:

  1. Configure the SNMP version of the switch as SNMPv2c.

  2. Configure the access right to enable NMS2 to manage MIB objects except IS-IS objects on the switch.

  3. Configure the trap host for the switch to deliver traps generated on the switch to NMS2. Only modules that are enabled by default can deliver traps, which helps locate traps and prevent unwanted traps.

  4. Configure the NMS2.


  1. Configure an IP address for an interface of the switch.

    <HUAWEI> system-view
    [~HUAWEI] sysname Switch
    [*HUAWEI] commit
    [~Switch] vlan batch 100
    [*Switch] interface vlanif 100
    [*Switch-Vlanif100] ip address 24
    [*Switch-Vlanif100] quit
    [*Switch] interface 10ge 1/0/1
    [*Switch-10GE1/0/1] port link-type trunk
    [*Switch-10GE1/0/1] port trunk allow-pass vlan 100
    [*Switch-10GE1/0/1] quit
    [*Switch] commit

  2. Configure routing function to ensure a reachable route between the switch and NMS2.

    [~Switch] ospf
    [*Switch-ospf-1] area 0
    [*Switch-ospf-1-area-] network
    [*Switch-ospf-1-area-] quit
    [*Switch-ospf-1] quit
    [*Switch] commit

  3. Configure the switch to run SNMPv2c.

    [~Switch] snmp-agent sys-info version v2c

  4. Configure the access rights.

    # Configure an ACL rule to allow NMS2 to manage only the switch.

    [*Switch] acl 2001
    [*Switch-acl4-basic-2001] rule 5 permit source
    [*Switch-acl4-basic-2001] quit

    # Configure the MIB view and configure NMS2 to manage objects excluding the IS-IS object.

    [*Switch] snmp-agent mib-view excluded allextisis

    # Configure the community name and apply the ACL and MIB views.

    [*Switch] snmp-agent community write adminNMS1234 mib-view allextisis acl 2001

  5. Configure the trap host.

    [*Switch] snmp-agent target-host host-name NMS2 inform address udp-domain params securityname adminNMS1234 v2c 
    [*Switch] snmp-agent inform timeout 5 resend-times 6 pending 7
    [*Switch] commit
    [~Switch] quit

  6. Configure NMS2.

    In this example, NMS2 is eSight V300R005C00.

    1. Choose Resource > Add Resource > Add Resource in the toolbar and click Network Device.
    2. Choose SNMP > Edit SNMP parameters. Set the SNMP version to v2c, read community name to adminNMS1234, write community name to adminNMS1234, and port number to 161.


      The community name and port number on the network management side must be the same as those on the device side and the SNMP version used on the NMS must be enabled on the device; otherwise, the NMS cannot connect to the device.

      If only a write community name is configured on the device, the NMS uses this write community name as the read and write community names.

    3. Click OK.
    Figure 1-13 Configuring SNMP on eSight

  7. Verify the configuration.

    After the configurations are complete, the switch sets up a connection with NMS2. You can manage the switch through NMS2 and NMS2 can receive the traps from the switch.

    Check the following configurations.

    # Check information about the SNMP community name.

    <Switch> display snmp-agent community
       Community name: %^%#K[&`Jc~_4H-~.>0:m%dK:*7s,{(3i02`R$>&n}+56Pb'@]rd}NT@o4.7RG'8ScPW0=d%O<1oU+7KHS[I%^%#
           Group name: %^%#K[&`Jc~_4H-~.>0:m%dK:*7s,{(3i02`R$>&n}+56Pb'@]rd}NT@o4.7RG'8ScPW0=d%O<1oU+7KHS[I%^%#
           Acl: 2001
           Storage-type: nonVolatile

    # Check the target host.

    <Switch> display snmp-agent target-host
    Target host NO. 1
      Host name                        : NMS2
      IP address                       :
      Source interface                 : -
      VPN instance                     : -
      Security name                    : %^%#.&h-$,1jCK-Vsk)}iAO'4oHASwPgq<2i^,6m7~IB%^%#
      Port                             : 162
      Type                             : inform
      Version                          : v2c
      Level                            : No authentication and privacy
      NMS type                         : NMS
      With ext vb                      : No
      Notification filter profile name : -
      Heart beat required              : No    

Configuration Files

Switch configuration file

sysname Switch
vlan batch 100
acl number 2001
 rule 5 permit source 0
interface Vlanif100
 ip address
interface 10GE1/0/1
 port link-type trunk
 port trunk allow-pass vlan 100
ospf 1
snmp-agent local-engineid 800007DB03360102101100
snmp-agent community write cipher %^%#K[&`Jc~_4H-~.>0:m%dK:*7s,{(3i02`R$>&n}+56Pb'@]rd}NT@o4.7RG'8ScPW0=d%O<1oU+7KHS[I%^%# mib-view allextisis acl 2001
snmp-agent sys-info version v2c v3
snmp-agent target-host host-name NMS2 inform address udp-domain params securityname cipher %^%#.&h-$,1jCK-Vsk)}iAO'4oHASwPgq<2i^,6m7~IB%^%# v2c
snmp-agent mib-view excluded allextisis isisMIB
snmp-agent inform timeout 5
snmp-agent inform resend-times 6
snmp-agent inform pending 7
Updated: 2019-04-20

Document ID: EDOC1100075365

Views: 37060

Downloads: 125

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next