[rancid] Re: Is there any way to show uncommitted changes
hvgeekwtrvl at gmail.com
Fri Apr 9 18:10:56 UTC 2010
look in the file <home dir>/bin/rancid and in there you will find an
array declaration @commandtable. this array shows the commands that
rancid will run and the function used to parse the output prior to
committing it to CVS/SVN.
On Wed, Mar 24, 2010 at 6:43 PM, David Krider <david at davidkrider.com> wrote:
> On 03/24/2010 07:24 PM, john heasley wrote:
>> Tue, Mar 23, 2010 at 01:08:11PM -0700, Chris Gauthier:
>>> I would be very interested in such a script! I just don't have time to write it.
>> for r in `cut -d: -f 1-3 */router.db | grep -i ':cisco:up' | cut -d: -f 1`
>> clogin -c 'write mem' $r
> Not to be obtuse, but what commands does rancid actually run normally? I
> know it's at least "show run", but there's some extra there. I've tried
> tracing the scripts, but I can't sort it out. I want to generate exactly
> the same output as it's getting during a normal run (except to "show
> conf"), so I can diff with the configs it's saving to the config
> directory, with as little differences as possible.
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
More information about the Rancid-discuss