[rancid] Re: Debug Rancid
Lance Vermilion
rancid at gheek.net
Mon Apr 14 20:44:51 UTC 2008
you would need to run the rancid script with the debug flag set. don't run
rancid-run.
jrancid -d
or
jlogin -d
Assuming those scripts support that.
On Mon, Apr 14, 2008 at 1:09 PM, Scott Huffman <wshuffman2 at gmail.com> wrote:
> Is there a way to get more detailed logs out of rancid-run?
>
> I was trying to edit the jrancid file to add "show log messages" and now I
> have rancid in a state where it won't run. I have tried restoring
> everything back to where I started but it doesn't seem to work. Rancid-run
> now just hangs when running it manually.
>
> I have tried setting all the devices down in router.db, but it still tries
> to access all the routers for some reason. When I run it, I get this in my
> processes:
>
>
> Rancid:~ $ ps -A | grep rancid
> 237 p0 S+ 0:00.02 /bin/sh /opt/local/bin/rancid-run
> 238 p0 S+ 0:00.01 /bin/sh /opt/local/bin/rancid-run
> 242 p0 S+ 0:00.11 /bin/sh /opt/local/libexec/rancid/control_rancid
> jrou
> 353 p0 S+ 0:00.03 /opt/local/bin/perl
> /opt/local/libexec/rancid/par -q
> 354 p0 S+ 0:00.01 sh -c (rancid-fe \Accent-m20-re1:juniper)
> 355 p0 S+ 0:00.01 sh -c (rancid-fe \Barracuda-m40e-re1:juniper)
> 356 p0 S+ 0:00.01 sh -c (rancid-fe \Barracuda-m7i-backup:juniper)
> 357 p0 S+ 0:00.01 sh -c (rancid-fe \Barracuda-t320:juniper)
> 358 p0 S+ 0:00.01 sh -c (rancid-fe \Mustang-m7i:juniper)
> 359 p0 S+ 0:00.01 sh /opt/local/libexec/rancid/jrancid
> Accent-m20-re1
> 360 p0 S+ 0:00.01 sh /opt/local/libexec/rancid/jrancid
> Barracuda-m40e-re1
> 361 p0 S+ 0:00.01 sh /opt/local/libexec/rancid/jrancid
> Barracuda-m7i-backup
> 362 p0 S+ 0:00.01 sh /opt/local/libexec/rancid/jrancid
> Barracuda-t320
> 363 p0 S+ 0:00.01 sh /opt/local/libexec/rancid/jrancid Mustang-m7i
> 408 p1 R+ 0:00.00 grep rancid
> Rancid:~ $
>
> And this for logs:
>
>
> Rancid:~ $ cat /opt/local/var/rancid/logs/jrouters.20080414.151921
> starting: Mon Apr 14 15:19:21 EDT 2008
>
>
>
> Trying to get all of the configs.
> Rancid:~ $
>
> Any suggestions would be greatly appreciated
> Thanks
> Scott
>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20080414/c05c2a3a/attachment.html
More information about the Rancid-discuss
mailing list