pt_read_stp
Reads Spanning Tree's actual state per VLAN and switch to identify the root bridge, root ID, path cost, and root port, and flags VLANs where switches disagree on the root (not converged).
Instructions
Reads Spanning Tree's REAL state per VLAN: who the root bridge is.
Per switch and VLAN: whether it is the root, the root ID (priority and MAC), and where available its bridge ID, priority, root path cost and root port. Across switches it flags VLANs where they disagree on the root (not converged). PT 9 does not expose per-port STP state or role.
Parameters:
switch: switch name; empty = every switch.
vlans: VLAN numbers to read; empty = every VLAN in the switch.
Example: pt_read_stp(vlans=[1, 10])
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_read_stp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vlans | No | ||
| switch | No |