get_port_statistics
Retrieve per-port TX/RX packet counters, enabled state, and negotiated link speed to monitor switch traffic and diagnose port health.
Instructions
Get per-port packet counters (TX/RX good and bad packets).
Counters are cumulative since last reboot and wrap at 2^32 (4 billion). Also includes each port's enabled state and link_status (negotiated speed).
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": "get_port_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |