pt_inspect_ports
Inspect real port state on a live Packet Tracer device to diagnose link, protocol, IP, duplex, ACL, cable, and far-end issues, and flag cable-down or protocol anomalies.
Instructions
Real state of each port of a live device in PT.
Reads the device, not the plan: line/protocol status, MAC, IP/mask, duplex, bandwidth, MTU, delay, CDP, DHCP client, NAT mode, applied ACLs and, on a cabled port, the real cable type (straight, cross, serial...) and the far end ("SW1:FastEthernet0/1"). Flags anomalies (cable connected with the port down, line up with protocol down).
It is the DETAIL view of one device; for the sweep of the whole topology (down links, duplicate IPs) use pt_health_check.
Parameters:
device: device name; empty = all (verbose on large topologies).
only_linked: if True, returns only ports with a cable connected.
Example: see why one of R1's links won't come up: pt_inspect_ports(device="R1", only_linked=True)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pt_inspect_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| only_linked | No |