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).
Enabling the Switch to Automatically Execute the Python Script After the LLDP Neighbor Changes

Enabling the Switch to Automatically Execute the Python Script After the LLDP Neighbor Changes

Prerequisites

  1. The Python script automatically executed after the LLDP neighbor changes has been prepared, uploaded, and installed, and the Python script assistant has been configured. For details, see "Configuring OPS" in OPS Configuration in S2720, S5700, and S6720 V200R013C00 Configuration Guide - Device Management.
  2. LLDP has been enabled globally using the lldp enable (system view) command.

Context

The configuration workload can be reduced after the switch is enabled to automatically execute the Python script after the LLDP neighbor changes.

If a switch has multiple types of LLDP neighbors and needs to deliver different configurations to different types of LLDP neighbors, configure the Python script in advance and run the lldp device-classifier enable command to enable the switch to automatically execute the Python script after the LLDP neighbor changes. If the switch detects that a specified type of LLDP neighbor is added or deleted on an interface, the switch automatically delivers the predefined configuration in the Python script, reducing the configuration workload.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run lldp device-classifier enable

    The switch is enabled to automatically execute the Python script after the LLDP neighbor changes.

    By default, the switch is enabled to automatically execute the Python script after the LLDP neighbor changes.

Verifying the Configuration

Run the display lldp device-classifier information command to view the LLDP neighbor information on the switch.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065680

Views: 52110

Downloads: 498

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