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 - Network Management and Monitoring

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of Network Management and Monitoring, including SNMP, RMON, RMON2, LLDP, Performance Management, iPCA, NQA, Service Diagnosis, Mirroring, Packet Capture, NetStream, sFlow, TWAMP Light, NETCONF, ECA, Intelligent Video O&M, eMDI, and Network Deception.
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).
Configuring a Switch to Communicate with an NMS by NETCONF over SSH Mode

Configuring a Switch to Communicate with an NMS by NETCONF over SSH Mode

Prerequisites

There is a reachable route between the switch and NMS.

Context

The NMS actively sets up a NETCONF session with the switch in NETCONF over SSH mode. To achieve this, you must perform the following configurations on the switch in advance: Configure a user account used by the NMS to log in to the switch through NETCONF, enable the NETCONF function, and set the IP address and port number used by the switch to communicate with the NMS.

Procedure

  1. Configure a NETCONF user.
    1. Run user-interface vty first-ui-number [ last-ui-number ]

      The VTY user interface view is displayed.

    2. (Optional) Run protocol inbound { all | ssh }

      The VTY user interface is configured to support the SSH protocol.

      By default, a user interface supports the SSH protocol.

    3. Run quit

      Return to the system view.

    4. Run aaa

      The AAA view is displayed.

    5. Run local-user user-name password

      Or run local-user user-name password { cipher | irreversible-cipher } password

      A local user is created.

      NOTE:
      • If you run the local-user user-name password { cipher | irreversible-cipher } password command to create a local user, the user password is displayed in plaintext, posing a security risk.
      • If you run the local-user user-name password command to create a local user, the user password is configured in interactive mode, which is securer.
      • If the access type of a user is API, the user name cannot be set to root.

    6. Run local-user user-name service-type api

      The type of the created user is set to NETCONF.

  2. Enable the NETCONF function.
    1. Run system-view

      The system view is displayed.

    2. Run netconf

      NETCONF is enabled and the NETCONF view is displayed.

    3. Run source ip { ip-address [ vpn-instance vpn-instance-name ] | interface interface-type interface-number } [ port port-number ]

      The IPv4 address and port number used by the switch to communicate with the NMS using NETCONF are configured.

      Or run source ipv6-address { ipv6-address [ vpn-instance vpn-instance-name ] | interface interface-type interface-number } [ port port-number ]

      The IPv6 address and port number used by the switch to communicate with the NMS using NETCONF are configured.

    4. Run quit

      Return to the system view.

Verifying the Configuration

Run the display netconf all command in any view to display the NETCONF configuration.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065680

Views: 59036

Downloads: 516

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