< Home

Installing a Python Script

Context

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

Procedure

  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 S6700 V200R019C10Configuration 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >