[rancid] Re: config difsf after "write mem"

Lance Vermilion rancid at gheek.net
Fri Mar 24 16:27:44 UTC 2006


Yuval/Justin,

Just look in your /<dir>/<to>/<rancid>/bin/<file> and modify the commandtable.
The commandtable should be found in the rancid file around line 1706. When you 
see a command there that you don't want ran just put a "#" in from of the line 
to comment it out. Here is an example of my commandtable.

file:/usr/local/rancid/bin/rancid

# Main
@commandtable = (
        {'admin show version'           => 'ShowVersion'},
        {'show version'                 => 'ShowVersion'},
        {'show redundancy secondary'    => 'ShowRedundancy'},
        {'show idprom backplane',       => 'ShowIDprom'},
        {'show install active'          => 'ShowInstallActive'},
        {'admin show env all'           => 'ShowEnv'},
        {'show env all'                 => 'ShowEnv'},
        {'show rsp chassis-info',       => 'ShowRSP'},
        {'show gsr chassis'             => 'ShowGSR'},
        {'show boot'                    => 'ShowBoot'},
        #{'show bootvar'                        => 'ShowBoot'},
        #{'show variables boot'         => 'ShowBoot'},
        #{'show flash'                  => 'ShowFlash'},
        #{'dir /all nvram:'             => 'DirSlotN'},
        #{'dir /all bootflash:'         => 'DirSlotN'},
        #{'dir /all slot0:'             => 'DirSlotN'},
        #{'dir /all disk0:'             => 'DirSlotN'},
        #{'dir /all slot1:'             => 'DirSlotN'},
        #{'dir /all disk1:'             => 'DirSlotN'},
        #{'dir /all slot2:'             => 'DirSlotN'},
        #{'dir /all disk2:'             => 'DirSlotN'},
        #{'dir /all harddisk:'          => 'DirSlotN'},
        #{'dir /all harddiska:'         => 'DirSlotN'},
        #{'dir /all harddiskb:'         => 'DirSlotN'},
        #{'dir /all sup-bootflash:'     => 'DirSlotN'},         # cat 6500-ios
        #{'dir /all sup-microcode:'     => 'DirSlotN'},         # cat 6500-ios
        #{'dir /all slavenvram:'                => 'DirSlotN'},
        #{'dir /all slavebootflash:'    => 'DirSlotN'},
        #{'dir /all slaveslot0:'                => 'DirSlotN'},
        #{'dir /all slavedisk0:'                => 'DirSlotN'},
        #{'dir /all slaveslot1:'                => 'DirSlotN'},
        #{'dir /all slavedisk1:'                => 'DirSlotN'},
        #{'dir /all slaveslot2:'                => 'DirSlotN'},
        #{'dir /all slavedisk2:'                => 'DirSlotN'},
        #{'dir /all slavesup-bootflash:'        => 'DirSlotN'},         # cat 7609
        #{'dir /all sec-nvram:'         => 'DirSlotN'},
        #{'dir /all sec-bootflash:'     => 'DirSlotN'},
        #{'dir /all sec-slot0:'         => 'DirSlotN'},
        #{'dir /all sec-disk0:'         => 'DirSlotN'},
        #{'dir /all sec-slot1:'         => 'DirSlotN'},
        #{'dir /all sec-disk1:'         => 'DirSlotN'},
        #{'dir /all sec-slot2:'         => 'DirSlotN'},
        #{'dir /all sec-disk2:'         => 'DirSlotN'},
        {'show controllers'             => 'ShowContAll'},
        {'show controllers cbus'        => 'ShowContCbus'},
        {'show diagbus'                 => 'ShowDiagbus'},
        {'admin show diag'              => 'ShowDiag'},
        {'show diag'                    => 'ShowDiag'},
        {'show module'                  => 'ShowModule'},       # cat 6500-ios
        {'show spe version'             => 'ShowSpeVersion'},
        {'show c7200'                   => 'ShowC7200'},
        {'show inventory raw'           => 'ShowInventory'},
        {'show vtp status'              => 'ShowVTP'},
        {'show vlan'                    => 'ShowVLAN'},
        {'show running-config'          => 'WriteTerm'},
        {'write term'                   => 'WriteTerm'},
);
On Fri, Mar 24, 2006 at 08:44:46AM -0700, Justin Grote wrote:
> Forgot to cc the list. Whoops.
> 

> Date: Fri, 24 Mar 2006 08:44:06 -0700
> From: Justin Grote <justin at grote.name>
> To: Yuval Ben-Ari <yuvalba at netvision.net.il>
> Subject: Re: [rancid]  config difsf after "write mem"
> 
> Yuval Ben-Ari wrote:
> >does it make sense to track those changes ?
> >does anyone have a workaround for this ?  or just filter it out ?
> >  
> What platform is this? Most routers store their configs in NVRAM, not 
> flash, so this doesn't occur because RANCID doesn't do a show nvram.
> 
> -- 
> Justin Grote
> Network Architect
> JWG Networks
> 
> 

> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-- 

-Lance <rancid at gheek.net>




More information about the Rancid-discuss mailing list