Send Command to an End-Device Terminal
send_terminal_commandRun a single command in a Cisco Packet Tracer device terminal and collect its output until the command ends or the timeout passes.
Instructions
Type one command into a device's terminal and collect its output -- for PCs, laptops and servers this is the Desktop > Command Prompt ('ping 10.0.0.1', 'ipconfig /all', 'tracert 8.8.8.8', 'arp -a'). Output is collected until Packet Tracer reports the command ended or the timeout passes; pings in Realtime mode take a few seconds.
Examples:
"Ping 192.168.1.1 from PC0"
"Run ipconfig on the laptop"
"Traceroute from PC1 to the server"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device display name as shown in Packet Tracer (e.g. 'Router0', 'PC1') | |
| command | Yes | ||
| timeout | No | Seconds to wait for the command to finish |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| status | No | ||
| completed | Yes | True if Packet Tracer reported the command finished before the timeout |