[rancid] Re: Recurring Diffs

Lance rancid at gheek.net
Mon Aug 20 16:25:12 UTC 2007


Yousef,

I know why it is bitching. It is cause you are running the stable while
I run the alpha. Meaning in the alpha there not a separate Hash, it is
created from the array. So Try the file I have attached. I think this
should do the trick for you.

-Lance

> -------- Original Message --------
> Subject: Re: [rancid] Recurring Diffs
> From: "Yousef Raffah" <yraffah at gmail.com>
> Date: Mon, August 20, 2007 1:03 am
> To: Lance <rancid at gheek.net>
> Cc: rancid-discuss at shrubbery.net
> 
> On 8/19/07, Lance <rancid at gheek.net> wrote:
> > Yousef,
> >
> > You need to check your log file. That would be something similar to
> > "<rancid path>/var/log/<group>-date"
> > /usr/local/rancid/var/log/network-20070919
> >
> > Look in that file and see exactly what it says.
> >
> I found something related in one of my groups log file (/
> 
> Trying to get all of the configs.
> 192.168.2.6: found unexpected command - "dir /all nvram:"
> write(spawn_id=1): broken pipe
>     while executing
> "send_user -- "$expect_out(buffer)""
>     invoked from within
> "expect -nobrace -re+ { exp_continue } -re {^[^
> ^M *]*SAVOLAPIX([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
> "$expect_out(buffer)"
>                                                 } -re {^[..."
>     invoked from within
> "expect {
>                 -re "\b+"                       { exp_continue }
>                 -re "^\[^\n\r *]*$reprompt"     { send_user --
> "$expect_out(buffer)"
>                                                 }
>                 -re "^\[^\n\r]*$reprompt."      { send..."
>     invoked from within
> "if [ string match "*\;*" "$command" ] {
>         set commands [split $command \;]
>         set num_commands [llength $commands]
>         # the pager can not be turned off on ..."
>     (procedure "run_commands" line 34)
>     invoked from within
> "run_commands $prompt $command"
>     ("foreach" body line 144)
>     invoked from within
> "foreach router [lrange $argv $i end] {
>     set router [string tolower $router]
>     send_user "$router\n"
> 
>     # Figure out prompt.
>     # Since autoena..."
>     (file "/usr/local/libexec/rancid//clogin" line 616)
> 192.168.2.6: missed cmd(s): dir /all slavedisk2:,dir /all
> sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all
> disk2:,dir /all sec-bootflash:,s
> how spe version,dir /all slaveslot2:,dir /all disk0:,dir /all
> slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all
> slavenvram:,dir /all sec-disk2:,d
> ir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all
> harddiskb:,dir /all slavedisk1:,show module,show controllers,show
> diagbus,dir /all slavedisk0:,dir
> /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write
> term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all
> harddisk:,dir /all slot0
> :,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show
> controllers cbus,dir /all slaveslot1:,show running-config,show
> c7200,dir /all slot1:
> 192.168.2.6: End of run not found
> !
> =====================================
> Getting missed routers: round 1.
> 192.168.2.6: found unexpected command - "dir /all nvram:"
> write(spawn_id=1): broken pipe
>     while executing
> "send_user -- "$expect_out(buffer)""
>     invoked from within
> .
> .
> .
> .
> and so much more.
> 
> 
> > None the less I will check my script at work on monday and let you know.
> >
> > -Lance
> >
> > > -------- Original Message --------
> > > Subject: Re: [rancid] Recurring Diffs
> > > From: "Yousef Raffah" <yraffah at gmail.com>
> > > Date: Sun, August 19, 2007 1:54 am
> > > To: Lance <rancid at gheek.net>
> > > Cc: rancid-discuss at shrubbery.net
> > >
> > > On 8/19/07, Lance <rancid at gheek.net> wrote:
> > > > Yousef,
> > > >
> > > > I have attached a version of rancid that has all the dir statement
> > > > commented out. I will double check my own version when I get to work on
> > > > monday and see exactly what I have. I will let you know.
> > > >
> > > Thanks a lot for your help.
> > >
> > > > What error is in the logs? It should not effect any of the connection
> > > > scripts and if a command should fail the device will spit back and error
> > > > or wait for timeout then continue to the next command.
> > > >
> > > It gives this:
> > > The following routers have not been successfully contacted for
> > > more than 4 hours.
> > > -rw-r-----  1 rancid  netteam  16919 Aug 18 09:00 192.168.2.x
> > > -rw-r-----  1 rancid  netteam  16919 Aug 18 09:00 192.168.2.y
> > > -rw-r-----  1 rancid  netteam  16919 Aug 18 09:00 192.168.2.z
> > >
> > > It seems like it is affecting the connection scripts somehow!
> > >
> > > > > -------- Original Message --------
> > > > > Subject: Re: [rancid] Recurring Diffs
> > > > > From: "Yousef Raffah" <yraffah at gmail.com>
> > > > > Date: Sat, August 18, 2007 5:24 am
> > > > > To: Lance <rancid at gheek.net>
> > > > > Cc: rancid-discuss at shrubbery.net
> > > > >
> > > > > On 8/14/07, Lance <rancid at gheek.net> wrote:
> > > > > > Yousef,
> > > > > >
> > > > > > **NOTE**
> > > > > > In this email when I am talking about the application as a WHOLE is say
> > > > > > "RANCID". When I talk about files I will say something like "rancid"
> > > > > > "clogin" "rancid-cvs" etc. Hopefully this makes it easier to understand
> > > > > > what I am talking about.
> > > > > >
> > > > > > If you have the default you will have the follow as your install
> > > > > > location for the bin files of RANCID.
> > > > > >
> > > > > > /usr/local/rancid/bin/
> > > > > >
> > > > > > the file "rancid" in this directory is where you would make the changes.
> > > > > > The "rancid" file is a perl script that makes a system call to an expect
> > > > > > script "clogin". Open up the "rancid" file and do a search for "Main".
> > > > > > You will find below that there is a list of commands. If you are unsure
> > > > > > of what I am talking about send me your "rancid" file. This is a
> > > > > > specific script file that is one of many scripts that come with RANCID.
> > > > > >
> > > > >
> > > > > Dear Lance and group members,
> > > > >
> > > > > Once I comment/remove the line
> > > > > 'dir /all nvram:'       => "DirSlotN",
> > > > > rancid can't connect to ANY of my devices, it sends me this E-mail
> > > > >
> > > > > The following routers have not been successfully contacted for
> > > > > more than 4 hours.
> > > > > -rw-r-----  1 rancid  netteam  28495 Aug 18 09:00 192.168.10.6
> > > > >
> > > > > I have attached the rancid file I have, can someone tell me what is
> > > > > the correct line to comment?
> > > > >
> > > > > Thanks in advance for your great help...
> > > > >
> > > > >
> > > > >
> > > > > >
> > > > > > > -------- Original Message --------
> > > > > > > Subject: Re: [rancid] Recurring Diffs
> > > > > > > From: "Yousef Raffah" <yraffah at gmail.com>
> > > > > > > Date: Tue, August 14, 2007 6:02 am
> > > > > > > To: Lance <rancid at gheek.net>
> > > > > > > Cc: rancid-discuss at shrubbery.net
> > > > > > >
> > > > > > > I'm sorry Lance, do you mean /usr/local/bin/rancid-cvs ?
> > > > > > >
> > > > > > > I couldn't figure out what to comment in that file, can you please
> > > > > > > help me with that?
> > > > > > >
> > > > > > > Thanks in advance.
> > > > > > >
> > > > > > > On 8/13/07, Lance <rancid at gheek.net> wrote:
> > > > > > > > Yousef,
> > > > > > > >
> > > > > > > > edit your bin/rancid file. You will want to search for Main. There
> > > > > > > > should only be one thing that matches that. Comment out the command you
> > > > > > > > don't want to run.
> > > > > > > >
> > > > > > > > If that doesn't help you send me your rancid file I will comment it for
> > > > > > > > you.
> > > > > > > >
> > > > > > > > -lance
> > > > > > > >
> > > > > > > > > -------- Original Message --------
> > > > > > > > > Subject: Re: [rancid] Recurring Diffs
> > > > > > > > > From: "Yousef Raffah" <yraffah at gmail.com>
> > > > > > > > > Date: Sun, August 12, 2007 3:55 pm
> > > > > > > > > To: Lance <rancid at gheek.net>
> > > > > > > > > Cc: rancid-discuss at shrubbery.net
> > > > > > > > >
> > > > > > > > > On 8/12/07, Lance <rancid at gheek.net> wrote:
> > > > > > > > > > Yousef,
> > > > > > > > > >
> > > > > > > > > > Just my guess but probably due to some changes that the system is
> > > > > > > > > > tracking. I personally ignore the collection of this output. I just
> > > > > > > > > > comment out the command.
> > > > > > > > > >
> > > > > > > > > I'm sorry but which command to commend and where to comment it?
> > > > > > > > > Thanks in advance...
> > > > > > > > >
> > > > > > > > > > -Lance
> > > > > > > > > > > -------- Original Message --------
> > > > > > > > > > > Subject: [rancid]  Recurring Diffs
> > > > > > > > > > > From: "Yousef Raffah" <yraffah at gmail.com>
> > > > > > > > > > > Date: Sat, August 11, 2007 11:44 pm
> > > > > > > > > > > To: rancid-discuss at shrubbery.net
> > > > > > > > > > >
> > > > > > > > > > > Hello..
> > > > > > > > > > >
> > > > > > > > > > > I'm a new RANCID user who got really impressed by the project. Thanks
> > > > > > > > > > > a lot for creating such great tools.
> > > > > > > > > > >
> > > > > > > > > > > One little thing is bugging me though, one of my routers (6500) is
> > > > > > > > > > > giving me recurring diffs almost every hour. This is what it shows:
> > > > > > > > > > >
> > > > > > > > > > > @@ -28,10 +28,10 @@
> > > > > > > > > > >   !BootFlash: Configuration register is 0x2102
> > > > > > > > > > >   !
> > > > > > > > > > >   !Flash: 65536K bytes of Flash internal SIMM (Sector size 512K).
> > > > > > > > > > >   !Flash: Directory of flash:/
> > > > > > > > > > > - !Flash:     2  -rwx          36   Aug 11 2007 22:26:27  nv_hdr
> > > > > > > > > > >   !Flash:     3  -rwx        5804   Aug 08 2007 13:07:31  config.text
> > > > > > > > > > > + !Flash:     4  -rwx          36   Aug 11 2007 23:26:27  nv_hdr
> > > > > > > > > > >   !Flash: 1792000 bytes total (1784320 bytes free)
> > > > > > > > > > >   !
> > > > > > > > > > >   !Flash: nvram: Directory of nvram:/
> > > > > > > > > > >   !Flash: nvram:   513  -rw-        5804              <no date>  startup-config
> > > > > > > > > > >
> > > > > > > > > > > Why does nv_hdr change every hour? Any idea?
> > > > > > > > > > > I'm using rancind 2.3.1_2 on FreeBSD 6.2-RELEASE
> > > > > > > > > > >
> > > > > > > > > > > Thanks in advance for any help
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > >  -------------------
> > > > > > > > > > > |Yousef Raffah|
> > > > > > > > > > >  --------------------------------
> > > > > > > > > > >  http://yousef.raffah.com |
> > > > > > > > > > >  --------------------------------
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > Rancid-discuss mailing list
> > > > > > > > > > > Rancid-discuss at shrubbery.net
> > > > > > > > > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >  -------------------
> > > > > > > > > |Yousef Raffah|
> > > > > > > > >  --------------------------------
> > > > > > > > >  http://yousef.raffah.com |
> > > > > > > > >  --------------------------------
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >  -------------------
> > > > > > > |Yousef Raffah|
> > > > > > >  --------------------------------
> > > > > > >  http://yousef.raffah.com |
> > > > > > >  --------------------------------
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > >  -------------------
> > > > > |Yousef Raffah|
> > > > >  --------------------------------
> > > > >  http://yousef.raffah.com |
> > > > >  --------------------------------
> > > >
> > > >
> > >
> > >
> > > --
> > >  -------------------
> > > |Yousef Raffah|
> > >  --------------------------------
> > >  http://yousef.raffah.com |
> > >  --------------------------------
> >
> >
> 
> 
> -- 
>  -------------------
> |Yousef Raffah|
>  --------------------------------
>  http://yousef.raffah.com |
>  --------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rancid
Type: application/x-perl
Size: 51970 bytes
Desc: not available
Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070820/740ef22f/attachment.bin 


More information about the Rancid-discuss mailing list