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

S9300, S9300E, and S9300X V200R012C00

This document describes the configurations of Device Management, including device status query, hardware management, CSS, SVF, PoE, OPS, OIDS, 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 root directory of flash: on the device.

    For details about how to upload the script, see File Management in S9300, S9300E, and S9300X V200R012C00Configuration 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 directory is created.

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

Updated: 2018-09-03

Document ID: EDOC1100038289

Views: 43016

Downloads: 15

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