Run a read-only command
run_commandRuns one read-only terminal command on a Packet Tracer device and returns its output, letting students inspect device state or test reachability while configuration changes stay with them.
Instructions
Run one read-only command on a device's terminal and return its output. IOS devices (routers, switches) accept 'show ...', 'ping' and 'traceroute'. End devices (PCs, servers) accept 'ipconfig', 'ping', 'tracert', 'arp -a', 'nslookup' and 'netstat'. Configuration commands are refused: the student makes the changes, the tutor only looks. In hint-only mode, 'show running-config' and 'show startup-config' are refused too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | Device name exactly as shown on the canvas. | |
| command | Yes | A single command, e.g. 'show ip route' or 'ping 192.168.1.1'. |