[rancid] End of config in Extreme Switches
James Andrewartha
jandrewartha at ccgs.wa.edu.au
Thu Oct 3 00:52:24 UTC 2013
On 02/10/13 18:09, Alan McKinnon wrote:
> To me that's a more sensible approach - you can't include checks for
> markers that do not exist in the output.
The entrancid (Enterasys) I have looks like it matches on the exit
command sent by entlogin itself to set $found_end:
sub ShowConfig {
print STDERR " In ShowConfig: $_" if ($debug);
while (<INPUT>) {
<snip>
}
if (/exit/) {
$found_end = 1;
$clean_run = 1;
return(1);
}
return(0);
}
--
James Andrewartha
Network & Projects Engineer
Christ Church Grammar School
Claremont, Western Australia
Ph. (08) 9442 1757
Mob. 0424 160 877
More information about the Rancid-discuss
mailing list