Discussion:
[rancid] f5rancid.in how to ? (TMSH on BigIP)
tom gilmore
2014-01-10 17:05:00 UTC
Permalink
I have been trying to get f5rancid to collect configs from our BigIP boxes.
They are running BigIP version 11.0
I have download several f5rancid.in patches,, but none of them seem to work.
the most common error that I see is "command' not found when I attempt to
run ./f5rancidin -d x.x.x.x
I can see the @commandtable has the correct list of commands that can
collect information from me ,, but I cannot get the script to work.

for example,, I downloaded this patch found under gossemer threads
http://www.gossamer-threads.com/lists/engine?do=post_attachment;postatt_id=255;list=rancid

but when I run the script,, I get these errors
(essentially the first 50 lines of f5rancid.in are commented out,, so
"command not found" is seen on line 51
******************************
./f5rancid -d 10.232.96.14
: command not found
: command not found
./f5rancid: line 51: use: command not found
: command not found:
./f5rancid: line 52: syntax error near unexpected token `'dflV''
'/f5rancid: line 52: `getopts('dflV');
*******************************

Line 51 says "use Getopt::Std;"
Line 52 -55 says
getopts('dflV');
if ($opt_V) {
print "@PACKAGE@ @VERSION@\n";
exit(0);
}
Alan McKinnon
2014-01-11 23:37:02 UTC
Permalink
Post by tom gilmore
I have been trying to get f5rancid to collect configs from our BigIP
boxes. They are running BigIP version 11.0
I have download several f5rancid.in patches,, but none of them seem to work.
the most common error that I see is "command' not found when I attempt
to run ./f5rancidin -d x.x.x.x
collect information from me ,, but I cannot get the script to work.
for example,, I downloaded this patch found under gossemer threads
http://www.gossamer-threads.com/lists/engine?do=post_attachment;postatt_id=255;list=rancid
but when I run the script,, I get these errors
(essentially the first 50 lines of f5rancid.in are commented out,, so
"command not found" is seen on line 51
******************************
./f5rancid -d 10.232.96.14
: command not found
: command not found
./f5rancid: line 51: use: command not found
./f5rancid: line 52: syntax error near unexpected token `'dflV''
'/f5rancid: line 52: `getopts('dflV');
*******************************
Line 51 says "use Getopt::Std;"
Line 52 -55 says
getopts('dflV');
if ($opt_V) {
exit(0);
}
install GetOpt::Std

It's a perl module and it's missing on your system.

This is a package manager problem and is solved there; it is not caused
by rancid. All the subsequent syntax errors are caused by that module
being missing, so the perl interpreter has no idea what to do
--
Alan McKinnon
***@gmail.com
Loading...