in reply to Net::Appliance::Session and Console Server

Could be a number of things... In short, you might need to provide a bit more info...

1. If I Telnet directly to the device without the 'Port' setting the interaction works as expected
Could you clarify exactly what you mean by that? And what appears different between the them...

2. You could try sniffing with Wireshark for what is actually being sent, and compare it with what you get with a direct connection and/or comparing to what you get with a shell telnet connection.

  • Comment on Re: Net::Appliance::Session and Console Server

Replies are listed 'Best First'.
Re^2: Net::Appliance::Session and Console Server
by josh803316 (Beadle) on Mar 06, 2010 at 01:33 UTC
    1)a)If I telnet directly to port 23 on the actual device the Password prompt is immediately displayed.
    telnet 10.2.200.101 Trying 10.2.200.101... Connected to 10.2.200.101. Escape character is '^]'. Password:
    1b)If I telnet to the console server and the port on the console server that is connected to the console port on the device I have to hit return before I see the Password: prompt.
    telnet 10.2.200.10 2033 Trying 10.2.200.10... Connected to 10.2.200.10. Escape character is '^]'. (I HAVE TO HIT RETURN HERE TO GET THE PROMPT) Password:
    I also tested this out with Net::Telnet::Cisco and was able to prove the theory by using $session_obj->send_wakeup('connect');

    So I guess my question now is, how can I send that wakeup or carriage return inside Net::Appliance::Session (which is using Net::Telnet as the transport module).