#!/bin/bash # # Filename: /usr/local/etc/8600dump.sh # # Language: Bash Shell Script # # Purpose: This script will kickoff the Expect scripts that will dump # the data from the Avaya Ethernet Routing Switch 8600s. # # Author: Michael McNamara (http://blog.michaelfmcnmara.com) # # Date: October 9, 2006 # # Version: 1.0 # # License: # Copyright (C) 2002 Michael McNamara (mfm@michaelfmcnamara.com) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # # Changes: # # October 10, 2006 (M.McNamara) # o added remote sites into shell script processing # # Variables PATH_TO=/usr/local/etc UPGRADE=8600dump.exp LOCKFILE=/tmp/trace.lck if [ "$#" != 2 ] then echo "Usage: `basename $0` " exit 1 fi ########################################################## USERNAME=$1 PASSWORD=$2 ########################################################## SWITCHES='sw1.acme.org sw2.acme.org sw3.acme.org sw4.acme.org' ########################################################################## # M A I N S C R I P T B O D Y ########################################################################## for SWITCH in $SWITCHES do $PATH_TO/$UPGRADE $USERNAME $PASSWORD done exit ##########################################################################