diff options
Diffstat (limited to 'bin/jrancid')
-rwxr-xr-x | bin/jrancid | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/jrancid b/bin/jrancid index efc8465..ea158bf 100755 --- a/bin/jrancid +++ b/bin/jrancid @@ -177,6 +177,8 @@ sub ShowChassisEnvironment { ProcessHistory("","","","# $1\n") && next; /(\s*.+) +\d+ degrees C.*$/ && ProcessHistory("","","","# $1\n") && next; + /(^.*\S)\s+ Spinning at .*$/ && + ProcessHistory("","","","# $1\n") && next; ProcessHistory("","","","# $_"); } return; @@ -358,6 +360,11 @@ sub ShowConfiguration { /^database header mismatch: / && return(-1); /^version .*;\d+$/ && return(-1); + if (/^(\s*)(community |trap-group )[^ ;]+(\s?[;{])$/) { + if (defined($ENV{'NOCOMMSTR'})) { + $_ = "$1$2\"<removed>\"$3\n"; + } + } s/(\s*authentication-key ).*$/#$1<removed>;/; s/^(.*\ssecret \")\$9\$.*(\".*)$/#$1<removed>$2/; s/ # SECRET-DATA$//; |