P Commands
pager
Syntax pager on|off
Defaults None
Access CLI
History Command introduced in nvOS Version 1.2.1.
Usage This command is used to paginate long show output in the CLI.
Examples To set the pagination to on, use the following command:
CLI network-admin@switch > pager on
ping
This command is used to verify connectivity on the network.
Syntax ping [-s] host
Defaults None.
Access CLI
History Command introduced in nvOS Version 1.2.1
Usage Ping another device on the network to ensure connectivity on the network.
Examples Ping 192.10.10.1 using the following syntax:
CLI network-admin@switch > ping 192.10.10.1
192.10.1.1 is alive
or
CLI network-admin@switch > ping 10.9.9.1
PING 10.9.9.1 (10.9.9.1) 56(84) bytes of data.
64 bytes from 10.9.9.1: icmp_seq=1 ttl=255 time=0.229 ms
64 bytes from 10.9.9.1: icmp_seq=2 ttl=255 time=0.224 ms
64 bytes from 10.9.9.1: icmp_seq=3 ttl=255 time=0.248 ms
64 bytes from 10.9.9.1: icmp_seq=4 ttl=255 time=0.164 ms
64 bytes from 10.9.9.1: icmp_seq=5 ttl=255 time=0.123 ms
64 bytes from 10.9.9.1: icmp_seq=6 ttl=255 time=0.180 ms
64 bytes from 10.9.9.1: icmp_seq=7 ttl=255 time=0.121 ms
64 bytes from 10.9.9.1: icmp_seq=8 ttl=255 time=0.160 ms
64 bytes from 10.9.9.1: icmp_seq=9 ttl=255 time=0.149 ms
64 bytes from 10.9.9.1: icmp_seq=10 ttl=255 time=0.164 ms
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
pn-script-show
Syntax pn-script-show
name name-string |
Specify the name of the script. |
Defaults None.
Access CLI
History Command introduced in Version 5.1.0
Usage Displays built-in or user scripts on a switch.
Example To display built-in scripts, use the following syntax:
- pn-script-show
switch: pn-lab1
pn-lab1: /opt/nvOS/bin/pn-scripts/:
testscript.sh
pn-testscript.sh