The unfortunate truth about "console mode" is that it really isn't the TELNET protocol, just as the docs for Net::Telnet say. There's a reason there are RFC and STD documents, and there's a reason responsible developers try to maintain compatibility with them.

HP, it seems, has not done so in their default configuration. I would suggest that you contact your equipment vendor for a fix to their issue, because that's where the trouble lies. If you get no satisfaction dealing with their nonstandard implementation, then perhaps you can get some software to deal with it. In any case, consider it a lesson learned about standards and shop for hardware that follows them next time if you are fortunate enough to have that sort of input in your organization.

In the meantime, have you tried just setting a delay in your program and using Net::Telnet to send the commands to disable the offending option "in the blind"? If you can issue the authentication, wait, issue the command to disable "console mode", wait, and issue the command to write the config (if there is one and this line doesn't use a persistent object -- I admit I've not used a lot of HP networking equipment), then maybe you can automatically get into a usable TELNET session in which you can reliably read prompts after that.


In reply to Re^3: 'Net::Telnet' HP ProCurve switches by mr_mischief
in thread 'Net::Telnet' HP ProCurve switches by Anonymous Monk

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.