From 654a4573f8fd2b1109e0ded8d9ce061dd3a2093f Mon Sep 17 00:00:00 2001 From: Tar Committer Date: Sun, 6 Jun 2004 04:12:54 +0000 Subject: Imported from rancid-2.3.1.tar.gz. --- bin/jrancid.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin/jrancid.in') diff --git a/bin/jrancid.in b/bin/jrancid.in index 1217931..b05feb8 100644 --- a/bin/jrancid.in +++ b/bin/jrancid.in @@ -1,6 +1,6 @@ #! @PERLV_PATH@ ## -## $Id: jrancid.in,v 1.59 2004/03/11 23:58:59 heas Exp $ +## $Id: jrancid.in,v 1.61 2004/06/05 04:02:08 asp Exp $ ## ## Copyright (C) 1997-2004 by Terrapin Communications, Inc. ## All rights reserved. @@ -322,6 +322,7 @@ sub ShowChassisSCB { /^\s+\^/ && return; /syntax error/ && return; / Temperature/ && next; + / temperature/ && next; / utilization/ && next; / Start time/ && next; / Uptime/ && next; @@ -424,6 +425,7 @@ sub ShowConfiguration { /^version .*;\d+$/ && return(-1); s/ # SECRET-DATA$//; + s/ ## SECRET-DATA$//; # filter snmp community, when in snmp { stanza } /^snmp/ && $snmp++; /^}/ && ($snmp = 0); @@ -436,6 +438,10 @@ sub ShowConfiguration { ProcessHistory("","","","#$1$'"); next; } + if (/(\s*md5 \d+ key )[^ ;]+/ && $filter_pwds >= 1) { + ProcessHistory("","","","#$1$'"); + next; + } if (/(\s*hello-authentication-key )[^ ;]+/ && $filter_pwds >= 1) { ProcessHistory("","","","#$1$'"); next; -- cgit