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 - 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).
Installing a Python Script

Installing a Python Script


Before running a Python script on a device to deploy the OPS function, upload the script to the device and install it.


  1. Upload the Python script to the flash root directory on the device.

    For details about how to upload the script, see File Management in S2720, S5700, and S6720 V200R013C00Configuration Guide - Basic Configuration.

  2. Run ops install file file-name [ destination directory ]

    A Python script is installed.

    If destination directory is not specified, the script is installed in the $_user directory.

    If destination directory is specified, the script is installed in the $_user/directory directory.

    If the directory name does not exist, a new directory is created.

    To modify a script that has been installed, run the ops uninstall file command to uninstall the script and run the delete (user view) command to delete the script file. After modifying the script, upload and reinstall the script file.

Updated: 2019-04-20

Document ID: EDOC1100065674

Views: 77767

Downloads: 515

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next