Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^5: Telnet File Handle isn't open on login

by jbev2328 (Novice)
on Sep 25, 2013 at 20:38 UTC ( #1055746=note: print w/replies, xml ) Need Help??

in reply to Re^4: Telnet File Handle isn't open on login
in thread Telnet File Handle isn't open on login

Once I figure out how to post screenshots I'll provide the information you requested. I reran my script directing STDOUT and STDERR to a file. This is what I saw in SDTERR.

Host eof read waiting for login prompt: username:

Replies are listed 'Best First'.
Re^6: Telnet File Handle isn't open on login
by VinsWorldcom (Parson) on Sep 26, 2013 at 02:22 UTC

    The above error message IS in Net::Telnet so that makes sense. However, when I run your script against a Cisco router (assuming Cisco based on the commands in your script) it works fine.

    I ran it with Net::Telnet versions 3.03 and 3.04 and against a router with Password only and User/Password prompts. Each of the 4 iterations produced the startup config printed to my screen.

    If you are connecting to a Cisco device, have a look at Net::Telnet::Cisco as that does the "heavy lifting" for you (waitfor, prompts, etc.) and makes connecting and issuing commands much easier.

    In fact, for a script using N::T::C that works, have a look at:


      I believe this particular class of Cisco Wireless routers are pretty old. They get classified as "CiscoBG" by my monitoring system. I suspect that I'm getting back some unrecognizable character that's causing the problem. In any case I'll give your suggestion and try and let you know what happened. Thanks for your help

        I've used my script to access 11xx and 12xx series standalone access points as far back as 2005. Good luck.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055746]
[Corion]: "Unmatched ) in regex; marked by <-- HERE in m/(&#9583;&# 9633;)&#9583;&# 65077; &#9531;&#9473;&# 9531;) <-- HERE / at -e line 1." :)
[Corion]: Meh - my "flip the table" string doesn't render here ;)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2018-07-17 16:04 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (372 votes). Check out past polls.