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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| state_filter | No | ||
| remote_address_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |