All scripts
isp
Expert
2–7 min
T-ISP-006 · BGP Path-Selection Analyzer
Explain why a given prefix's best path was chosen by replaying the BGP decision process (weight, local-pref, AS-path, origin, MED, eBGP>iBGP, IGP metric, router-id) across candidate paths.
Cisco IOS-XR
Cisco IOS/XE
Juniper Junos
You're viewing a preview
The full script, parameters, and execution console are available with a free account.
Already have access? Sign in →
Capabilities
- Full decision-process replay
- Per-step winner annotation
- Multipath candidate detection
- MED/LP anomaly hints
- Human-readable rationale
- Machine-readable JSON
Required inputs
Parameters the script accepts. Defaults shown; some are vendor- or context-gated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
Prefix to analyze prefix | string | 203.0.113.0/24 | — |
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
2026-06-15 14:00:09 INFO Analyzing 203.0.113.0/24 (4 candidate paths) 2026-06-15 14:00:09 INFO Step 2 local-pref: path via AS64500 wins (200 > 100) 2026-06-15 14:00:09 INFO Best path: 198.51.100.7 (AS64500) — chosen on local-pref