request execute—Execute a shell command from within the Viptela CLI.
request execute [vpn vpn-id] command (in Releases 15.4 and later)
request execute [vpn vpn-id] "command" (in Releases 15.3 and earlier)
- Command Name
Run the specified command in the UNIX shell while still remaining in the Viptela CLI. In Releases 15.3 and earlier, you must enclose the command within quotation marks.
- vpn vpn-id
Specific the VPN in which to execute the command. The default vpn-id is VPN 0.
The output fields depend on the command you execute.
vSmart# request execute ls Execute command in vpn 0 - ls cacert.pem vsmart-signed-cert-vm9.pem vsmart-vm9.csr Viptela# request execute vpn 512 ssh email@example.com
To open an SSH connection from a vManage NMS to an IOS XE router, you must specify the port number, which is 830:
vManage# request execute vpn 0 ssh 172.16.255.15 ssh: connect to host 172.16.255.15 port 22: Connection refused vManage# request execute vpn 0 ssh 172.16.255.15 -p 830 firstname.lastname@example.org's password:
Command introduced in Viptela Software Release 14.1.
Starting in Releae 15.4, enclosing the shell command in quotation marks is no longer necessary.