Where would I be telling Net::Appliance::Session to connect to a specific port?

I tried this:
#!/usr/bin/perl use strict; use warnings FATAL => 'all'; use Net::Appliance::Session; my $ios_device_ip = '10.2.200.10'; # Terminal Server IP my $ios_username = 'username'; my $ios_password = 'password'; $|=1; my $session_obj = Net::Appliance::Session->new( Host => $ios_device_ip, Transport => 'Telnet', Port => '2033', REPL => 1, Dump_log => 'dump.log', Input_log => 'input.log', Output_log => 'output.log' ); # give verbose output whilst we run this script $session_obj->input_log(*STDOUT); eval { $session_obj->connect(Name => $ios_username, Password => $ios_pas +sword); # Line 54 $session_obj->cmd('show version'); $session_obj->cmd('show clock'); $session_obj->cmd('help'); }; if ( UNIVERSAL::isa($@,'Net::Appliance::Session::Exception') ) { print $@->message, "\n"; # fault description from Net::Appliance +::Session print $@->errmsg, "\n"; # message from Net::Telnet print $@->lastline, "\n"; # last line of output from your applian +ce # perform any other cleanup as necessary } $session_obj->close();

Which resulted in this:
./ssh_connect.pl
Failed to get first prompt at ./ssh_connect.pl line 54

pattern match timed-out

The input.log and output.log contained nothing and the dump log contained Hex. Do I need another module installed? Did I do the REPL wrong? Thanks for your help so far.

In reply to Re^4: Net::Appliance::Session and Console Server by josh803316
in thread Net::Appliance::Session and Console Server by josh803316

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.