Discussion:
[rancid] Debug Rancid
Scott Huffman
2008-04-14 20:09:48 UTC
Permalink
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
Lance Vermilion
2008-04-14 20:44:51 UTC
Permalink
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.
Post by Scott Huffman
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
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:~ $
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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Scott Huffman
2008-04-15 14:24:42 UTC
Permalink
The jlogin works fine, the jrancid -d doesn't do anything, just hangs. I
don't see any logs either when I run just the jrancid -d. I believe it is a
CVS issue, but not sure.
Post by Lance Vermilion
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.
Post by Scott Huffman
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
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:~ $
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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...