Discussion:
[rancid] Log Files
Scott Huffman
2008-04-18 15:36:52 UTC
Permalink
Any thoughts on these logs? The error continues to repeat. I think this is
why my rancid is hanging.

Rancid:~ dtidelaware$ cat
/opt/local/var/rancid/logs/jrouters.20080416.233000 | more
starting: Wed Apr 16 23:30:00 EDT 2008

Trying to get all of the configs.
/opt/local/libexec/rancid/jrancid: line 28: use: command not found
/opt/local/libexec/rancid/jrancid: line 28: use: command not found
/opt/local/libexec/rancid/jrancid: line 28: use: command not found
/opt/local/libexec/rancid/jrancid: line 28: use: command not found
/opt/local/libexec/rancid/jrancid: line 29: syntax error near unexpected
token `
'dfl''
/opt/local/libexec/rancid/jrancid: line 29: `getopts('dfl');'
/opt/local/libexec/rancid/jrancid: line 29: syntax error near unexpected
token `
'dfl''
/opt/local/libexec/rancid/jrancid: line 29: `getopts('dfl');'
/opt/local/libexec/rancid/jrancid: line 29: syntax error near unexpected
token `
'dfl''



#JRancid file------------------------------------------

use Getopt::Std; <---------------- Line 28
getopts('dfl'); <---------------- Line 29

$debug = $opt_d;
$log = $opt_l;
$file = $opt_f;
$host = $ARGV[0];

-------------------------------------------------------------
Austin Schutz
2008-04-18 20:05:12 UTC
Permalink
jrancid is missing the path to the perl interpreter at the top
of the file. It looks like something weird happened when you installed
rancid- maybe couldn't find the interpreter but didnt' stop installing.

Austin
Post by Scott Huffman
Any thoughts on these logs? The error continues to repeat. I think this is
why my rancid is hanging.
Rancid:~ dtidelaware$ cat
/opt/local/var/rancid/logs/jrouters.20080416.233000 | more
starting: Wed Apr 16 23:30:00 EDT 2008
Trying to get all of the configs.
/opt/local/libexec/rancid/jrancid: line 28: use: command not found
/opt/local/libexec/rancid/jrancid: line 28: use: command not found
/opt/local/libexec/rancid/jrancid: line 28: use: command not found
/opt/local/libexec/rancid/jrancid: line 28: use: command not found
/opt/local/libexec/rancid/jrancid: line 29: syntax error near unexpected
token `
'dfl''
/opt/local/libexec/rancid/jrancid: line 29: `getopts('dfl');'
/opt/local/libexec/rancid/jrancid: line 29: syntax error near unexpected
token `
'dfl''
/opt/local/libexec/rancid/jrancid: line 29: `getopts('dfl');'
/opt/local/libexec/rancid/jrancid: line 29: syntax error near unexpected
token `
'dfl''
#JRancid file------------------------------------------
use Getopt::Std; <---------------- Line 28
getopts('dfl'); <---------------- Line 29
$debug = $opt_d;
$log = $opt_l;
$file = $opt_f;
$host = $ARGV[0];
-------------------------------------------------------------
!DSPAM:4808c186173864550419146!
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
!DSPAM:4808c186173864550419146!
Austin Schutz
2008-04-18 20:10:41 UTC
Permalink
Post by Austin Schutz
jrancid is missing the path to the perl interpreter at the top
of the file. It looks like something weird happened when you installed
rancid- maybe couldn't find the interpreter but didnt' stop installing.
Oh- the fix- put #!/usr/bin/perl (or wherever your perl is) as the
very first line of jrancid.

Austin
Scott Huffman
2008-04-19 19:23:49 UTC
Permalink
Sounds great, I will give that a try monday when I go in. I was editing the
jrancid file to try adding the "show log messages" command. Apparently
somewhere in my editing I deleted that line.
Thanks
Scott
Post by Austin Schutz
Post by Austin Schutz
jrancid is missing the path to the perl interpreter at the top
of the file. It looks like something weird happened when you installed
rancid- maybe couldn't find the interpreter but didnt' stop installing.
Oh- the fix- put #!/usr/bin/perl (or wherever your perl is) as the
very first line of jrancid.
Austin
Scott Huffman
2008-04-21 18:15:31 UTC
Permalink
Rancid actually runs and completes now. However new routers I added to the
router.db are being completly skipped. I tried running rancid-run -r
routernam, it completes, but the log shows nothing.


Rancid:~ $ cat /opt/local/var/rancid/logs/jrouters.20080421.135735
starting: Mon Apr 21 13:57:35 EDT 2008



ending: Mon Apr 21 13:57:37 EDT 2008

Any suggestions how to debug this farther? The -d flag doesn't seem to work
for rancid-run.
Thanks
Scott
Post by Scott Huffman
Sounds great, I will give that a try monday when I go in. I was editing
the jrancid file to try adding the "show log messages" command. Apparently
somewhere in my editing I deleted that line.
Thanks
Scott
Post by Austin Schutz
Post by Austin Schutz
jrancid is missing the path to the perl interpreter at the top
of the file. It looks like something weird happened when you installed
rancid- maybe couldn't find the interpreter but didnt' stop
installing.
Oh- the fix- put #!/usr/bin/perl (or wherever your perl is) as the
very first line of jrancid.
Austin
Loading...