Executes a shell command string within the network context of a Service Probe.
| instance_id | Identifier of the Service Probe in whose context the command runs. Valid range is 1–9999. |
After entering this command, you are prompted to type a shell command string. The command executes inside the probe's network namespace, using the probe's IP configuration, routing, and DNS settings.
Output (stdout and stderr combined) is returned upon completion, up to a maximum of 7,000 bytes. If output exceeds this limit, it is truncated and a truncation indicator is shown.
This command runs asynchronously and is subject to a default timeout of 15 seconds. Commands run as the admin user and are subject to the resource limits of the SvcProbe cgroup (5% CPU, 5% memory). Only accounts with admin privileges can run this command.
The following command runs a traceroute from within Service Probe 1:
run service-probe 1 shell
At the prompt, enter:
traceroute 11.100.100.1
Sample output:
Exit Status: 0 ...output follows: traceroute to 11.100.100.1 (11.100.100.1), 30 hops max, 46 byte packets 1 192.168.1.1 (192.168.1.1) 0.547 ms 0.343 ms 0.321 ms 2 110.110.110.2 (110.110.110.2) 0.364 ms 88.943 ms 0.375 ms 3 11.100.100.1 (11.100.100.1) 0.287 ms 0.271 ms 0.247 ms
This command was first available in version 33.6.1.
All platforms.