diff options
author | Tar Committer <tar@ocjtech.us> | 2000-09-20 17:23:33 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2000-09-20 17:23:33 +0000 |
commit | 3861ba4cf180eb01fd98a16f4502702ab217e56f (patch) | |
tree | f24461455175b1fcd98eeb429d03410523e4d592 /bin/jrancid | |
parent | a505626101e262be2cd5a8c74c44d3616c299519 (diff) | |
download | rancid-3861ba4cf180eb01fd98a16f4502702ab217e56f.tar.gz rancid-3861ba4cf180eb01fd98a16f4502702ab217e56f.tar.xz rancid-3861ba4cf180eb01fd98a16f4502702ab217e56f.zip |
Imported from rancid-1.6.tar.gz.rancid-1.6
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$//; |