clear_counters
Reset interface counters for a single port or all ports, refresh the counters delta baseline, and run in dry-run mode by default; protected ports are refused.
Instructions
Reset interface counters for one port or all ports (port omitted). Protected ports are refused when named. Also resets the counters_delta baseline. 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
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": "clear_counters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| dry_run | No | ||
| confirm_caution_port | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |