pt_read_cdp
Reads the real CDP neighbour table to show which device is cabled to which port, with local and remote port, platform and capability per neighbour. Query one device or all.
Instructions
Reads the REAL CDP neighbour table: who is cabled to which port.
Per neighbour: device id, local and remote port, platform, capability. CDP announces every 60 s: right after a deploy the table is empty.
Parameters:
device: device name; empty = every device.
Example: pt_read_cdp(device="SW1")
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_cdp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No |