in reply to Net::Telnet::Cisco Login Problem
Good luck$session->waitfor('/password:/'); #change to what the cisco prompts $session->print("password"); $session->waitfor('/router>/'); #change to "hostname"> $session->print("login"); $session->waitfor('/username:/'); $session->print("user"); #change to username $session->waitfor('/password:/'); $session->print("pass"); #change to password $session->waitfor('/router#/'); #change to "hostname"> or # $session->print("enablepass"); #change to enable password $session->waitfor('/router#/'); #change to "hostname"# #you shouldn't have to enable if your user has high enough privilege.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Net::Telnet::Cisco Login Problem
by skaba9 (Beadle) on Sep 12, 2003 at 17:40 UTC |