Skip to content

Commit

Permalink
XR SHOW ASIC ERRORS: Add new template (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill298 authored Feb 23, 2019
1 parent bd30182 commit abf4475
Show file tree
Hide file tree
Showing 4 changed files with 253 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/cisco_xr_show_asic-errors_all_location.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Value Filldown ASIC (\S+)
Value Required INSTANCE (\d+)
Value NUMBER_OF_NODES (\d+)
Value SBE_ERROR_COUNT (\d+)
Value MBE_ERROR_COUNT (\d+)
Value PARITY_ERROR_COUNT (\d+)
Value CRC_ERROR_COUNT (\d+)
Value GENERIC_ERROR_COUNT (\d+)
Value RESET_ERROR_COUNT (\d+)

Start
^.+ASIC\s+Error\s+Summary\s+\* -> Continue.Record
^\*\s+${ASIC}\s+ASIC\s+Error\s+Summary\s+\*
^Instance -> Continue.Record
^Instance\s+:\s+${INSTANCE}
^Number\s+of\s+nodes\s+:\s+${NUMBER_OF_NODES}
^SBE\s+error\s+count\s+:\s+${SBE_ERROR_COUNT}
^MBE\s+error\s+count\s+:\s+${MBE_ERROR_COUNT}
^Parity\s+error\s+count\s+:\s+${PARITY_ERROR_COUNT}
^CRC\s+error\s+count\s+:\s+${CRC_ERROR_COUNT}
^Generic\s+error\s+count\s+:\s+${GENERIC_ERROR_COUNT}
^Reset\s+error\s+count\s+:\s+${RESET_ERROR_COUNT}
^-+$$
^\*+$$
^\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 @@ -243,6 +243,7 @@ cisco_xr_show_bgp_vrf_all_ipv4_unicast_summary.template, .*, cisco_xr, sh[[ow]]
cisco_xr_admin_show_controller_fabric_health.template, .*, cisco_xr, adm[[in]] sh[[ow]] controller fab[[ric]] hea[[lth]]
cisco_xr_show_controller_fabric_plane_all.template, .*, cisco_xr, sh[[ow]] controller fab[[ric]] pla[[ne]] all
cisco_xr_show_configuration_commit_list.template, .*, cisco_xr, sh[[ow]] conf[[iguration]] c[[ommit]] l[[ist]]
cisco_xr_show_asic-errors_all_location.template, .*, cisco_xr, sh[[ow]] asic-er[[rors]] all loc[[ation]]
cisco_xr_show_dhcp_ipv4_proxy_binding.template, .*, cisco_xr, sh[[ow]] dh[[cp]] ipv4 p[[roxy]] b[[inding]]
cisco_xr_show_mpls_ldp_neighbor_brief.template, .*, cisco_xr, sh[[ow]] mp[[ls]] ld[[p]] neigh[[bor]] br[[ief]]
cisco_xr_admin_show_environment_fan.template, .*, cisco_xr, adm[[in]] sh[[ow]] env[[ironment]] f[[an]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
parsed_sample:

- asic: Fia
crc_error_count: '99999'
generic_error_count: '0'
instance: '0'
mbe_error_count: '44'
number_of_nodes: '22'
parity_error_count: '55'
reset_error_count: '0'
sbe_error_count: '33'
- asic: Fia
crc_error_count: '0'
generic_error_count: '0'
instance: '1'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '23'
- asic: Fia
crc_error_count: '0'
generic_error_count: '0'
instance: '2'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Fia
crc_error_count: '0'
generic_error_count: '0'
instance: '3'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Prm_np
crc_error_count: '0'
generic_error_count: '0'
instance: '0'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Prm_np
crc_error_count: '0'
generic_error_count: '0'
instance: '1'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Prm_np
crc_error_count: '0'
generic_error_count: '0'
instance: '2'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Prm_np
crc_error_count: '0'
generic_error_count: '0'
instance: '3'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Prm_np
crc_error_count: '0'
generic_error_count: '0'
instance: '4'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Prm_np
crc_error_count: '0'
generic_error_count: '0'
instance: '5'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Prm_np
crc_error_count: '0'
generic_error_count: '0'
instance: '6'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
- asic: Prm_np
crc_error_count: '0'
generic_error_count: '0'
instance: '7'
mbe_error_count: '0'
number_of_nodes: '0'
parity_error_count: '0'
reset_error_count: '0'
sbe_error_count: '0'
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
************************************************************
* Fia ASIC Error Summary *
************************************************************
Instance : 0
Number of nodes : 22
SBE error count : 33
MBE error count : 44
Parity error count : 55
CRC error count : 99999
Generic error count : 0
Reset error count : 0
--------------------
Instance : 1
Number of nodes : 0
SBE error count : 23
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 2
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 3
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------

************************************************************
* Prm_np ASIC Error Summary *
************************************************************
Instance : 0
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 1
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 2
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 3
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 4
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 5
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 6
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------
Instance : 7
Number of nodes : 0
SBE error count : 0
MBE error count : 0
Parity error count : 0
CRC error count : 0
Generic error count : 0
Reset error count : 0
--------------------

0 comments on commit abf4475

Please sign in to comment.