Pinger Template File (pinger_template.txt)

Top  Previous  Next

##############################

# Copyright 2002 NetSense Inc.

# www.net-sense.com

# Author: Allan Silverstein

##############################

 

##############################################################################

# 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.

# The 2nd (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 2nd 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 "64.145.25.3" "64.32.127.132" "default"]

lappend TOPO_LIST [list nj2 "150.145.25.4" "150.32.127.134"]

lappend TOPO_LIST [list cnj3 "200.33.2.1" "192.145.25.1"]

#lappend TOPO_LIST [list cnj5 "28.126.4.252"]

lappend TOPO_LIST [list cnj7 "10.33.1.3" "10.33.2.3" "10.128.1.1" "10.128.2.1"]

lappend TOPO_LIST [list ny1 "10.134.132.3" "200.32.127.136"]

lappend TOPO_LIST [list ny2 "10.134.132.4" "200.32.127.138"]

lappend TOPO_LIST [list cny3 "172.33.1.1" "10.134.132.1"]

lappend TOPO_LIST [list ca1 "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

####################

####################

# 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 one of the source IP addresses specified in TOPO_LIST

#    "*" is a wildcard match and will match all sources for a given router

# Third 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 block all pings to 10.31.239.1 from any router.

# This is basically the same as commenting out a single line in the PING_LIST variable

################################################################################

#lappend SKIP_LIST [list "nj2" "150.32.127.134" "10.128.2.1"]

#lappend SKIP_LIST [list "nj1" "default" "172.33.1.2"]

#lappend SKIP_LIST [list "cnj7" "*" "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 next to this command

#    MUST BE ALL CAPITAL LETTERS

#

# Inserting the KEY words SRC or DST 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 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 or DST will substitute the

# source/destination 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"

#lappend DIAG_CMD_LIST "show ip route DST"

#lappend DIAG_CMD_LIST "show ip eigrp neighbors"

#lappend DIAG_CMD_LIST "show ip cef DST"

#lappend DIAG_CMD_LIST "TRACEROUTE"