Pushing config changes

john heasley heas at shrubbery.net
Fri Jan 9 16:14:30 UTC 2004


Fri, Jan 09, 2004 at 10:02:29AM -0500, Joshua Sahala:
> it isn't pretty (mostly because my scripting is limited), but it
> works:
> 
> - create a file with a list of all the ip addresses
> - have your ready-made config changes in a file
> 
> for routers in `cat /rancid/router.list`
> do 
> 	jlogin -x /Update_File/Policy_1 $routers
> done

or

for routers in `cat /usr/local/rancid/*/router.db | grep :rancid:up | cut -d' ' -f 1`
do
	echo $routers >> log
	jlogin ... $routers >> log
done



More information about the Rancid-discuss mailing list