diff options
Diffstat (limited to 'bin/jrancid.in')
-rw-r--r-- | bin/jrancid.in | 8 |
1 files changed, 7 insertions, 1 deletions
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<removed>$'"); next; } + if (/(\s*md5 \d+ key )[^ ;]+/ && $filter_pwds >= 1) { + ProcessHistory("","","","#$1<removed>$'"); + next; + } if (/(\s*hello-authentication-key )[^ ;]+/ && $filter_pwds >= 1) { ProcessHistory("","","","#$1<removed>$'"); next; |