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

Reminder

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

upgrade

Configuration Guide - Device Management

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of Device Management, including device status query, hardware management, Stack, SVF, cloud-based management, PoE, monitoring interface, OPS, energy-saving management, information center, fault management, NTP, synchronous ethernet, PTP.
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 Monitoring Interfaces

Example for Configuring Monitoring Interfaces

Networking Requirements

In Figure 7-4, the S5720I-SI working at a wide temperature range is typically deployed outdoors in a cabinet, and a backup power supply is configured in the cabinet. Input lines 1 and 2 of monitoring interfaces on the Switch are connected to the cabinet door and backup power supply respectively. The Switch and the NMS are connected and there are reachable routes between them.

Users want to use the NMS to monitor the cabinet door status and backup power supply for fast fault location.

Figure 7-4  Configuring monitoring interfaces

Configuration Roadmap

  1. Set the SNMP version of the switch to SNMPv3.

  2. Configure user access rights.

  3. Configure the trap host so that the traps generated by the switch can be sent to the NMS.

  4. Configure the NMS.

  5. Configure monitoring interfaces to monitor the input lines 1 and 2.

Procedure

  1. Set the SNMP version of the switch to SNMPv3.

    <HUAWEI> system-view
    [HUAWEI] sysname Switch
    [Switch] snmp-agent sys-info version v3

  2. Configure user access rights.

    # Configure the MIB view.

    [Switch] snmp-agent mib-view included isoview iso

    # Configure the user group.

    [Switch] snmp-agent group v3 admin privacy write-view isoview acl 2001 

    # Configure the user.

    [Switch] snmp-agent usm-user v3 nms group admin

    # Configure data authentication and set the authentication password to admin@123.

    [Switch] snmp-agent usm-user v3 nms authentication-mode sha
    Please configure the authentication password (8-64)                             
    Enter Password:                  //Enter the authentication password. It is admin@123 in this example.                                  
    Confirm Password:                //Confirm the password. It is admin@123 in this example.

    # Configure data encryption and set the authentication password to admin@123.

    [Switch] snmp-agent usm-user v3 nms privacy-mode aes256
    Please configure the privacy password (8-64)                                    
    Enter Password:                 //Enter the encryption password. It is admin@123 in this example.                                                 
    Confirm Password:               //Confirm the password. It is admin@123 in this example.

  3. Configure a trap host and enable the switch to actively send traps to the NMS.

    [Switch] snmp-agent trap enable
    Warning: All switches of SNMP trap/notification will be open. Continue? [Y/N]:y
    [Switch] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname nms-admin v3 privacy

  4. Configure the NMS.

    Set a user name and select a security level on the NMS running SNMPv3. Then set the authentication mode, authentication password, encryption mode, and encryption key according to the security level you select.

    NOTE:

    The authentication parameters configured on the NMS must be the same as those on the switch. Otherwise, the NMS cannot manage the switch.

  5. Configure input lines.

    # Enable the monitoring function for input lines 1 and 2.

    [Switch] monitor input 1 enable
    [Switch] monitor input 2 enable
    

    # Set the names of the input lines 1 and 2 to input1 and input2, and set the level of the input lines in normal state to low level.

    [Switch] monitor input 1 name input1 normal-state low-level
    [Switch] monitor input 2 name input2 normal-state low-level
    

  6. Verify the configuration.

    After the configurations are complete, run the following command to check whether the SNMP configuration has taken effect.

    # View the configuration of the target host used to receive traps.

    [Switch] display snmp-agent target-host
    Target-host NO. 1                                                               
    -----------------------------------------------------------                     
      IP-address    : 10.1.1.1                                                      
      Domain        : -
      Source interface : -                                                          
      VPN instance  : -                                                             
      Security name : nms-admin                                                     
      Port          : 162                                                           
      Type          : trap                                                          
      Version       : v3                                                            
      Level         : Privacy                                                       
      NMS type      : NMS                                                           
      With ext-vb   : No                                                            
    -----------------------------------------------------------                     

    After the configurations are complete, check whether the monitoring device function has taken effect on monitoring interfaces.

    • When the cabinet door is opened (that is, the input line 1 changes from low level to high level), the switch sends a trap indicating that the input line 1 is abnormal to the NMS.

    • If the backup power supply is abnormal (that is, the input line 2 changes from low level to high level), the switch sends a trap indicating that the input line 2 is abnormal to the NMS.

Configuration Files

  • Switch configuration file

    #
    sysname Switch
    #                                                                               
    monitor input 1 enable
    monitor input 1 name input1 normal-state low-level
    monitor input 2 enable
    monitor input 2 name input2 normal-state low-level
    #
    snmp-agent                                                                      
    snmp-agent local-engineid 800007DB03000013824569                                
    snmp-agent sys-info version v2c v3                                              
    snmp-agent group v3 admin privacy write-view isoview acl 2001                   
    snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname nms-admin v3 privacy                                                                
    snmp-agent target-host trap address udp-domain 192.168.50.252 udp-port 163 params securityname cipher %^%#`{9#1bV-lLMR[~M:Z9SRjCLV!P`5h-[~PKF)w{;"%^%# v2c      
    snmp-agent mib-view included isoview iso                                        
    snmp-agent usm-user v3 nms                                                      
    snmp-agent usm-user v3 nms authentication-mode sha cipher %^%#B73CS]\B%R]R^DDmW$9FZ`4m0V-:xV5v7v/fw_IU%^%#                                                      
    snmp-agent usm-user v3 nms privacy-mode aes128 cipher %^%#m$#O)tG@[(HRqgVYvZ}+N.Zh*ZFNs=SkU8>h07IQ%^%#                                                          
    snmp-agent trap enable                                                          
    # 
    return
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065674

Views: 43975

Downloads: 372

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