[rancid] Re: Run a command in all the routers
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.
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rancid-discuss