|
Pinger VRF Template File |
Top Previous Next |
|
############################## # Copyright 2002 NetSense Inc. # www.net-sense.com # Author: Allan Silverstein ##############################
####################################### # This template file should only be used # if the pings are being performed from # routers and you need to specify the # VRF ####################################### set VRF 1
############################################################################## # Delay before performing next ping. If there are alot of ping destinations # it could drive up the CPU on low end routers. Putting in a delay between # pings should lower the CPU. This value is in milli seconds!!! # The numbers below were for a Cisco 1750 router running 12.2 code # 250ms delay throttles CPU usage to 20 - 25% # 500ms delay throttles CPU usage to 10 - 12% # Example: 1000ms = 1 second # ############################################################################## set PING_DELAY_INTERVAL 250
################################################################################ # Data Structure List describing the topology for the pinger utility. # The first argument in each row is the address/name to telnet to. # NEW for VRF funtionality. The 2nd argument must be a valid VRF name # if the VRF_PINGS variable is defined at the top of this file # The 3rd (plus) argument for each row must be a valid IP interface address # on that router. This address will be used for the source IP address when # using extended pings. # Additional source IP addresses can be added after the 3rd list element of each row # Each new address must be enclosed in double quotes # The keyword "default" can also be used as a source IP address. In this # case the router will use the interface IP address that the ping exits the router. # For example, the first router that pings will be peformed from is nj1. Pings will # be sent from this router first using a source IP Address of 64.145.25.3. The # addresses that are pinged are contained in the PING_LIST below. After all of the # addresses in PING_LIST are pinged, Router nj1 will then ping those same IP # Addresses but will now use a source IP address of 64.32.127.132. After those # pings are finished nj1 will then use the router's default source IP address # and ping all of the address in the PING_LIST ################################################################################ lappend TOPO_LIST [list nj1 "vrf1" "64.145.25.3" "64.32.127.132" "default"] lappend TOPO_LIST [list nj2 "vrf1" "150.145.25.4" "150.32.127.134"] lappend TOPO_LIST [list cnj3 "vrf2" "200.33.2.1" "192.145.25.1"] #lappend TOPO_LIST [list cnj5 "vrf2" "28.126.4.252"] lappend TOPO_LIST [list cnj7 "vrf2" "10.33.1.3" "10.33.2.3" "10.128.1.1" "10.128.2.1"] lappend TOPO_LIST [list ny1 "vrf3" "10.134.132.3" "200.32.127.136"] lappend TOPO_LIST [list ny2 "vrf3" "10.134.132.4" "200.32.127.138"] lappend TOPO_LIST [list cny3 "vrf4" "172.33.1.1" "10.134.132.1"] lappend TOPO_LIST [list ca1 "vrf4" "10.31.240.253" "200.42.59.16" "10.31.239.1"]
################################################################################ # A list the IP addresses that will pinged for testing along with a desription # of the IP address. The second element of each row is a description field. # This can either be left with ???? or a small descriptive comment can be added. ################################################################################ lappend PING_LIST [list "10.145.25.1" "????"] lappend PING_LIST [list "10.145.25.2" "?????"] lappend PING_LIST [list "10.145.25.3" "nj1 eth"] lappend PING_LIST [list "10.145.25.4" "nj2 eth"] #lappend PING_LIST [list "10.126.4.102" "nj1 eth"] #lappend PING_LIST [list "10.126.4.103" "nj2 eth"] #lappend PING_LIST [list "10.126.4.252" "cnj5 eth"] lappend PING_LIST [list "10.134.132.1" "cny3"] lappend PING_LIST [list "10.134.132.2" "cny4"] lappend PING_LIST [list "10.134.132.3" "ny1"] lappend PING_LIST [list "10.134.132.4" "ny2"] lappend PING_LIST [list "200.32.127.132" "nj1 l0"] lappend PING_LIST [list "200.32.127.134" "nj2 l0"] lappend PING_LIST [list "200.32.127.136" "ny1 l0"] lappend PING_LIST [list "200.32.127.138" "ny2 l0"] lappend PING_LIST [list "172.33.1.1" "cny3 eth"] lappend PING_LIST [list "172.33.1.2" "cny4 eth"] lappend PING_LIST [list "172.33.1.3" "cnj7 eth"] lappend PING_LIST [list "172.33.2.1" "cnj3 eth"] lappend PING_LIST [list "172.33.2.2" "cnj4 eth"] lappend PING_LIST [list "172.33.2.3" "cnj7 eth"] lappend PING_LIST [list "10.31.240.253" "jp1 ether"] lappend PING_LIST [list "200.42.59.16" "jp1 L0"] lappend PING_LIST [list "10.31.239.1" "jp1 L10"] lappend PING_LIST [list "10.128.1.1" "cnj7 L10"] lappend PING_LIST [list "10.128.2.1" "cnj7 L11"]
################################################################################ #################### #################### # OPTIONAL Skip List #################### #################### # Skip List # Add combinations of router, src_address, dest_address for pings # that you do not want to perform # Here are some examples based on the data above # This is useful if you know some combinations are supposed to fail and # you don't want the summary.log file to report a false alarm # # First list element is the router name or IP address. This must # match the router name or IP address that was specified in the first # element of TOPO_LIST # "*" is a wildcard match and will match any router. This only makes sense # to use when also setting the source address to a "*" # Second element is the vrf name as specified in TOPO_LIST # "*" is a wildcard match and will match all vrfs for a given router # Third element is one of the source IP addresses specified in TOPO_LIST # "*" is a wildcard match and will match all sources for a given router # Forth element is one of the destination addresses specified in PING_LIST # "*" is a wildcard match and will match all destinations for a given router # By default, the SKIP_LIST is commented out. If you want to skip # some ping combinations, then uncomment the lines below and modify the # router name and IP addresses to fit your environment # # Since there is a * in the source field for the third example, this in essence # is blocking all pings from the cnj7 router to 172.33.1.2 # # The last example says blocking all pings to 10.31.239.1 from any router, withing any vrf. # This is basically the same as commenting out a single line in the PING_LIST variable ################################################################################ #lappend SKIP_LIST [list "nj2" "vrf1" "150.32.127.134" "10.128.2.1"] #lappend SKIP_LIST [list "nj1" "vrf1" "default" "172.33.1.2"] #lappend SKIP_LIST [list "cnj7" "vrf2" "*" "200.32.127.132"] #lappend SKIP_LIST [list "*" "*" "*" "10.31.239.1"]
################################################################ ################################## ################################## # OPTIONAL Pre-Ping Command List ################################## ################################## # Optional feature which will issue specified commands immediately before # each ping # None of the commands below can have the requirement of # entering a confirm, yes , or no after the command # In addition to listing commands that do not require a # confirmation after entering the command, the following two # special commands can be entered in this list # 1. SLEEP <seconds> - This command will introduce a delay before entering # the next command in the list. MUST BE ALL CAPITAL LETTERS # 2. TRACEROUTE - This command will perform a traceroute to the # address that will be used in the ping. # Do not specify an ip address or vrf name next to this command # MUST BE ALL CAPITAL LETTERS # # Inserting the KEY words SRC, DST, or VRF will substitute the # source/destination of the ping that will be issued for the actual ping # The key word TRACEROUTE will perform a traceroute to the destination # Leave these commands commented out if you do not wanted to issue # any commands following a before the ping is performed. ################################################################ #lappend PRE_PING_CMD_LIST "show ip route VRF DST" #lappend PRE_PING_CMD_LIST "show ip eigrp neighbors" #lappend PRE_PING_CMD_LIST "show ip cef DST" #lappend PRE_PING_CMD_LIST "TRACEROUTE"
################################################################ ################################## ################################## # OPTIONAL Diagnostic Command List ################################## ################################## # Commands to enter on a router in the event a ping fails # Inserting the KEY words SRC, DST or VRF will substitute the # source/destination or vrf of the failed ping in the command # The key word TRACEROUTE will perform a traceroute to the destination # Leave these commands commented out if you do not wanted to issue # any Diagnostic commands following a failed ping. ################################################################ #lappend DIAG_CMD_LIST "show ip route vrf VRF" #lappend DIAG_CMD_LIST "show ip route vrf VRF DST" #lappend DIAG_CMD_LIST "show ip eigrp vrf VRF neighbors" #lappend DIAG_CMD_LIST "show ip cef vrf VRF DST" #lappend DIAG_CMD_LIST "TRACEROUTE" |