pn-script-run
NetVisor version 5.1.0 provides the ability to run shell commands or scripts using a REST API or through CLI commands. As a network administrator or as an admin user, you can run the scripts from the directories /opt/nvOS/bin/pn-scripts directory for packaged scripts or /usr/bin/pn-scripts directory for custom scripts, as NetVisor delivers all files as part of pn-upgrade agent package.
Syntax pn-script-run
name name-string |
Specify the name of the script. |
Defaults None.
Access CLI
History
Version 5.1.0 |
Command introduced. |
Usage Run built-in or user scripts on a switch.
Example To run a built-in script, use the following syntax:
CLI (network-admin@switch)01> pn-script-run name testscript.sh