From 25c2b7c2c8a333b276c3499bcce004137d4b4fe0 Mon Sep 17 00:00:00 2001 From: Tar Committer Date: Fri, 24 Nov 2000 22:14:14 +0000 Subject: Imported from rancid-2.1b.tar.gz. --- bin/rancid.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'bin/rancid.in') 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 \n") && next; - /^username (\S+) password /&& - ProcessHistory("USER","keysort","$1","!username $1 password \n") && next; + /^username (\S+)(\s.*)? password /&& + ProcessHistory("USER","keysort","$1","!username $1$2 password \n") && next; /^\s*password / && ProcessHistory("LINE-PASS","","","! password \n") && next; /^\s*neighbor (\S*) password / && -- cgit