[rancid] Show tech on latest Procurve software
Doug Hughes
doug.hughes at keystonenap.com
Tue Feb 20 18:14:13 UTC 2018
On 2/20/2018 1:10 PM, heasley wrote:
> Tue, Feb 20, 2018 at 09:46:21AM +0100, Aleksander Vines:
>> That worked perfectly. Thanks for the fast reply.
>>
>>
>> For reference, if anyone else have issues with new procurve software, this is what I added:
>>
>>
>>
>> # This routine parses "show tech transceivers"
>> sub ShowTechTransceivers {
>> ...
>> while (<INPUT>) {
>> ...
>> # These next two lines are new
>> 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]/);
>> next if (/show time/);
>> next if (/^(\s*|\s*$cmd\s*)$/);
>> ...
>> }
>>
>>
>> Thanks,
>> Aleksander Vines
>>
> Would someone confirm that these filters work:
>
> Index: bin/hrancid.in
> ===================================================================
> --- bin/hrancid.in (revision 3760)
> +++ bin/hrancid.in (working copy)
> @@ -203,6 +203,9 @@
> }
> next;
> }
> + # KB.16.05.0003 5406R firmware bug
> + next if (/^\s*show time\s*$/i);
> + next if (/^\s*\S{3} \S{3}\s+\d+\s+\d+:\d+:\d+\s+\d+\s*$/);
>
> ProcessHistory("COMMENTS","keysort","G0",";$_");
My HPs aren't new enough to show the time field.
But it looks innocuous enough.
--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20180220/ea0d06f5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keystone-nap.png
Type: image/png
Size: 3476 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20180220/ea0d06f5/attachment.png>
More information about the Rancid-discuss
mailing list