All scripts
fault
Advanced
30s–2 min

BFD Session Monitor

BFD health monitoring across all protocol associations: session state matrix, discriminator mapping, timer parameter consistency, micro-BFD on LAG members, and rapid-failure root cause correlation.

Cisco IOS/XE/XR
Juniper
Arista
Open in GeneratorOpen in Platform
You're viewing a preview

The full script, parameters, and execution console are available with a free account.

Already have access? Sign in →

Capabilities

  • Session state matrix
  • BFD ↔ BGP/OSPF/IS-IS mapping
  • Timer consistency check
  • Micro-BFD on LAG
  • Packet loss rate per session
  • Discriminator mismatch
  • Flap history & MTBF

Required inputs

Parameters the script accepts. Defaults shown; some are vendor- or context-gated.

ParameterTypeDefaultNotes
Expected min-interval (ms)
min_interval
number300
Expected multiplier
multiplier
number3
Check micro-BFD on LAGs
check_micro
booltrue

Hint 1Name your vendors and OS versions

Mention the exact platforms you run (Cisco IOS/XE/XR, Juniper, Arista) so the generated fault logic uses the right CLI/NETCONF syntax.

Hint 2State your real thresholds

Provide concrete values for Expected min-interval (ms), Expected multiplier, Check micro-BFD on LAGs instead of the defaults — they shape what counts as a fault.

Hint 3Prioritize the checks you need

This tool can session state matrix and bFD ↔ BGP/OSPF/IS-IS mapping. Ask for the subset relevant to your incident to keep output focused.

Hint 4Describe your inventory format

Tell the assistant whether your device list is CSV, YAML, or JSON and which columns it has, so parsing matches your data.

Sample inventory schema

Authoritative shape of the device/policy data this script consumes.

No bundled inventory sample. The script accepts standard device lists (CSV/YAML) with hostname, mgmt IP, vendor, and credentials.

Expected output

Reference terminal output the script should produce — used as a stylistic and structural target.

terminal
BFD SESSION MONITOR — 12 devices
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

SESSION STATE MATRIX:
  core-rtr-01: 4/4 sessions UP ✓
    10.0.0.2  BGP   300ms×3  state=Up   flaps=0  ✓
    10.1.0.2  OSPF  300ms×3  state=Up   flaps=0  ✓
    10.2.0.2  IS-IS 300ms×3  state=Up   flaps=0  ✓
    10.3.0.2  STATIC 300ms×3 state=Down flaps=7  ← HIGH