get_ipsec_active_peers
Identify active IPsec peers with live IKE sessions on MikroTik, showing state, uptime, byte counters, and state or remote address filters.
Instructions
Lists the IPsec peers with a live IKE session, with uptime and counters.
Shows the parent (phase 1) side: state, uptime, last-seen and the
byte counters. A peer can sit here established while its child SAs
carry nothing — use get_ipsec_installed_sa to tell the difference.
Notes: Both filters are exact matches.
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_ipsec_active_peers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| state_filter | No | ||
| remote_address_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |