<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Update, I found that the new f5rancid script couldn't find the "clogin" script, but now after adding the relative path, it looks like the script times out after issuing the second command in the command table. If I issue that command string in the CLI
myself exactly as shown, I see no problems.</div>
<div><br>
</div>
<div><br>
</div>
<div>*<span style="font-weight: bold; "> f5rancid</span>*</div>
<div>
<div>[rancid@mtv-lb001:Active:St./f5rancid -d mtv-lb001</div>
<div>executing clogin -t 90 -c "bigpipe version 2>&1" mtv-lb001</div>
<div>The F5 says to use tmsh, using tmsh command table for config collection.</div>
<div>executing clogin -t 90 -c "tmsh show /sys version;tmsh show /sys hardware;tmsh show /sys license;cat /config/ZebOS.conf;lsof -i :179;tmsh show /net route static;tmsh -q list" mtv-lb001</div>
<div>PROMPT MATCH: \[rancid@mtv-lb001:Active:Standalone\] ~ #</div>
<div>HIT COMMAND:[rancid@mtv-lb001:Active:Standalone] ~ # tmsh show /sys version</div>
<div> In ShowVersion: [rancid@mtv-lb001:Active:Standalone] ~ # tmsh show /sys version</div>
<div>HIT COMMAND:[rancid@mtv-lb001:Active:Standalone] ~ # tmsh show /sys hardware</div>
<div> In ShowHardware: [rancid@mtv-lb001:Active:Standalone] ~ # tmsh show /sys hardware</div>
<div><hangs here></div>
<div>^C</div>
<div>[rancid@sfo-admin007 bin]$ </div>
</div>
<div><br>
</div>
<div>*<span style="font-weight: bold; "> manual</span>* </div>
<div><br>
</div>
<div>
<div>[rancid@mtv-lb001:Active:Standalone] ~ # tmsh show /sys version;tmsh show /sys hardware</div>
<div><br>
</div>
<div>Sys::Version</div>
<div>Main Package</div>
<div> Product BIG-IP</div>
<div> Version 11.4.1</div>
<div> Build 625.0</div>
<div> Edition Hotfix HF1</div>
<div> Date Wed Oct 23 20:28:39 PDT 2013</div>
<div><br>
</div>
<div>Hotfix List</div>
<div>ID431391 ID433880 ID432225 ID431356 ID432140 ID425846</div>
<div>ID434970 ID429768 ID433863 ID424999 ID432746 ID424328</div>
<div>ID273176 ID429187 ID426874 ID426742 ID426929 ID432748</div>
<div>ID431393 ID427955 ID431744 ID430848 ID430551 ID421045</div>
<div>ID431900 ID428698 ID428700 ID432711 ID425090 ID428622</div>
<div>ID429127 ID419082 ID429580 ID420883 ID425603 ID432805</div>
<div>ID420335 ID427415 ID431742 ID431292 ID425003 ID431660</div>
<div>ID431212 ID420718 ID427673 ID428031 ID428843</div>
<div><br>
</div>
<div>Sys::Hardware</div>
<div>Chassis Fan Status</div>
<div> Index Status Fan Speed(rpm)</div>
<div> 1 up 9642</div>
<div> 2 up 10546</div>
<div> 3 up 9926</div>
</div>
<div> <snip></div>
<div><br>
</div>
<div>Thanks, Matt</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Matt Almgren <<a href="mailto:malmgren@skyfire.com">malmgren@skyfire.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, March 26, 2014 2:22 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>" <<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>><br>
<span style="font-weight:bold">Subject: </span>Is there a working f5rancid script for 10.1 and 11.4 ?<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; ">
<div style="font-family: Calibri, sans-serif; ">Hi all, I'm looking for a working f5rancid script for the following:</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">We have a mix of f5 devices that are running either 10.1/10.2(bigpipe) or 11.4 (tmsh). Our configured "rancid" user is logging in via TACACS and is dropped into the advanced shell. Using the original f5rancid
script, of course there's no tmsh commands, so it fails for the 11.4 devices. So I downloaded the latest f5rancid script from the github repo here: <a href="https://github.com/dotwaffle/rancid-git/blob/master/bin/f5rancid.in">https://github.com/dotwaffle/rancid-git/blob/master/bin/f5rancid.in</a>,
which has tmsh commands in it, but it doesn't work as I think it should and brings up more questions.</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">When I run the f5rancid script manually I see that it doesn't look like it's choosing the tmsh commands. Is there something I am missing to tell it to use tmsh? I would think it can grok that from the command
prompt, but I'm not sure of the logic. I tried looking at the f5rancid script and I see where it's supposed to make the choice, but my perl skills suck.</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div>
<div><font face="Courier">[rancid@sfo-admin007 bin]$ ./f5rancid -d mtv-lb001</font></div>
<div><font face="Courier">executing clogin -t 90 -c "bigpipe version 2>&1" mtv-lb001</font></div>
<div><font face="Courier">executing clogin -t 90 -c "bigpipe version;bigpipe platform;cat /config/bigip.license;bigpipe monitor list all;bigpipe profile list;bigpipe base list;bigpipe db show;bigpipe route static show;bigpipe list" mtv-lb001</font></div>
<div><font face="Courier">sh: clogin: command not found</font></div>
<div><font face="Courier">mtv-lb001: missed cmd(s): bigpipe route static show,bigpipe base list,cat /config/bigip.license,bigpipe platform,bigpipe db show,bigpipe monitor list all,bigpipe version,bigpipe profile list,bigpipe list</font></div>
<div><font face="Courier">mtv-lb001: missed cmd(s): bigpipe route static show,bigpipe base list,cat /config/bigip.license,bigpipe platform,bigpipe db show,bigpipe monitor list all,bigpipe version,bigpipe profile list,bigpipe list</font></div>
<div><font face="Courier">mtv-lb001: End of run not found</font></div>
<div><font face="Courier">mtv-lb001: End of run not found</font></div>
<div><font face="Courier">#</font></div>
<div><font face="Courier">[rancid@sfo-admin007 bin]$ </font></div>
</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">Clogin shows that it is able to login and lands in the advanced shell:</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">
<div>[rancid@sfo-admin007 root]$ /usr/local/rancid/bin/clogin mtv-lb001</div>
<div>mtv-lb001</div>
<div>spawn ssh -c 3des -x -l rancid mtv-lb001</div>
<div>Password: </div>
<div>Last login: Wed Mar 26 13:58:46 2014 from 10.102.128.27</div>
<div>[rancid@mtv-lb001:Active:Standalone] ~ # </div>
</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">Anyone got a working f5 script and brief README they can share with me? </div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">Thanks, Matt</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">
<div>
<div>
<div><b>-- </b></div>
<div><b>Matt Almgren </b>| Sr. Network Engineer</div>
<div><span style="font-size: 11.5pt; ">779 Evelyn Ave, Suite 200</span></div>
<div><span style="font-size: 11.5pt; ">Mountain View, CA 94041</span></div>
</div>
<div>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">Mobile: 408.499.9669</p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><img src="cid:1CFB777E-88E3-4BCE-BCDD-3AB882F248DB" type="image/png"></p>
</div>
</div>
</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
</div>
</div>
</span><br>
<hr>
<font face="Arial" color="Black" size="2">This message is being sent by Skyfire Labs. It is intended exclusively for the individuals and entities to which it is addressed. This communication, including any attachments, may contain information that is proprietary,
privileged, confidential, or otherwise subject to restrictions on disclosure pursuant to applicable law. If you are not the named addressee, you are not authorized to read, print, retain copy or disseminate this message or any part of it. If you have received
this message in error, please notify the sender immediately by email and delete all copies of this message. This message is protected by applicable legal privileges and is confidential.<br>
</font>
</body>
</html>