<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</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;">
<div>
<div>
<div style="font-family: Calibri, sans-serif;">Well, I had thought I had fixed this, but it was just not running for our f5s for a while. Oopps.</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">Anyway, my perl-fu isn’t very good. Can someone quickly tell me what I need to change in this code to remove the fan speed(rpm) values from the output below:</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div>
<div><font face="Courier">## $Id: f5rancid.in 2279 2011-01-31 22:41:00Z heas $</font></div>
</div>
<div><font face="Courier"><br>
</font></div>
<div>
<div><font face="Courier">sub ShowHardware {</font></div>
<div><font face="Courier"> print STDERR " In ShowHardware: $_" if ($debug);</font></div>
<div><font face="Courier"><br>
</font></div>
<div><font face="Courier"> while (<INPUT>) {</font></div>
<div><font face="Courier"> tr/\015//d;</font></div>
<div><font face="Courier"> last if (/^$prompt/);</font></div>
<div><font face="Courier"> next if (/^(\s*|\s*$cmd\s*)$/);</font></div>
<div><font face="Courier"> return(1) if /^\s*\^\s*$/;</font></div>
<div><font face="Courier"> return(1) if /(Invalid input detected|Type help or )/;</font></div>
<div><font face="Courier"> return(-1) if (/command authorization failed/i);</font></div>
<div><font face="Courier"><br>
</font></div>
<div><font face="Courier"> s/\d+rpm//ig;</font></div>
<div><font face="Courier"> s/^\|//;</font></div>
<div><font face="Courier"> s/^\ \ ([0-9]+)(\ +).*up.*[0-9]/ $1$2up REMOVED/i;</font></div>
<div><font face="Courier"> s/^\ \ ([0-9]+)(\ +).*Air\ Inlet/ $1$2REMOVED Air Inlet/i;</font></div>
<div><font face="Courier"> s/^\ \ ([0-9]+)(\ +).*HSBe/ $1$2REMOVED HSBe/i;</font></div>
<div><font face="Courier"> s/^\ \ ([0-9]+)(\ +).*TMP421 on die/ $1$2REMOVED TMP421 on die/i;</font></div>
<div><font face="Courier"> s/^\ \ ([0-9]+)(\ +)[0-9]+\ +[0-9]+ +[0-9]+/ $1$2REMOVED REMOVED REMOVED/;</font></div>
<div><font face="Courier"> /Type: / && ProcessHistory("COMMENTS","keysort","A0",</font></div>
<div><font face="Courier"> "#Chassis type: $'");</font></div>
<div><font face="Courier"><br>
</font></div>
<div><font face="Courier"> ProcessHistory("COMMENTS","keysort","B1","#$_") && next;</font></div>
<div><font face="Courier"> }</font></div>
<div><font face="Courier"> return(0);</font></div>
<div><font face="Courier">}</font></div>
</div>
<div><font face="Courier"><br>
</font></div>
<div>
<div><font face="Courier">[user@mt-lb03:Active:In Sync] ~ # tmsh show sys hardware</font></div>
<div><font face="Courier"><br>
</font></div>
<div><font face="Courier">Sys::Hardware</font></div>
<div><font face="Courier">Chassis Fan Status</font></div>
<div><font face="Courier"> Index Status Low Limit(rpm) Fan Speed(rpm)</font></div>
<div><font face="Courier"> 1 up 3000 10227</font></div>
<div><font face="Courier"> 2 up 3000 10887</font></div>
<div><font face="Courier"> 3 up 3000 10546</font></div>
<div><font face="Courier"><br>
</font></div>
<div><font face="Courier">Chassis Information</font></div>
<div><font face="Courier"> Maximum MAC Count 2</font></div>
<div><font face="Courier"> Registration Key -</font></div>
<div><font face="Courier"><br>
</font></div>
<div><font face="Courier">Chassis Power Supply Status</font></div>
<div><font face="Courier"> Index Status Current</font></div>
<div><font face="Courier"> 1 up NA</font></div>
<div><font face="Courier"> 2 not-present NA</font></div>
<div><font face="Courier"><br>
</font></div>
<div><font face="Courier">Chassis Temperature Status</font></div>
<div><font face="Courier"> Index Lo Limit(C) Temp(degC) Hi Limit(C) Location</font></div>
<div><font face="Courier"> 1 5 22 55 Air Inlet</font></div>
</div>
<div><font face="Courier"><snip></font></div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">If there’s a more updated f5rancid that fully supports TMSH on 11.6.0 HF3, I’d love to have a copy.</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;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>