diff --git a/templates/cisco_ios_traceroute.textfsm b/templates/cisco_ios_traceroute.textfsm new file mode 100644 index 0000000000..5774a925f9 --- /dev/null +++ b/templates/cisco_ios_traceroute.textfsm @@ -0,0 +1,45 @@ +Value Required,Filldown HOP_NUM (\d+) +Value ADDRESS ((?:\d{1,3}\.){3}\d{1,3}) +Value FQDN (\S+) +# Captures RTT (in milliseconds), or faults, like +# - * (probe timed out) +# - !H (destination host unreachable) +# - !N (destination network unreachable) +# - !P (destination protocol unreachable) +# - !A (administratively prohibited, aka ACL deny) +# - !Q (source quench, aka destination too busy) +# - !I (user interrupted test) +# - !T (timeout) +# - ? (unknown packet type) +Value List RTT_RESPONSE (\d+(?=\s+msec)|![A-Z]|\*|\?) +# Some intermediate devices provide additional information, such as +# - ASN +# - MPLS Exp Bits / Labels +# This is captured into details field +Value DETAILS (.*) + +Start + ^Type\s+escape + ^Tracing\s+the\s+route + ^VRF\s+info: -> Entries + ^\s*$$ + ^\s*$$ + ^. -> Error + +Entries + ^\s+${HOP_NUM}\s+ -> Continue + ^.*?${FQDN}\s+\(${ADDRESS}\)\s+(?:\[${DETAILS}\])? -> Continue + ^.*?${ADDRESS}\s+(?:\[${DETAILS}\])? -> Continue + ^.*?${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){1}${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){2}${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){3}${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){4}${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){5}${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){6}${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){7}${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){8}${RTT_RESPONSE} -> Continue + ^.*?(?:(?:\d+\s+msec|![A-Z]|\*|\?)\s+){9}${RTT_RESPONSE} -> Continue + ^.* -> Record + +EOF diff --git a/templates/index b/templates/index index 70e7285b8e..9fd36b1e21 100644 --- a/templates/index +++ b/templates/index @@ -215,6 +215,7 @@ cisco_ios_show_ip_bgp.textfsm, .*, cisco_ios, sh[[ow]] i[[p]] bgp cisco_ios_show_tacacs.textfsm, .*, cisco_ios, sh[[ow]] tacacs cisco_ios_show_clock.textfsm, .*, cisco_ios, sh[[ow]] clo[[ck]] cisco_ios_show_dmvpn.textfsm, .*, cisco_ios, sh[[ow]] dm[[vpn]] +cisco_ios_traceroute.textfsm, .*, cisco_ios, tr[[aceroute]] cisco_ios_show_boot.textfsm, .*, cisco_ios, sh[[ow]] boot cisco_ios_show_vlan.textfsm, .*, cisco_ios, sh[[ow]] vlan cisco_ios_show_vrf.textfsm, .*, cisco_ios, sh[[ow]] vrf diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_1.raw b/tests/cisco_ios/traceroute/cisco_ios_traceroute_1.raw new file mode 100644 index 0000000000..7d1b1db5e6 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_1.raw @@ -0,0 +1,8 @@ +Type escape sequence to abort. +Tracing the route to 10.133.2.1 +VRF info: (vrf in name/id, vrf out name/id) + 1 10.180.133.121 1 msec + 10.180.133.125 1 msec + 10.180.133.121 0 msec + 10.180.133.125 2 msec + 2 10.180.133.177 1 msec * 2 msec * \ No newline at end of file diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_1.yml b/tests/cisco_ios/traceroute/cisco_ios_traceroute_1.yml new file mode 100644 index 0000000000..869fabfb2e --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_1.yml @@ -0,0 +1,35 @@ +--- +parsed_sample: + - hop_num: "1" + address: "10.180.133.121" + fqdn: "" + rtt_response: + - "1" + details: "" + - hop_num: "1" + address: "10.180.133.125" + fqdn: "" + rtt_response: + - "1" + details: "" + - hop_num: "1" + address: "10.180.133.121" + fqdn: "" + rtt_response: + - "0" + details: "" + - hop_num: "1" + address: "10.180.133.125" + fqdn: "" + rtt_response: + - "2" + details: "" + - hop_num: "2" + address: "10.180.133.177" + fqdn: "" + rtt_response: + - "1" + - "*" + - "2" + - "*" + details: "" diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_2.raw b/tests/cisco_ios/traceroute/cisco_ios_traceroute_2.raw new file mode 100644 index 0000000000..fe03d80266 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_2.raw @@ -0,0 +1,24 @@ +Type escape sequence to abort. +Tracing the route to 10.225.2.1 +VRF info: (vrf in name/id, vrf out name/id) + 1 10.180.140.150 1 msec 1 msec 1 msec + 2 172.17.10.225 169 msec 142 msec 135 msec + 3 108.170.246.129 13 msec * * * * * * * * * + 4 74.125.242.97 14 msec + 216.239.63.218 12 msec + 172.253.68.212 13 msec + 74.125.242.97 13 msec + 216.239.56.192 13 msec + 74.125.242.97 13 msec + 108.170.238.117 13 msec + 216.239.58.220 13 msec + 74.125.242.97 13 msec 13 msec + 5 216.58.204.46 13 msec + 74.125.242.115 12 msec + 74.125.242.114 15 msec + 108.170.238.117 12 msec + 108.170.238.119 13 msec + 74.125.242.83 12 msec 12 msec 13 msec + 74.125.242.82 12 msec + 108.170.238.117 14 msec + 6 172.17.10.225 !H * !H \ No newline at end of file diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_2.yml b/tests/cisco_ios/traceroute/cisco_ios_traceroute_2.yml new file mode 100644 index 0000000000..67217b66e9 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_2.yml @@ -0,0 +1,146 @@ +--- +parsed_sample: + - hop_num: "1" + address: "10.180.140.150" + fqdn: "" + rtt_response: + - "1" + - "1" + - "1" + details: "" + - hop_num: "2" + address: "172.17.10.225" + fqdn: "" + rtt_response: + - "169" + - "142" + - "135" + details: "" + - hop_num: "3" + address: "108.170.246.129" + fqdn: "" + rtt_response: + - "13" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "4" + address: "74.125.242.97" + fqdn: "" + rtt_response: + - "14" + details: "" + - hop_num: "4" + address: "216.239.63.218" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "4" + address: "172.253.68.212" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "4" + address: "74.125.242.97" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "4" + address: "216.239.56.192" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "4" + address: "74.125.242.97" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "4" + address: "108.170.238.117" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "4" + address: "216.239.58.220" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "4" + address: "74.125.242.97" + fqdn: "" + rtt_response: + - "13" + - "13" + details: "" + - hop_num: "5" + address: "216.58.204.46" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "5" + address: "74.125.242.115" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "5" + address: "74.125.242.114" + fqdn: "" + rtt_response: + - "15" + details: "" + - hop_num: "5" + address: "108.170.238.117" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "5" + address: "108.170.238.119" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "5" + address: "74.125.242.83" + fqdn: "" + rtt_response: + - "12" + - "12" + - "13" + details: "" + - hop_num: "5" + address: "74.125.242.82" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "5" + address: "108.170.238.117" + fqdn: "" + rtt_response: + - "14" + details: "" + - hop_num: "6" + address: "172.17.10.225" + fqdn: "" + rtt_response: + - "!H" + - "*" + - "!H" + details: "" diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_3.raw b/tests/cisco_ios/traceroute/cisco_ios_traceroute_3.raw new file mode 100644 index 0000000000..691cc6eb0e --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_3.raw @@ -0,0 +1,52 @@ +Type escape sequence to abort. +Tracing the route to dns.google (8.8.8.8) +VRF info: (vrf in name/id, vrf out name/id) + 1 10.255.1.1 2 msec 1 msec 1 msec 2 msec 1 msec 1 msec 1 msec 1 msec 1 msec 1 msec + 2 10.255.0.5 1 msec 1 msec 1 msec 0 msec 1 msec 0 msec 1 msec 0 msec 0 msec 1 msec + 3 192.168.1.254 1 msec 1 msec 1 msec 1 msec 1 msec 1 msec * 1 msec * 1 msec + 4 * * * * * * * * * * + 5 * * * * * * * * * + 31.55.185.181 12 msec + 6 31.55.185.188 16 msec 18 msec 12 msec 13 msec 12 msec 11 msec 12 msec 17 msec 12 msec 12 msec + 7 core2-hu0-8-0-1.colindale.ukcore.bt.net (195.99.127.152) 11 msec + core1-hu0-12-0-1.colindale.ukcore.bt.net (195.99.127.214) 11 msec + core2-hu0-16-0-8.colindale.ukcore.bt.net (213.121.192.44) 13 msec 13 msec + core1-hu0-16-0-7.colindale.ukcore.bt.net (213.121.192.18) 11 msec + core2-hu0-16-0-8.colindale.ukcore.bt.net (213.121.192.44) 11 msec + core1-hu0-12-0-1.colindale.ukcore.bt.net (195.99.127.214) 12 msec + core1-hu0-17-0-5.colindale.ukcore.bt.net (195.99.127.150) 12 msec + core2-hu0-6-0-6.colindale.ukcore.bt.net (213.121.192.24) 12 msec + core1-hu0-15-0-9.colindale.ukcore.bt.net (213.121.192.14) 11 msec + 8 peer3-et-0-0-1.redbus.ukcore.bt.net (62.172.103.238) 12 msec + peer7-et-4-0-1.telehouse.ukcore.bt.net (194.72.16.122) 14 msec + core2-hu0-7-0-0.colindale.ukcore.bt.net (194.72.16.128) 12 msec + peer8-et-0-1-1.telehouse.ukcore.bt.net (109.159.252.150) 12 msec + 194.72.16.230 12 msec + peer2-et-3-0-4.slough.ukcore.bt.net (109.159.252.122) 17 msec + peer3-et-0-0-1.redbus.ukcore.bt.net (62.172.103.238) 17 msec + 194.72.16.190 12 msec + peer7-et-0-0-1.telehouse.ukcore.bt.net (62.172.103.158) 12 msec + peer8-et-7-0-1.telehouse.ukcore.bt.net (109.159.252.104) 12 msec + 9 109.159.253.189 12 msec + peer5-te0-0-0-32.telehouse.ukcore.bt.net (195.99.126.77) 12 msec + 109.159.253.73 12 msec + 109.159.253.237 13 msec + peer5-te0-0-0-32.telehouse.ukcore.bt.net (195.99.126.77) 13 msec + 109.159.253.3 12 msec + 109.159.253.219 11 msec + 109.159.253.237 12 msec + 109.159.253.187 13 msec + 109.159.253.75 12 msec + 10 * * * * * * * * * * + 11 * * * * * * * * * * + 12 * * * * * * * * * * + 13 * * * * * * * * * * + 14 * * * * * * * * * * + 15 * * * * * * * * * * + 16 * * * * * * * * * * + 17 * * * * * * * * * * + 18 * * * * * * * * * * + 19 * * * * * * * * * * + 20 * * * * * * * * * * + 21 * * * * * * * * * * + 22 * * * * * * * * * * \ No newline at end of file diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_3.yml b/tests/cisco_ios/traceroute/cisco_ios_traceroute_3.yml new file mode 100644 index 0000000000..38fefbfce3 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_3.yml @@ -0,0 +1,467 @@ +--- +parsed_sample: + - hop_num: "1" + address: "10.255.1.1" + fqdn: "" + rtt_response: + - "2" + - "1" + - "1" + - "2" + - "1" + - "1" + - "1" + - "1" + - "1" + - "1" + details: "" + - hop_num: "2" + address: "10.255.0.5" + fqdn: "" + rtt_response: + - "1" + - "1" + - "1" + - "0" + - "1" + - "0" + - "1" + - "0" + - "0" + - "1" + details: "" + - hop_num: "3" + address: "192.168.1.254" + fqdn: "" + rtt_response: + - "1" + - "1" + - "1" + - "1" + - "1" + - "1" + - "*" + - "1" + - "*" + - "1" + details: "" + - hop_num: "4" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "5" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "5" + address: "31.55.185.181" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "6" + address: "31.55.185.188" + fqdn: "" + rtt_response: + - "16" + - "18" + - "12" + - "13" + - "12" + - "11" + - "12" + - "17" + - "12" + - "12" + details: "" + - hop_num: "7" + address: "195.99.127.152" + fqdn: "core2-hu0-8-0-1.colindale.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "7" + address: "195.99.127.214" + fqdn: "core1-hu0-12-0-1.colindale.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "7" + address: "213.121.192.44" + fqdn: "core2-hu0-16-0-8.colindale.ukcore.bt.net" + rtt_response: + - "13" + - "13" + details: "" + - hop_num: "7" + address: "213.121.192.18" + fqdn: "core1-hu0-16-0-7.colindale.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "7" + address: "213.121.192.44" + fqdn: "core2-hu0-16-0-8.colindale.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "7" + address: "195.99.127.214" + fqdn: "core1-hu0-12-0-1.colindale.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "7" + address: "195.99.127.150" + fqdn: "core1-hu0-17-0-5.colindale.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "7" + address: "213.121.192.24" + fqdn: "core2-hu0-6-0-6.colindale.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "7" + address: "213.121.192.14" + fqdn: "core1-hu0-15-0-9.colindale.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "8" + address: "62.172.103.238" + fqdn: "peer3-et-0-0-1.redbus.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "194.72.16.122" + fqdn: "peer7-et-4-0-1.telehouse.ukcore.bt.net" + rtt_response: + - "14" + details: "" + - hop_num: "8" + address: "194.72.16.128" + fqdn: "core2-hu0-7-0-0.colindale.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "109.159.252.150" + fqdn: "peer8-et-0-1-1.telehouse.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "194.72.16.230" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "109.159.252.122" + fqdn: "peer2-et-3-0-4.slough.ukcore.bt.net" + rtt_response: + - "17" + details: "" + - hop_num: "8" + address: "62.172.103.238" + fqdn: "peer3-et-0-0-1.redbus.ukcore.bt.net" + rtt_response: + - "17" + details: "" + - hop_num: "8" + address: "194.72.16.190" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "62.172.103.158" + fqdn: "peer7-et-0-0-1.telehouse.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "109.159.252.104" + fqdn: "peer8-et-7-0-1.telehouse.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "9" + address: "109.159.253.189" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "9" + address: "195.99.126.77" + fqdn: "peer5-te0-0-0-32.telehouse.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "9" + address: "109.159.253.73" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "9" + address: "109.159.253.237" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "9" + address: "195.99.126.77" + fqdn: "peer5-te0-0-0-32.telehouse.ukcore.bt.net" + rtt_response: + - "13" + details: "" + - hop_num: "9" + address: "109.159.253.3" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "9" + address: "109.159.253.219" + fqdn: "" + rtt_response: + - "11" + details: "" + - hop_num: "9" + address: "109.159.253.237" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "9" + address: "109.159.253.187" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "9" + address: "109.159.253.75" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "10" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "11" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "12" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "13" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "14" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "15" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "16" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "17" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "18" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "19" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "20" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "21" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "22" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_4.raw b/tests/cisco_ios/traceroute/cisco_ios_traceroute_4.raw new file mode 100644 index 0000000000..8e6d929057 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_4.raw @@ -0,0 +1,19 @@ +Type escape sequence to abort. +Tracing the route to nv1.nv.ua (51.89.96.192) +VRF info: (vrf in name/id, vrf out name/id) + 0 10.255.1.1 1 msec + 1 10.255.1.1 1 msec + 2 10.255.0.5 1 msec + 3 192.168.1.254 1 msec + 4 * + 5 * + 6 31.55.185.184 12 msec + 7 core2-hu0-2-0-1.colindale.ukcore.bt.net (195.99.127.112) 12 msec + 8 peer7-et-0-1-1.telehouse.ukcore.bt.net (109.159.252.148) 12 msec + 9 ldn-1-a9.uk.eu (54.36.50.112) 12 msec + 10 be101.lon1-eri1-g1-nc5.uk.eu (213.186.32.253) 12 msec + 11 be7.lon1-eri1-vac1-a75.uk.eu (188.165.9.95) 12 msec + 12 * + 13 * + 14 * + 15 * \ No newline at end of file diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_4.yml b/tests/cisco_ios/traceroute/cisco_ios_traceroute_4.yml new file mode 100644 index 0000000000..6abfdb7310 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_4.yml @@ -0,0 +1,98 @@ +--- +parsed_sample: + - hop_num: "0" + address: "10.255.1.1" + fqdn: "" + rtt_response: + - "1" + details: "" + - hop_num: "1" + address: "10.255.1.1" + fqdn: "" + rtt_response: + - "1" + details: "" + - hop_num: "2" + address: "10.255.0.5" + fqdn: "" + rtt_response: + - "1" + details: "" + - hop_num: "3" + address: "192.168.1.254" + fqdn: "" + rtt_response: + - "1" + details: "" + - hop_num: "4" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "5" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "6" + address: "31.55.185.184" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "7" + address: "195.99.127.112" + fqdn: "core2-hu0-2-0-1.colindale.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "109.159.252.148" + fqdn: "peer7-et-0-1-1.telehouse.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "9" + address: "54.36.50.112" + fqdn: "ldn-1-a9.uk.eu" + rtt_response: + - "12" + details: "" + - hop_num: "10" + address: "213.186.32.253" + fqdn: "be101.lon1-eri1-g1-nc5.uk.eu" + rtt_response: + - "12" + details: "" + - hop_num: "11" + address: "188.165.9.95" + fqdn: "be7.lon1-eri1-vac1-a75.uk.eu" + rtt_response: + - "12" + details: "" + - hop_num: "12" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "13" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "14" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "15" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_5.raw b/tests/cisco_ios/traceroute/cisco_ios_traceroute_5.raw new file mode 100644 index 0000000000..36a6514618 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_5.raw @@ -0,0 +1,33 @@ +Type escape sequence to abort. +Tracing the route to 39.156.69.79 +VRF info: (vrf in name/id, vrf out name/id) + 1 10.255.1.1 1 msec + 2 10.255.0.5 0 msec + 3 192.168.1.254 1 msec + 4 * + 5 * + 6 31.55.185.176 11 msec + 7 core2-hu0-12-0-1.colindale.ukcore.bt.net (195.99.127.118) 12 msec + 8 109.159.252.132 12 msec + 9 166-49-128-32.gia.bt.net (166.49.128.32) 11 msec + 10 212.119.4.136 12 msec + 11 ae-0.r24.londen12.uk.bb.gin.ntt.net (129.250.4.140) [MPLS: Label 316962 Exp 0] 15 msec + 12 ae-7.r21.sngpsi07.sg.bb.gin.ntt.net (129.250.7.65) [MPLS: Labels 577687/617891 Exp 0] 166 msec + 13 ae-7.r20.sngpsi07.sg.bb.gin.ntt.net (129.250.3.74) [MPLS: Labels 408375/617891 Exp 0] 196 msec + 14 ae-9.r24.tkokhk01.hk.bb.gin.ntt.net (129.250.7.67) [MPLS: Label 617891 Exp 0] 233 msec + 15 ae-1.r03.tkokhk01.hk.bb.gin.ntt.net (129.250.6.98) 216 msec + 16 ce-0-2-0-3.r03.tkokhk01.hk.ce.gin.ntt.net (203.131.241.86) 217 msec + 17 223.120.2.53 236 msec + 18 223.120.2.6 237 msec + 19 221.183.68.125 223 msec + 20 221.183.25.122 221 msec + 21 221.183.68.146 219 msec + 22 * + 23 221.183.62.138 202 msec + 24 * + 25 39.156.27.1 207 msec + 26 * + 27 * + 28 * + 29 * + 30 * \ No newline at end of file diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_5.yml b/tests/cisco_ios/traceroute/cisco_ios_traceroute_5.yml new file mode 100644 index 0000000000..7ab6d0e9a0 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_5.yml @@ -0,0 +1,182 @@ +--- +parsed_sample: + - hop_num: "1" + address: "10.255.1.1" + fqdn: "" + rtt_response: + - "1" + details: "" + - hop_num: "2" + address: "10.255.0.5" + fqdn: "" + rtt_response: + - "0" + details: "" + - hop_num: "3" + address: "192.168.1.254" + fqdn: "" + rtt_response: + - "1" + details: "" + - hop_num: "4" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "5" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "6" + address: "31.55.185.176" + fqdn: "" + rtt_response: + - "11" + details: "" + - hop_num: "7" + address: "195.99.127.118" + fqdn: "core2-hu0-12-0-1.colindale.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "109.159.252.132" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "9" + address: "166.49.128.32" + fqdn: "166-49-128-32.gia.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "10" + address: "212.119.4.136" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "11" + address: "129.250.4.140" + fqdn: "ae-0.r24.londen12.uk.bb.gin.ntt.net" + rtt_response: + - "15" + details: "MPLS: Label 316962 Exp 0" + - hop_num: "12" + address: "129.250.7.65" + fqdn: "ae-7.r21.sngpsi07.sg.bb.gin.ntt.net" + rtt_response: + - "166" + details: "MPLS: Labels 577687/617891 Exp 0" + - hop_num: "13" + address: "129.250.3.74" + fqdn: "ae-7.r20.sngpsi07.sg.bb.gin.ntt.net" + rtt_response: + - "196" + details: "MPLS: Labels 408375/617891 Exp 0" + - hop_num: "14" + address: "129.250.7.67" + fqdn: "ae-9.r24.tkokhk01.hk.bb.gin.ntt.net" + rtt_response: + - "233" + details: "MPLS: Label 617891 Exp 0" + - hop_num: "15" + address: "129.250.6.98" + fqdn: "ae-1.r03.tkokhk01.hk.bb.gin.ntt.net" + rtt_response: + - "216" + details: "" + - hop_num: "16" + address: "203.131.241.86" + fqdn: "ce-0-2-0-3.r03.tkokhk01.hk.ce.gin.ntt.net" + rtt_response: + - "217" + details: "" + - hop_num: "17" + address: "223.120.2.53" + fqdn: "" + rtt_response: + - "236" + details: "" + - hop_num: "18" + address: "223.120.2.6" + fqdn: "" + rtt_response: + - "237" + details: "" + - hop_num: "19" + address: "221.183.68.125" + fqdn: "" + rtt_response: + - "223" + details: "" + - hop_num: "20" + address: "221.183.25.122" + fqdn: "" + rtt_response: + - "221" + details: "" + - hop_num: "21" + address: "221.183.68.146" + fqdn: "" + rtt_response: + - "219" + details: "" + - hop_num: "22" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "23" + address: "221.183.62.138" + fqdn: "" + rtt_response: + - "202" + details: "" + - hop_num: "24" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "25" + address: "39.156.27.1" + fqdn: "" + rtt_response: + - "207" + details: "" + - hop_num: "26" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "27" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "28" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "29" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" + - hop_num: "30" + address: "" + fqdn: "" + rtt_response: + - "*" + details: "" diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_dns.raw b/tests/cisco_ios/traceroute/cisco_ios_traceroute_dns.raw new file mode 100644 index 0000000000..a0480720be --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_dns.raw @@ -0,0 +1,17 @@ +Type escape sequence to abort. +Tracing the route to one.one.one.one (1.1.1.1) +VRF info: (vrf in name/id, vrf out name/id) + 1 10.255.1.1 2 msec 1 msec 1 msec + 2 10.255.0.5 1 msec 1 msec 1 msec + 3 192.168.1.254 1 msec 1 msec 1 msec + 4 * * * + 5 * * * + 6 31.55.185.188 12 msec 12 msec 11 msec + 7 core1-hu0-16-0-9.colindale.ukcore.bt.net (213.121.192.22) 11 msec + core2-hu0-17-0-1.colindale.ukcore.bt.net (195.99.127.156) 11 msec + core2-hu0-15-0-6.colindale.ukcore.bt.net (213.121.192.32) 12 msec + 8 peer7-et-0-1-6.telehouse.ukcore.bt.net (109.159.252.166) 12 msec + peer7-et-0-1-1.telehouse.ukcore.bt.net (109.159.252.148) 11 msec + core2-hu0-7-0-0.colindale.ukcore.bt.net (194.72.16.128) 11 msec + 9 109.159.253.95 15 msec 14 msec 13 msec + 10 one.one.one.one (1.1.1.1) 11 msec 14 msec 12 msec \ No newline at end of file diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_dns.yml b/tests/cisco_ios/traceroute/cisco_ios_traceroute_dns.yml new file mode 100644 index 0000000000..96f1712112 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_dns.yml @@ -0,0 +1,102 @@ +--- +parsed_sample: + - hop_num: "1" + address: "10.255.1.1" + fqdn: "" + rtt_response: + - "2" + - "1" + - "1" + details: "" + - hop_num: "2" + address: "10.255.0.5" + fqdn: "" + rtt_response: + - "1" + - "1" + - "1" + details: "" + - hop_num: "3" + address: "192.168.1.254" + fqdn: "" + rtt_response: + - "1" + - "1" + - "1" + details: "" + - hop_num: "4" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + details: "" + - hop_num: "5" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + details: "" + - hop_num: "6" + address: "31.55.185.188" + fqdn: "" + rtt_response: + - "12" + - "12" + - "11" + details: "" + - hop_num: "7" + address: "213.121.192.22" + fqdn: "core1-hu0-16-0-9.colindale.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "7" + address: "195.99.127.156" + fqdn: "core2-hu0-17-0-1.colindale.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "7" + address: "213.121.192.32" + fqdn: "core2-hu0-15-0-6.colindale.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "109.159.252.166" + fqdn: "peer7-et-0-1-6.telehouse.ukcore.bt.net" + rtt_response: + - "12" + details: "" + - hop_num: "8" + address: "109.159.252.148" + fqdn: "peer7-et-0-1-1.telehouse.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "8" + address: "194.72.16.128" + fqdn: "core2-hu0-7-0-0.colindale.ukcore.bt.net" + rtt_response: + - "11" + details: "" + - hop_num: "9" + address: "109.159.253.95" + fqdn: "" + rtt_response: + - "15" + - "14" + - "13" + details: "" + - hop_num: "10" + address: "1.1.1.1" + fqdn: "one.one.one.one" + rtt_response: + - "11" + - "14" + - "12" + details: "" diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_ip.raw b/tests/cisco_ios/traceroute/cisco_ios_traceroute_ip.raw new file mode 100644 index 0000000000..48db9827ca --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_ip.raw @@ -0,0 +1,28 @@ +Type escape sequence to abort. +Tracing the route to ams16s22-in-f14.1e100.net (216.58.212.238) +VRF info: (vrf in name/id, vrf out name/id) + 10 * * * * * * * * * * + 11 74.125.242.97 13 msec + 108.170.232.104 15 msec + 64.233.175.90 11 msec + 74.125.242.97 12 msec 22 msec 13 msec + 172.253.71.188 12 msec + 172.253.66.98 12 msec + 74.125.242.97 14 msec + 172.253.71.198 12 msec + 12 74.125.242.114 12 msec + 74.125.242.115 12 msec + 74.125.242.82 12 msec 12 msec + 216.239.63.219 14 msec 12 msec 12 msec + 74.125.242.82 12 msec + 216.239.63.219 14 msec + 216.239.41.241 14 msec + 13 ams16s22-in-f14.1e100.net (216.58.212.238) 13 msec + 209.85.241.211 [MPLS: Label 216928 Exp 4] 15 msec + ams16s22-in-f14.1e100.net (216.58.212.238) 11 msec 12 msec + 216.239.59.77 [MPLS: Label 38369 Exp 4] 14 msec + 209.85.241.211 [MPLS: Label 216928 Exp 4] 15 msec + ams16s22-in-f14.1e100.net (216.58.212.238) 12 msec + 209.85.250.185 [MPLS: Label 27488 Exp 4] 13 msec + ams16s22-in-f14.1e100.net (216.58.212.238) 11 msec + 216.239.58.131 [MPLS: Label 36671 Exp 4] 13 msec \ No newline at end of file diff --git a/tests/cisco_ios/traceroute/cisco_ios_traceroute_ip.yml b/tests/cisco_ios/traceroute/cisco_ios_traceroute_ip.yml new file mode 100644 index 0000000000..e54e1779d6 --- /dev/null +++ b/tests/cisco_ios/traceroute/cisco_ios_traceroute_ip.yml @@ -0,0 +1,167 @@ +--- +parsed_sample: + - hop_num: "10" + address: "" + fqdn: "" + rtt_response: + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + - "*" + details: "" + - hop_num: "11" + address: "74.125.242.97" + fqdn: "" + rtt_response: + - "13" + details: "" + - hop_num: "11" + address: "108.170.232.104" + fqdn: "" + rtt_response: + - "15" + details: "" + - hop_num: "11" + address: "64.233.175.90" + fqdn: "" + rtt_response: + - "11" + details: "" + - hop_num: "11" + address: "74.125.242.97" + fqdn: "" + rtt_response: + - "12" + - "22" + - "13" + details: "" + - hop_num: "11" + address: "172.253.71.188" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "11" + address: "172.253.66.98" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "11" + address: "74.125.242.97" + fqdn: "" + rtt_response: + - "14" + details: "" + - hop_num: "11" + address: "172.253.71.198" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "12" + address: "74.125.242.114" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "12" + address: "74.125.242.115" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "12" + address: "74.125.242.82" + fqdn: "" + rtt_response: + - "12" + - "12" + details: "" + - hop_num: "12" + address: "216.239.63.219" + fqdn: "" + rtt_response: + - "14" + - "12" + - "12" + details: "" + - hop_num: "12" + address: "74.125.242.82" + fqdn: "" + rtt_response: + - "12" + details: "" + - hop_num: "12" + address: "216.239.63.219" + fqdn: "" + rtt_response: + - "14" + details: "" + - hop_num: "12" + address: "216.239.41.241" + fqdn: "" + rtt_response: + - "14" + details: "" + - hop_num: "13" + address: "216.58.212.238" + fqdn: "ams16s22-in-f14.1e100.net" + rtt_response: + - "13" + details: "" + - hop_num: "13" + address: "209.85.241.211" + fqdn: "" + rtt_response: + - "15" + details: "MPLS: Label 216928 Exp 4" + - hop_num: "13" + address: "216.58.212.238" + fqdn: "ams16s22-in-f14.1e100.net" + rtt_response: + - "11" + - "12" + details: "" + - hop_num: "13" + address: "216.239.59.77" + fqdn: "" + rtt_response: + - "14" + details: "MPLS: Label 38369 Exp 4" + - hop_num: "13" + address: "209.85.241.211" + fqdn: "" + rtt_response: + - "15" + details: "MPLS: Label 216928 Exp 4" + - hop_num: "13" + address: "216.58.212.238" + fqdn: "ams16s22-in-f14.1e100.net" + rtt_response: + - "12" + details: "" + - hop_num: "13" + address: "209.85.250.185" + fqdn: "" + rtt_response: + - "13" + details: "MPLS: Label 27488 Exp 4" + - hop_num: "13" + address: "216.58.212.238" + fqdn: "ams16s22-in-f14.1e100.net" + rtt_response: + - "11" + details: "" + - hop_num: "13" + address: "216.239.58.131" + fqdn: "" + rtt_response: + - "13" + details: "MPLS: Label 36671 Exp 4"