diff options
author | Tar Committer <tar@ocjtech.us> | 2000-08-23 20:13:31 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2000-08-23 20:13:31 +0000 |
commit | a505626101e262be2cd5a8c74c44d3616c299519 (patch) | |
tree | faa740207faec239fa2af636b194c924eaf3573f /bin/francid | |
parent | b24aa5051db5d4bf9757efe7df06cb1892898382 (diff) | |
download | rancid-a505626101e262be2cd5a8c74c44d3616c299519.tar.gz rancid-a505626101e262be2cd5a8c74c44d3616c299519.tar.xz rancid-a505626101e262be2cd5a8c74c44d3616c299519.zip |
Imported from rancid-1.5.tar.gz.rancid-1.5
Diffstat (limited to 'bin/francid')
-rwxr-xr-x | bin/francid | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/francid b/bin/francid index 3050aee..54aae8d 100755 --- a/bin/francid +++ b/bin/francid @@ -30,7 +30,7 @@ $file = $opt_f; $host = $ARGV[0]; $clean_run = 0; $found_end = 0; -$timeo = 90; # clogin timeout in seconds +$timeo = 90; # flogin timeout in seconds # This routine is used to print out the router configuration sub ProcessHistory { @@ -172,6 +172,7 @@ sub ShowChassis { tr/\015//d; last if (/^$prompt/); next if (/ from /); + next if (/current temperature/i); ProcessHistory("CHASSIS","","","! $_"); } ProcessHistory("CHASSIS","","","!\n"); @@ -327,7 +328,7 @@ if ($file) { } } -while(<INPUT>) { +TOP: while(<INPUT>) { tr/\015//d; if (/\#exit$/) { $clean_run=1; @@ -347,13 +348,13 @@ while(<INPUT>) { if (! defined($commands{$cmd})) { print STDERR "found unexpected command - \"$cmd\"\n"; $clean_run = 0; - last; + last TOP; } $rval = &{$commands{$cmd}}; delete($commands{$cmd}); if ($rval == -1) { $clean_run = 0; - last; + last TOP; } } } |