Skip to content

Commit f65f2c0

Browse files
sjhlocojvanderaamjbear
authored
Add panos_show_high-availability_path-monitoring (#2198)
* Added paloalto_panos_show_high-availability_path-monitoring * Updated SUC_TOTAL value name to be more self-explanatory * Replace a few literal spaces with regex --------- Co-authored-by: Josh VanDeraa <[email protected]> Co-authored-by: Michael Bear <[email protected]>
1 parent 81dc3b1 commit f65f2c0

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ oneaccess_oneos_show_sntp.textfsm, .*, oneaccess_oneos, sh[[ow]] sntp
926926
oneaccess_oneos_hostname.textfsm, .*, oneaccess_oneos, hostname
927927
oneaccess_oneos_ls.textfsm, .*, oneaccess_oneos, ls( -[lh][lh]? )?.*
928928

929+
paloalto_panos_show_high-availability_path-monitoring.textfsm, .*, paloalto_panos, sh[[ow]] high[[-availability]] pa[[th-monitoring]]
929930
paloalto_panos_show_routing_protocol_bgp_summary.textfsm, .*, paloalto_panos, sh[[ow]] ro[[uting]] pr[[otocol]] b[[gp]] s[[ummary]]
930931
paloalto_panos_show_running_security-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] security[[-policy]]
931932
paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]] high[[-availability]] all
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Value GRP_NAME (\S+)
2+
Value VR_NAME (\S+)
3+
Value TYPE (\S+)
4+
Value DESTINATION (\S+)
5+
Value SUCCESS_RATE (\d+/\d+)
6+
Value RTT_MIN (\d+\.\d+)
7+
Value RTT_MAX (\d+\.\d+)
8+
Value RTT_AVG (\d+\.\d+)
9+
Value PROBE_CNT (\d+)
10+
Value INTERVAL (\d+)
11+
12+
Start
13+
^--+$$
14+
^total\s+paths\s+monitored.*$$
15+
^hold\s+time.*$$
16+
^\s*\(after\s+device\s+becomes\s+active\)
17+
^--+$$
18+
^grp/name/type\s+destination\s+suc/total\s+rtt min/max/avg.*$$
19+
^--+$$
20+
# Capture table rows
21+
^${GRP_NAME}/${VR_NAME}/${TYPE}\s+${DESTINATION}\s+${SUCCESS_RATE}\s+${RTT_MIN}/${RTT_MAX}/${RTT_AVG}\s+${PROBE_CNT}/${INTERVAL} -> Record
22+
# Skip any extra separator lines
23+
^--+$$
24+
^\s*$$
25+
^. -> Error
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--------------------------------------------------------------------------------
2+
total paths monitored : 2
3+
hold time to send probe packets : 1000 ms
4+
(after device becomes active)
5+
--------------------------------------------------------------------------------
6+
grp/name/type destination suc/total rtt min/max/avg (ms) probe cnt/interval(ms)
7+
--------------------------------------------------------------------------------
8+
HA_PATH_NORTH/VR_HANDOFF/virtual-router 8.8.8.8 10/10 3.66/4.19/3.90 10/1000
9+
HA_PATH_NORTH/VR_HANDOFF/virtual-router 217.111.187.217 10/10 2.36/2.75/2.58 10/1000
10+
--------------------------------------------------------------------------------
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
parsed_sample:
3+
- destination: "8.8.8.8"
4+
grp_name: "HA_PATH_NORTH"
5+
interval: "1000"
6+
probe_cnt: "10"
7+
rtt_avg: "3.90"
8+
rtt_max: "4.19"
9+
rtt_min: "3.66"
10+
success_rate: "10/10"
11+
type: "virtual-router"
12+
vr_name: "VR_HANDOFF"
13+
- destination: "217.111.187.217"
14+
grp_name: "HA_PATH_NORTH"
15+
interval: "1000"
16+
probe_cnt: "10"
17+
rtt_avg: "2.58"
18+
rtt_max: "2.75"
19+
rtt_min: "2.36"
20+
success_rate: "10/10"
21+
type: "virtual-router"
22+
vr_name: "VR_HANDOFF"

0 commit comments

Comments
 (0)