cable_diag
Runs a cable diagnostic (TDR) on a single port to pinpoint cabling faults; the active test may briefly drop the link.
Instructions
Run the cable diagnostic (TDR) on one port. Active test: it can drop the link for a few seconds. Protected ports are refused. The command stays denied for the show tool and only runs here. dry_run=true by default.
SWITCH_PROTECTED_PORTS is unset or invalid: port writes that check it are refused on every port (fail-closed). Caution ports (SWITCH_CAUTION_PORTS): none.
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": {
"port": "<port>"
},
"name": "cable_diag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| dry_run | No | ||
| confirm_caution_port | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |