[rancid] Re: f5 bigIP part 2
kenneth.w.sain at accenture.com
kenneth.w.sain at accenture.com
Tue Feb 3 21:50:42 UTC 2009
Hrm, I already hardcoded clogin to provide vt100, just like the other
poster in the URL I provided. And I've confirmed that it works via a
bin/clogin bigip01.
$ bin/clogin bigip01
bigip01
spawn ssh -c 3des -x -l admin bigip01
admin at bigip01's password:
Last login: Tue Feb 3 16:44:12 2009 from
<login splash screen deleted>
Terminal type? [xterm] vt100
Terminal type is vt100.
bigip01:~#
bigip01:~#
For testing, I removed the two ls check commands, and re-ran sh -x
bin/control-rancid. Still hangs up on the par line.
+ echo Trying to get all of the configs.
Trying to get all of the configs.
+ par -q -n 5 -c rancid-fe {}
//usr/home/rancid/var/SSRC_test//routers.up
bigip01: missed cmd(s): bigpipe monitor list all
Any other ideas?
Ken Sain
________________________________
From: Mike Ashcraft [mailto:mashcraft at omniture.com]
Sent: Tuesday, February 03, 2009 4:38 PM
To: Sain, Kenneth W.; rancid-discuss at shrubbery.net
Subject: RE: f5 bigIP part 2
Looks rancid is not setting the term type properly on the F5.
Two options:
If you don't terminate SSL connections on the F5 (Or don't want rancid
to track ssl certificate changes) drop those two ls commands from
f5rancid.
Fix rancid to set the term type on the F5 to vt100.
Mike
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of
kenneth.w.sain at accenture.com
Sent: Tuesday, February 03, 2009 2:10 PM
To: rancid-discuss at shrubbery.net
Subject: [rancid] f5 bigIP part 2
Using rancid--2.3.2a9 on freebsd 7.1, I can successfully clogin into the
device.
Getting anything off the device via bin/rancid or bin/control-rancid is
another story. I'm getting timeout errors and I've tried timeouts of
180s and 300s. Neither of which change the outcome. I did have to
tweak bin/clogin to fix an issue from this post:
http://www.shrubbery.net/pipermail/rancid-discuss/2007-August/002437.htm
l.
I'm using the defined f5 device type in router.db. Any ideas? Below is
a sh -x output from control_rancid on my defined network list.
sh -x bin/control_rancid /usr/home/rancid/var/SSRC_test/
+ alt_mailrcpt=0
+ [ 1 -ge 1 ]
+ [ 1 ]
+ break
+ [ 1 -lt 1 ]
+ GROUP=/usr/home/rancid/var/SSRC_test/
+ DIR=//usr/home/rancid/var/SSRC_test/
+ TMP=/tmp/rancid./usr/home/rancid/var/SSRC_test/.39201
+ trap rm -fr $TMP; 1 2 15
+ unset noclobber
+ RCSSYS=cvs
+ [ cvs != cvs -a cvs != svn ]
+ mailrcpt=rancid-/usr/home/rancid/var/SSRC_test/
+ export mailrcpt
+ adminmailrcpt=rancid-admin-/usr/home/rancid/var/SSRC_test/
+ export adminmailrcpt
+ set
+ grep MAILHEADERS=
+ [ 1 -ne 0 ]
+ MAILHEADERS=Precedence: bulk\n
+ export MAILHEADERS
+ PAR_COUNT=5
+ MAX_ROUNDS=4
+ [ 4 -lt 1 ]
+ [ ! -d //usr/home/rancid/var/SSRC_test/ ]
+ cd //usr/home/rancid/var/SSRC_test/
+ [ ! -f .cvsignore ]
+ cvs update router.db
bin/control_rancid: cannot create
/tmp/rancid./usr/home/rancid/var/SSRC_test/.39201: No such file or
directory
+ grep ^C /tmp/rancid./usr/home/rancid/var/SSRC_test/.39201
grep: /tmp/rancid./usr/home/rancid/var/SSRC_test/.39201: No such file or
directory
+ [ 2 -eq 0 ]
+ rm -f /tmp/rancid./usr/home/rancid/var/SSRC_test/.39201
+ [ ! -f //usr/home/rancid/var/SSRC_test//router.db ]
+ cd //usr/home/rancid/var/SSRC_test/
+ trap rm -fr routers.db routers.all.new routers.down.new routers.up.new
\
routers.mail routers.added routers.deleted $TMP; 1 2 15
+ sed -e /^#/d -e s/^ *// -e s/ *$// -e s/ *: */:/g router.db
+ sort -u
+ cut -d: -f1,2 routers.db
+ [ ! -f routers.all ]
+ diff -u -4 routers.all routers.all.new
+ RALL=0
+ perl5 -F: -ane {($F[0] =~ tr at A-Z@a-z@,print $_)
if ($F[2] !~ /^up$/i);} routers.db
+ [ ! -f routers.down ]
+ diff -u -4 routers.down routers.down.new
+ RDOWN=0
+ perl5 -F: -ane {($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n")
if ($F[2] =~ /^up$/i);} routers.db
+ [ ! -f routers.up ]
+ diff -u -4 routers.up routers.up.new
+ RUP=0
+ [ 0 -ne 0 -o 0 -ne 0 -o 0 -ne 0 ]
+ mv -f routers.all.new routers.all
+ [ 0 -ne 0 ]
+ mv -f routers.down.new routers.down
+ [ 0 -ne 0 ]
+ mv -f routers.up.new routers.up
+ [ 0 -ne 0 ]
+ rm -f routers.db
+ trap rm -fr $TMP; 1 2 15
+ cd //usr/home/rancid/var/SSRC_test//configs
+ cut -d: -f1 ../routers.up
+ [ cvs = cvs ]
+ cvs status bigip01
+ grep -i status: unknown
+ [ 1 -eq 0 ]
+ [ cvs = cvs ]
+ cvs status ns50
+ grep -i status: unknown
+ [ 1 -eq 0 ]
+ [ cvs = cvs ]
+ cvs status swt01
+ grep -i status: unknown
+ [ 1 -eq 0 ]
+ [ cvs = cvs ]
+ cvs status swt02
+ grep -i status: unknown
+ [ 1 -eq 0 ]
+ echo
+ find . ( -name *.new -prune -o -name CVS -prune -o -name .svn -prune )
-o -type f -print
+ sed -e s/^.\///
+ grep -i ^ns50: ../router.db
+ [ 0 -eq 1 ]
+ grep -i ^swt01: ../router.db
+ [ 0 -eq 1 ]
+ grep -i ^swt02: ../router.db
+ [ 0 -eq 1 ]
+ grep -i ^bigip01: ../router.db
+ [ 0 -eq 1 ]
+ cd //usr/home/rancid/var/SSRC_test/
+ [ ! -s routers.up ]
+ [ X != X ]
+ devlistfile=//usr/home/rancid/var/SSRC_test//routers.up
+ cd //usr/home/rancid/var/SSRC_test//configs
+ echo
+ echo Trying to get all of the configs.
Trying to get all of the configs.
+ par -q -n 5 -c rancid-fe {}
//usr/home/rancid/var/SSRC_test//routers.up
bigip01: missed cmd(s): ls --full-time --color=never
/config/ssl/ssl.crt,bigpipe route static show,bigpipe base list,bigpipe
db show,bigpipe monitor list all,ls --full-time --color=never
/config/ssl/ssl.key,bigpipe profile list,bigpipe list
bigip01: End of run not found
# Error: TIMEOUT reached
Ken Sain
Accenture @ MyFloridaMarketPlace
(850) 414-7580 (office)
(850) 508-4227 (cell)
kensainwork on Yahoo/AOL IM
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090203/c1bd10a4/attachment.html
More information about the Rancid-discuss
mailing list