diff options
author | Tar Committer <tar@ocjtech.us> | 2000-11-24 22:14:14 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2000-11-24 22:14:14 +0000 |
commit | 25c2b7c2c8a333b276c3499bcce004137d4b4fe0 (patch) | |
tree | baad136bdfcea88812dd658a682f126d1af4dfc3 /bin/rancid.in | |
parent | 1651adc35224e149715bd85af4ba108c5ee184bc (diff) | |
download | rancid-25c2b7c2c8a333b276c3499bcce004137d4b4fe0.tar.gz rancid-25c2b7c2c8a333b276c3499bcce004137d4b4fe0.tar.xz rancid-25c2b7c2c8a333b276c3499bcce004137d4b4fe0.zip |
Imported from rancid-2.1b.tar.gz.rancid-2.1b
Diffstat (limited to 'bin/rancid.in')
-rwxr-xr-x | bin/rancid.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/rancid.in b/bin/rancid.in index d7b5fbf..24b9d14 100755 --- a/bin/rancid.in +++ b/bin/rancid.in @@ -210,6 +210,9 @@ sub ShowVersion { } elsif ( $1 =~ /WS-C29/) { $type = "2900XL"; $device = "switch"; + } elsif ( $1 =~ /WS-C35/) { + $type = "3500XL"; + $device = "switch"; } else { $type = $1; } @@ -352,7 +355,7 @@ sub ShowGSR { # This routine parses "show boot" sub ShowBoot { - # Pick up boot variables if 7000/7200/7500/12000/2900; + # Pick up boot variables if 7000/7200/7500/12000/2900/3500; # otherwise pick up bootflash. print STDERR " In ShowBoot: $_" if ($debug); @@ -369,7 +372,7 @@ sub ShowBoot { $H0=1; ProcessHistory("COMMENTS","keysort","H0","!\n"); } if ($type !~ /^(120|7)/) { - if ($type !~ /^2900/) { + if ($type !~ /^(29|35)00/) { ProcessHistory("COMMENTS","keysort","H2","!BootFlash: $_"); } else { ProcessHistory("COMMENTS","keysort","H1","!Variable: $_"); @@ -825,8 +828,8 @@ sub WriteTerm { /^(enable )?(password|passwd) / && ProcessHistory("ENABLE","","","!$1$2 <removed>\n") && next; - /^username (\S+) password /&& - ProcessHistory("USER","keysort","$1","!username $1 password <removed>\n") && next; + /^username (\S+)(\s.*)? password /&& + ProcessHistory("USER","keysort","$1","!username $1$2 password <removed>\n") && next; /^\s*password / && ProcessHistory("LINE-PASS","","","! password <removed>\n") && next; /^\s*neighbor (\S*) password / && |