|
Tracer VRF Template File |
Top Previous Next |
|
############################## # Copyright 2002 NetSense Inc. # www.net-sense.com # Author: Allan Silverstein ##############################
##################### # DO NOT MODIFY # TRACER_REV variable ##################### set TRACER_REV 2
# Template for trace route script (tracer)
#######################################3 # This template file should only be used # if the trace routes are being performed from # routers and you need to specify the # VRF #######################################3 set VRF 1
# Scenario: Normal Steady State
############################################################################################### # Note, the yes/no field is whether or not the BGP best route should be present in the routing # table. This is good for failure scenarios where you may want to confirm that a route is not # reachable after a failure of some type.
######################################################################################################### # For router: BR1 # Variables subnet yes/no "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. vrf: Name of VRF to use when performing traceroutes from this router # 3. The associated trace route destinations to check on this router # 4. 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 VRF dest_list src_IP ################################################################################ lappend RTR_LIST [list "br1" "vpn1" "$DEST_LIST_1" "1.1.1.1"] lappend RTR_LIST [list "sj2" "vpn1" "$DEST_LIST_2" ""] lappend RTR_LIST [list "192.168.1.40" "vpn2" "$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 or vrf next to this command # MUST BE ALL CAPITAL LETTERS # 3. ping <ip address> - This command will ping the address specfied. Do not # enter the vrf name, the script will automatially do # that. ############################################################################# #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, DST, or VRF will substitute the # source/destination or vrf-name of the failed traceroute in the command. # 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 vrf VRF" #lappend DIAG_CMD_LIST "SLEEP 1.0" #lappend DIAG_CMD_LIST "PING" #lappend DIAG_CMD_LIST "ping vrf VRF 10.1.1.1" #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"
|