pt_read_vlans
Reads a switch's actual VLAN database in Packet Tracer, listing VLANs, access and trunk ports, port security, and mismatches to verify VLAN changes or discover unknown topologies.
Instructions
Reads a switch's REAL VLAN database in PT.
Returns each VLAN with its number, name, whether it is one of PT's factory ones (1, 1002-1005) and its access ports; plus the trunk ports (with native VLAN), the ports with port security, and access ports left in a VLAN missing from the database. Use it to confirm that a pt_apply_vlan was applied, or to discover a topology you didn't build.
Parameters:
switch: switch name in PT.
Example: pt_read_vlans(switch="SW1")
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": {
"switch": "<switch>"
},
"name": "pt_read_vlans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| switch | Yes |