pn-script-run

Netvisor ONE 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   Command introduced in Version 5.1.0

Usage   Run built-in or user scripts  on a switch.

Example To run a built-in script, use the following syntax:

CLI network-admin@switch01> pn-script-run name testscript.sh

north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south