diff options
author | Tar Committer <tar@ocjtech.us> | 2001-04-09 07:32:33 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2001-04-09 07:32:33 +0000 |
commit | 0e84b727786a16ade28bb081742e5c39c33ed7fa (patch) | |
tree | 12ee1a75666c0af32ecc7fbdc05c3a5833fb6fb8 /bin/rancid.in | |
parent | b88919bea4b222a616adbdd2b82fc262a14afc8d (diff) | |
download | rancid-0e84b727786a16ade28bb081742e5c39c33ed7fa.tar.gz rancid-0e84b727786a16ade28bb081742e5c39c33ed7fa.tar.xz rancid-0e84b727786a16ade28bb081742e5c39c33ed7fa.zip |
Imported from rancid-2.2b.tar.gz.rancid-2.2b
Diffstat (limited to 'bin/rancid.in')
-rwxr-xr-x | bin/rancid.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/rancid.in b/bin/rancid.in index 065697a..d8b3694 100755 --- a/bin/rancid.in +++ b/bin/rancid.in @@ -194,6 +194,8 @@ sub ShowVersion { $type = "AGS+"; } elsif ( $1 eq "2511" || $1 eq "2524" || $1 eq "AS2511-RJ") { $type = "2500"; + } elsif ( $1 =~ /261[01]/ || $1 =~ /262[01]/ ) { + $type = "2600"; } elsif ( $1 eq "3620" || $1 eq "3640") { $type = "3600"; } elsif ( $1 eq "RSP7000") { @@ -208,6 +210,8 @@ sub ShowVersion { $type = "7200"; } elsif ( $1 =~ /1200[48]\/GRP/ || $1 =~ /1201[26]\/GRP/) { $type = "12000"; + } elsif ( $1 =~ /1201[26]-8R\/GRP/) { + $type = "12000"; } elsif ( $1 =~ /WS-C29/) { $type = "2900XL"; $device = "switch"; @@ -429,7 +433,7 @@ sub DirSlotN { return(1) if /\%Error: No such file or directory/; return(1) if /No space information available/; return(-1) if /\%Error calling/; - return(-1) if /: device being squeezed/; # Flash is busy + return(-1) if /(: device being squeezed|ATA_Status time out)/i; # busy return(-1) if (/command authorization failed/i); return(1) if /(Open device \S+ failed|Error opening \S+:)/; ProcessHistory("FLASH","","","!Flash: $dev: $_"); @@ -1112,8 +1116,7 @@ TOP: while(<INPUT>) { $clean_run=1; last; } - if (/Error:/) { - s/^.*Error:/Error:/; + if (/^Error:/) { print STDOUT ("$host clogin error: $_"); print STDERR ("$host clogin error: $_") if ($debug); $clean_run=0; |