diff --git a/templates/cisco_xr_show_asic-errors_all_location.template b/templates/cisco_xr_show_asic-errors_all_location.template new file mode 100644 index 0000000000..1c4abb2aa4 --- /dev/null +++ b/templates/cisco_xr_show_asic-errors_all_location.template @@ -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" diff --git a/templates/index b/templates/index index 63fd9cd849..07f6f21752 100644 --- a/templates/index +++ b/templates/index @@ -236,6 +236,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]] diff --git a/tests/cisco_xr/show_asic-errors_all_location/cisco_xr_show_asic-errors_all_location.parsed b/tests/cisco_xr/show_asic-errors_all_location/cisco_xr_show_asic-errors_all_location.parsed new file mode 100644 index 0000000000..ffeeed0c5e --- /dev/null +++ b/tests/cisco_xr/show_asic-errors_all_location/cisco_xr_show_asic-errors_all_location.parsed @@ -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' diff --git a/tests/cisco_xr/show_asic-errors_all_location/cisco_xr_show_asic-errors_all_location.raw b/tests/cisco_xr/show_asic-errors_all_location/cisco_xr_show_asic-errors_all_location.raw new file mode 100644 index 0000000000..33dc7638d7 --- /dev/null +++ b/tests/cisco_xr/show_asic-errors_all_location/cisco_xr_show_asic-errors_all_location.raw @@ -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 +--------------------