Skip to content

Commit

Permalink
XR SHOW CONTROLLERS FABRIC FIA ERRORS INGRESS: Add new template (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill298 authored Feb 23, 2019
1 parent fef6939 commit 8564e7b
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Value FIA (\S+)
Value CATEGORY (\S+)
Value TO_XBAR_UC_CRC_0 (\d+)
Value TO_XBAR_UC_CRC_1 (\d+)
Value TO_XBAR_UC_CRC_2 (\d+)
Value TO_XBAR_UC_CRC_3 (\d+)
Value TO_XBAR_MC_CRC_0 (\d+)
Value TO_XBAR_MC_CRC_1 (\d+)
Value TO_XBAR_MC_CRC_2 (\d+)
Value TO_XBAR_MC_CRC_3 (\d+)
Value NB_PA_READ_DATA_ERR (\d+)
Value PA_HEADER_ERR (\d+)
Value PA_CRC16_ERR (\d+)
Value PA_CRC32_ERR (\d+)
Value PA_TO_TF_ERR (\d+)
Value AB_OVERFLOW_REQ_LOST (\d+)
Value NI_BAD_CRC32 (\d+)
Value NI_CRC32_CORRUPT (\d+)

Start
^\s*\*+\s+\S+ -> Continue.Record
^\s*\*+\s+${FIA}\s+\*+
^Category:\s+${CATEGORY}
^\s+To\s+Xbar\s+Uc\s+Crc-0\s+${TO_XBAR_UC_CRC_0}
^\s+To\s+Xbar\s+Uc\s+Crc-1\s+${TO_XBAR_UC_CRC_1}
^\s+To\s+Xbar\s+Uc\s+Crc-2\s+${TO_XBAR_UC_CRC_2}
^\s+To\s+Xbar\s+Uc\s+Crc-3\s+${TO_XBAR_UC_CRC_3}
^\s+To\s+Xbar\s+Mc\s+Crc-0\s+${TO_XBAR_MC_CRC_0}
^\s+To\s+Xbar\s+Mc\s+Crc-1\s+${TO_XBAR_MC_CRC_1}
^\s+To\s+Xbar\s+Mc\s+Crc-2\s+${TO_XBAR_MC_CRC_2}
^\s+To\s+Xbar\s+Mc\s+Crc-3\s+${TO_XBAR_MC_CRC_3}
^\s+nb\s+pa\s+read\s+data\s+err\s+${NB_PA_READ_DATA_ERR}
^\s+pa\s+header\s+err\s+${PA_HEADER_ERR}
^\s+pa\s+crc16\s+err\s+${PA_CRC16_ERR}
^\s+pa\s+crc32\s+err\s+${PA_CRC32_ERR}
^\s+pa\s+to\s+tf\s+err\s+${PA_TO_TF_ERR}
^\s+ab\s+overflow\s+req lost\s+${AB_OVERFLOW_REQ_LOST}
^\s+ni\s+bad\s+crc32\s+${NI_BAD_CRC32}
^\s+ni\s+crc32\s+corrupt\s+${NI_CRC32_CORRUPT}
^\s*$$
^.* -> Error "LINE NOT FOUND"
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ cisco_wlc_ssh_show_ap_config_general.template, .*, cisco_wlc_ssh, sh[[ow]] ap co
cisco_wlc_ssh_show_ap_summary.template, .*, cisco_wlc_ssh, sh[[ow]] ap sum[[mary]]
cisco_wlc_ssh_show_sysinfo.template, .*, cisco_wlc_ssh, sh[[ow]] sysi[[nfo]]

cisco_xr_show_controllers_fabric_fia_errors_ingress_location.template, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fia errors
cisco_xr_show_lpts_pifib_hardware_police_location.template, .*, cisco_xr, sh[[ow]] lpts pifib hardware police loc[[ation]].*
cisco_xr_show_controllers_HundredGigabitEthernet.template, .*, cisco_xr, sh[[ow]] contr[[ollers]] Hu[[ndredGigabitEthernet]]
cisco_xr_show_bgp_vrf_all_ipv4_unicast_summary.template, .*, cisco_xr, sh[[ow]] bg[[p]] v[[rf]] all ip[[v4]] uni[[cast]] summ[[ary]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
parsed_sample:

- ab_overflow_req_lost: '0'
category: in_error-0
fia: FIA-0
nb_pa_read_data_err: '12334'
ni_bad_crc32: '0'
ni_crc32_corrupt: '0'
pa_crc16_err: '0'
pa_crc32_err: '0'
pa_header_err: '0'
pa_to_tf_err: '99999'
to_xbar_mc_crc_0: '55'
to_xbar_mc_crc_1: '66'
to_xbar_mc_crc_2: '77'
to_xbar_mc_crc_3: '0'
to_xbar_uc_crc_0: '11'
to_xbar_uc_crc_1: '22'
to_xbar_uc_crc_2: '33'
to_xbar_uc_crc_3: '44'
- ab_overflow_req_lost: '0'
category: in_error-1
fia: FIA-1
nb_pa_read_data_err: '0'
ni_bad_crc32: '0'
ni_crc32_corrupt: '11111111'
pa_crc16_err: '0'
pa_crc32_err: '0'
pa_header_err: '0'
pa_to_tf_err: '0'
to_xbar_mc_crc_0: '0'
to_xbar_mc_crc_1: '0'
to_xbar_mc_crc_2: '0'
to_xbar_mc_crc_3: '0'
to_xbar_uc_crc_0: '0'
to_xbar_uc_crc_1: '0'
to_xbar_uc_crc_2: '0'
to_xbar_uc_crc_3: '0'
- ab_overflow_req_lost: '0'
category: in_error-2
fia: FIA-2
nb_pa_read_data_err: '0'
ni_bad_crc32: '0'
ni_crc32_corrupt: '0'
pa_crc16_err: '0'
pa_crc32_err: '0'
pa_header_err: '0'
pa_to_tf_err: '0'
to_xbar_mc_crc_0: '0'
to_xbar_mc_crc_1: '0'
to_xbar_mc_crc_2: '0'
to_xbar_mc_crc_3: '0'
to_xbar_uc_crc_0: '0'
to_xbar_uc_crc_1: '0'
to_xbar_uc_crc_2: '0'
to_xbar_uc_crc_3: '0'
- ab_overflow_req_lost: '0'
category: in_error-3
fia: FIA-3
nb_pa_read_data_err: '0'
ni_bad_crc32: '0'
ni_crc32_corrupt: '0'
pa_crc16_err: '0'
pa_crc32_err: '0'
pa_header_err: '0'
pa_to_tf_err: '0'
to_xbar_mc_crc_0: '0'
to_xbar_mc_crc_1: '0'
to_xbar_mc_crc_2: '0'
to_xbar_mc_crc_3: '0'
to_xbar_uc_crc_0: '0'
to_xbar_uc_crc_1: '0'
to_xbar_uc_crc_2: '0'
to_xbar_uc_crc_3: '0'
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
********** FIA-0 **********
Category: in_error-0
To Xbar Uc Crc-0 11
To Xbar Uc Crc-1 22
To Xbar Uc Crc-2 33
To Xbar Uc Crc-3 44
To Xbar Mc Crc-0 55
To Xbar Mc Crc-1 66
To Xbar Mc Crc-2 77
To Xbar Mc Crc-3 0
nb pa read data err 12334
pa header err 0
pa crc16 err 0
pa crc32 err 0
pa to tf err 99999
ab overflow req lost 0
ni bad crc32 0
ni crc32 corrupt 0

********** FIA-1 **********
Category: in_error-1
To Xbar Uc Crc-0 0
To Xbar Uc Crc-1 0
To Xbar Uc Crc-2 0
To Xbar Uc Crc-3 0
To Xbar Mc Crc-0 0
To Xbar Mc Crc-1 0
To Xbar Mc Crc-2 0
To Xbar Mc Crc-3 0
nb pa read data err 0
pa header err 0
pa crc16 err 0
pa crc32 err 0
pa to tf err 0
ab overflow req lost 0
ni bad crc32 0
ni crc32 corrupt 11111111

********** FIA-2 **********
Category: in_error-2
To Xbar Uc Crc-0 0
To Xbar Uc Crc-1 0
To Xbar Uc Crc-2 0
To Xbar Uc Crc-3 0
To Xbar Mc Crc-0 0
To Xbar Mc Crc-1 0
To Xbar Mc Crc-2 0
To Xbar Mc Crc-3 0
nb pa read data err 0
pa header err 0
pa crc16 err 0
pa crc32 err 0
pa to tf err 0
ab overflow req lost 0
ni bad crc32 0
ni crc32 corrupt 0

********** FIA-3 **********
Category: in_error-3
To Xbar Uc Crc-0 0
To Xbar Uc Crc-1 0
To Xbar Uc Crc-2 0
To Xbar Uc Crc-3 0
To Xbar Mc Crc-0 0
To Xbar Mc Crc-1 0
To Xbar Mc Crc-2 0
To Xbar Mc Crc-3 0
nb pa read data err 0
pa header err 0
pa crc16 err 0
pa crc32 err 0
pa to tf err 0
ab overflow req lost 0
ni bad crc32 0
ni crc32 corrupt 0

0 comments on commit 8564e7b

Please sign in to comment.