Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
No such thing as a small change
 
PerlMonks  

Re: Net::Telnet::Cisco Login Problem

by bobn (Chaplain)
on Sep 12, 2003 at 09:34 UTC ( [id://291033]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Net::Telnet::Cisco Login Problem

Net::Telnet Cisco is a subclass of Net::Telnet which has methods for turning on logging of data to/from the router, which would give you some ideal of what is going on, instead of saying "something broke".

My recollcection is that Net::Telnet::Cisco can deal with receiving a password prompt instead of a username prompt upon connection. You may need to override the login method to deal with needing to send a login command before getting username and password prompts.

Update: Actually you'll want to leave the login method alone, coying the parts you need out of it into a new method, I think.

--Bob Niederman, http://bob-n.com

All code given here is UNTESTED unless otherwise stated.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://291033]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.