Advertisement
Advertisement
| 03.19.2008 at 11:59PM PDT, ID: 23256124 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
sub connect_bridge{
$t = new Net::Telnet (Timeout => 40, Errmode=>'die',Input_log => $input_log);
$t->open($bridge_ip) or die ("Cannot connect to $noc_host!\n");
print "Start Logging in to $bridge_ip.........";
$t->waitfor($bridge_login_prompt);
$t->print($bridge_username);
$t->waitfor($bridge_password_prompt);
$t->print($bridge_password);
$t->waitfor($bridge_prompt);
print "Success!\n\n";
}
|