Before running a Python script on a device to deploy the OPS function, upload the script to the device and install it.
For details about how to upload the script, see File Management in S2720, S5700, and S6700 V200R019C10Configuration Guide - Basic Configuration.
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.