diff options
author | Tar Committer <tar@ocjtech.us> | 2004-06-06 04:12:54 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2004-06-06 04:12:54 +0000 |
commit | 654a4573f8fd2b1109e0ded8d9ce061dd3a2093f (patch) | |
tree | e1d9f6fdea04a52f7cfcdc1b3ddf9d49046d20df /bin/jrancid.in | |
parent | 381d322caf5928732f3d478d80e70acfccd67f99 (diff) | |
download | rancid-654a4573f8fd2b1109e0ded8d9ce061dd3a2093f.tar.gz rancid-654a4573f8fd2b1109e0ded8d9ce061dd3a2093f.tar.xz rancid-654a4573f8fd2b1109e0ded8d9ce061dd3a2093f.zip |
Imported from rancid-2.3.1.tar.gz.rancid-2.3.1
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; |