[rancid] Re: Run a command in all the routers

Dylan Vanderhoof DylanV at semaphore.com
Thu Jun 1 17:44:25 UTC 2006


find . -name router.db |xargs cat |grep up| sed s/:.*:up//g
 
Running that from the rancid data-dir  should give you a list of each up
device to stdout.
 
-D

	-----Original Message-----
	From: Shekhar Basnet [mailto:shekhar at mos.com.np] 
	Sent: Thursday, June 01, 2006 2:56 AM
	To: rancid-discuss at shrubbery.net
	Subject: [rancid] Run a command in all the routers
	
	
	Hello all,
	
	Suppose I want to run a command say "show diag" in all the
routers of different router.db files, what command do I issue?
	
	Thats one. I have 18 router.db files polling 72 devices. Now I
want to issue that command in only 9 router.db files. How do I tackle
that?
	
	TIA
	S.
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20060601/668eac2c/attachment.html 


More information about the Rancid-discuss mailing list