exec-shell
Use this command to execute Linux commands directly in CLI from Execution mode.
Blocked Shell commands
To ensure secure operation, exec-shell restricts execution of the following commands:
| • | bash |
| • | dash |
| • | gdb |
| • | nano |
| • | passwd |
| • | sh |
| • | vim |
| • | vi |
| • | yangcli |
Command Syntax
Copy
exec-shell LINE
Parameters
LINE
Command to be executed.
Default
None
Command Mode
Execution mode
Applicability
This command was introduced in OcNOS version 7.0.0.
Examples
Copy
OcNOS#exec-shell ip netns exec zebosfib0 ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 52:54:00:e0:68:44 brd ff:ff:ff:ff:ff:ff
altname enp1s0
inet 192.168.100.3/24 brd 192.168.100.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fee0:6844/64 scope link
valid_lft forever preferred_lft forever