diagnose_ipsec_tunnel
Diagnose why an IPsec overlay tunnel is down by checking underlay interface status, IKE/phase2 state, SD-WAN health, and optional hub-side dial-up status.
Instructions
Diagnose why an IPsec overlay tunnel is down, underlay first.
Gathers, in one call, what an engineer checks before comparing IPsec
proposals: the underlay interface the gateway is bound to (admin status
in the device DB, live link and address), the tunnel's live IKE/phase2
state, its SD-WAN member state and health-check results and, with
hub_device, the hub's matching dial-up gateway (matched on
network-id) and whether the hub holds an instance from this spoke.
Read-only: config comes from the FMG device DB, live state from the
device's monitor API through the FMG proxy.
The verdict follows the first failing layer: underlay_admin_down,
underlay_link_down, underlay_no_address, hub_underlay_link_down,
tunnel_down (underlay fine, IKE not up), health_check_down,
sla_not_met, healthy, or undetermined when live state could
not be read.
Args: device: Device the tunnel lives on (e.g. "branch2") tunnel: Phase1-interface name (e.g. "HUB1-VPN2") adom: ADOM of the device (default: DEFAULT_ADOM or "root") vdom: VDOM of the tunnel (default "root") hub_device: Optional hub device to check the far side on
Returns: dict: device, tunnel, verdict, explanation, next_steps, evidence (gateway, underlay, tunnel, health_checks, hub) and unverified (sources that could not be read)
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": {
"device": "<device>",
"tunnel": "<tunnel>"
},
"name": "diagnose_ipsec_tunnel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | No | ||
| vdom | No | root | |
| device | Yes | ||
| tunnel | Yes | ||
| hub_device | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||