Platform: Windows 2000 & XP, Perl: 5.61, Module Version - Net::Telnet, version 3.03

Problem:

I'm using Net::Telnet to telnet from a Windows 2000 workstation to various network printers. I am able to connect successfully, but I'm unable to pass "/" to retreive the printers current settings. "/" works when I manually telnet. I am able to pass other commands, such as "menu" but "/" results in a time out regardless of the time out value I set. Although the menu command works this isn't a solution for me since the majority of printers don't use this command.

use Net::Telnet(); $t = new Net::Telnet (Timeout => 30, Errmode => 'return', Prompt => '/> $/'); $t->open("10.30.201.225"); @lines = $t->cmd("/"); #Fails with a time out message # @lines = $t->cmd("menu"); Works but isn't an option on most of the p +rinters in the environment. print @lines;

Any help would be appreciated, thanks.

Mitch

2005-10-12 Retitled by planetscape, as per Monastery guidelines
Original title: 'Net::Telnet'


In reply to Sending a slash ('/') with Net::Telnet 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.