pt_send_pdu
Send an ICMP echo between devices to test connectivity, optionally stepping simulation events and returning a packet trace.
Instructions
The GUI's "Add Simple PDU": an ICMP echo from one device to another.
Parameters:
source, destination: device names (pt_query_topology).
simulation: True (default) switches PT to Simulation first, so the PDU waits in the event list; False switches to Realtime, where PT delivers it at once.
steps: in Simulation, how many events to step forward right away (0-100). With steps > 0 the reply includes the packet trace (path, drops and PT's per-layer reason), like pt_read_packet_trace.
The first PDU between two devices can die at a router waiting on ARP, exactly like the first ping: send it again.
Example: pt_send_pdu("PC1", "PC4", steps=10)
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": {
"source": "<source>",
"destination": "<destination>"
},
"name": "pt_send_pdu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | ||
| source | Yes | ||
| simulation | No | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |