pt_verify_connectivity
Runs a real ping from a Packet Tracer device and parses console output to confirm topology connectivity, reporting packet loss or IOS success-rate results.
Instructions
Runs a REAL ping from a device in PT and returns the result.
Unlike validations that are only printed as "check it by
hand", this runs ping on the device's console and parses the real
output: how many packets arrived. Use it to confirm that a freshly
deployed topology really has connectivity.
Works with hosts (PC/Server/Laptop, format "Packets: Sent=..") and with IOS devices (router/switch, format "Success rate is N percent").
Parameters:
from_device: name of the device the ping starts from
to_ip: destination IP
count: reserved; PT uses its default per type (PC 4, IOS 5). A "-n" flag would break on IOS, so it is not forced for now.
timeout_s: maximum wait (default 45s: on a topology deployed moments ago, switch ports spend ~30s in STP before forwarding). A FAILED ping takes longer than a successful one: each packet waits for its own timeout before being declared lost (~13s measured for 4 lost packets).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from_device": "<from_device>",
"to_ip": "<to_ip>"
},
"name": "pt_verify_connectivity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| to_ip | Yes | ||
| timeout_s | No | ||
| from_device | Yes |