|
Tracer Template File |
Top Previous Next |
|
############################## # Copyright 2002 NetSense Inc. # www.net-sense.com # Author: Allan Silverstein ##############################
##################### # DO NOT MODIFY THE # TRACER_REV variable ##################### set TRACER_REV 2
# Template for trace route script (tracer)
# Scenario: Normal Steady State
############################################################################################### # Note, the yes/no field is whether or not the traceroute should be successfull. # This is good for failure scenarios where you may want to confirm that a # traceroute fails after a failure scenario was introduced # The expected "trace route path list" is compared against the actual # path when the script runs ######################################################################################################### # For router: BR1 # Variables subnet yes/no "expected trace route path list" ######################################################################################################### lappend DEST_LIST_1 [list "10.30.30.1" "yes" "1.1.1.1 1.1.2.1 1.1.3.1 1.1.4.1"] lappend DEST_LIST_1 [list "10.4.4.2" "yes" "1.1.1.1 1.1.6.1 1.1.7.1 1.1.8.1"]
######################################################################################################### # For router: SJ2 # Variables subnet yes/no "trace route path list" ######################################################################################################### lappend DEST_LIST_2 [list "10.30.30.1" "yes" "2.1.1.1 2.1.2.1 2.1.3.1 2.1.4.1"] lappend DEST_LIST_2 [list "10.4.4.2" "yes" "2.1.1.1 2.1.6.1 2.1.7.1 2.1.8.1"]
######################################################################################################### # For router: 192.168.1.40 (3745) # Variables subnet yes/no "trace route path list" ######################################################################################################### lappend DEST_LIST_3 [list "10.30.30.1" "yes" "3.1.1.1 3.1.2.1 3.1.3.1 3.1.4.1"] lappend DEST_LIST_3 [list "10.30.30.1" "yes" "3.1.1.1 3.1.6.1 3.1.6.1 3.1.6.1"]
################################################################################ # The list of routers to telnet to and perform a trace route # Field Definitions: # 1. rtr: Router to telnet to and perform trace routes # 2. The associated trace route destinations to check on this router # 3. Source IP Address used for traceroutes from this router. To use the default # address that the router wants to use, just leave the value, between the two # double quotes, to nothing, or put in the key word default (see samples below) ################################################################################ # rtr dest_list src_IP ################################################################################ lappend RTR_LIST [list "br1" "$DEST_LIST_1" "1.1.1.1"] lappend RTR_LIST [list "sj2" "$DEST_LIST_2" ""] lappend RTR_LIST [list "192.168.1.40" "$DEST_LIST_3" "default"]
############################################################################# # Optional feature which will issue specified commands immediately before # each traceroute # 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 three # 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. PING - This command will ping the address that will be used in the # traceroute. Do not specify an ip address next to this command # MUST BE ALL CAPITAL LETTERS # 3. ping <ip address> - This command will ping the address specfied. ############################################################################# #lappend PRE_TRACE_CMD_LIST "show ip cef" #lappend PRE_TRACE_CMD_LIST "SLEEP 1.0" #lappend PRE_TRACE_CMD_LIST "PING" #lappend PRE_TRACE_CMD_LIST "ping 10.1.1.1"
################################## # OPTIONAL Diagnostic Command List ################################## ####################################################################### # Commands to enter on a router in the event a traceroute fails, # or the actual path does not match the expected path # Inserting the KEY words SRC or DST will substitute the # source/destination of the failed traceroute 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 traceroute. # # 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 three # 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. PING - This command will ping the address that will be used in the # traceroute. Do not specify an ip address next to this command # MUST BE ALL CAPITAL LETTERS # 3. ping <ip address> - This command will ping the address specfied. ######################################################################## #lappend DIAG_CMD_LIST "show ip route" #lappend DIAG_CMD_LIST "SLEEP 1.0" #lappend DIAG_CMD_LIST "PING" #lappend DIAG_CMD_LIST "ping 10.1.1.1" #lappend DIAG_CMD_LIST "show ip route DST" #lappend DIAG_CMD_LIST "show ip eigrp neighbors" #lappend DIAG_CMD_LIST "show ip cef DST" |