<html><head></head><body>That worked perfectly. Thanks for the fast reply.<div><br></div><div>For reference, if anyone else have issues with new procurve software, this is what I added:</div><div><br></div><div><div># This routine parses "show tech transceivers"</div><div>sub ShowTechTransceivers {</div><div>    ...</div><div>    while (<INPUT>) {</div><div>        ...</div><div><i>        # These next two lines are new</i></div><div><i>        next if (/[A-Z][a-z][a-z] [A-Z][a-z][a-z] [0-9]+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] 20[0-9][0-9]/);</i></div><div><i>        next if (/show time/);</i></div><div>        next if (/^(\s*|\s*$cmd\s*)$/);</div><div>        ...</div><div>}</div></div><div><br></div><div>Thanks,</div><div>Aleksander Vines<br><br><br><br><div><strong>
From:
</strong>
 
Doug Hughes <doug.hughes@keystonenap.com>
<br>
<strong>
To:
</strong>
 
<rancid-discuss@shrubbery.net>
<br>
<strong>
Sent:
 
</strong>
2018-02-19 18:06
<br>
<strong>
Subject:
</strong>
 
Re: [rancid] Show tech on latest Procurve software
<br><br><blockquote class="mori" style="margin:0 0 0 .8ex;border-left:1px solid #CCC;padding-left:1ex;"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
    <p>Yes, it's fairly easy to filter out individual lines by editing
      the filter inside the perl scripts to make them go away. I have
      done this many, many times. The only trick is that when you
      upgrade you might lose your change, so save a copy or diff that
      you can re-apply later.</p>
    <p>In this case, the place where you'd put the filter is in
      ~rancid/bin/hrancid in the routine "ShowTechTransceivers"</p>
    <p>Right at the top where it has 'next if (...)'</p>
    <p>either above or below that you can add a line that says something
      like next if (/thing I want to match here/) which will skip that
      line.</p>
    <p><br>
    </p>
    <div class="mcntmoz-cite-prefix">On 2/19/2018 9:12 AM, Aleksander Vines
      wrote:<br>
    </div>
    <blockquote type="cite">Hi
      all,
      <div><br>
      </div>
      <div>Is there a way of altering the output of rancid, or which
        commands it runs, or how the 'diff'ing' works?</div>
      <div><br>
      </div>
      <div>We seem to have a problem with the latest hp software, where
        'show tech transceivers' seems to include a call to 'show time'.
        Hence it notices a diff in the output timestamp and and it's
        fairly annoying if you actually want to keep track of changes. </div>
      <div><br>
      </div>
      <div>Ref. <a class="mcntmoz-txt-link-freetext" href="https://community.hpe.com/t5/ProCurve-ProVision-Based/Command-behavior-change-in-KB-16-05-0003-5406R-firmware/td-p/6992013" target="_blank">https://community.hpe.com/t5/ProCurve-ProVision-Based/Command-behavior-change-in-KB-16-05-0003-5406R-firmware/td-p/6992013</a></div>
      <div><br>
      </div>
      <div>Regards,</div>
      <div>Aleksander Vines</div>
      <br>
      <fieldset class="mcntmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Rancid-discuss mailing list
<a class="mailto moz-txt-link-abbreviated" href="mailto:Rancid-discuss@shrubbery.net" title="Send email to Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a>
<a class="mcntmoz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a></pre>
    </blockquote>
    <br>
    <div class="mcntmoz-signature">-- <br>
      <table>
        <tbody>
          <tr>
            <td style="padding-left: 20px" width="90%">Doug Hughes<br>
              Keystone NAP<br>
              Fairless Hills, PA<br>
              1.844.KEYBLOCK (539.2562)</td>
            <td style="align: right;padding-right: 20px"><img src="cid:part1.7FF81848.002D0C96@keystonenap.com">
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  

</div><br><br>_______________________________________________
<br>Rancid-discuss mailing list
<br>Rancid-discuss@shrubbery.net
<br>http://www.shrubbery.net/mailman/listinfo/rancid-discuss</blockquote></div></div></body></html>