Hi folks, I'm exploring the Net::Telnet module, and am getting a "tset: unknown terminal type network" error. Here's my test script:
#!/usr/bin/perl -w
use strict;
use diagnostics;
use Net::Telnet ();
if ($#ARGV < 2 || $ARGV[0] eq '-h') {
    print "Usage:  telnet1 <systemName> <username> <password>\n";
    exit;
}
my $t = new Net::Telnet->new(Timeout => 10,
			  Input_log => './inputlog.txt',
			  Dump_log => './dumplog.txt');
my ($systemname, $username, $passwd) = @ARGV;
$t->open($systemname);
$t->login($username, $passwd);
my @lines = $t->cmd("/usr/bin/who");
print @lines;
When my perl script does a Telnet::login() to a SuSE Linux machine, it gets the following error (according to my inputlog):
   tset: unknown terminal type network
   Terminal type? 
Apparently during the initial negotiation, Net::Telnet is specifying a terminal type of "network", which SuSE doesn't recognize. Should I talk to the SuSE people and try to convince them to recognize "network"? The SuSE box is at the following Linux version:
   SuSE Linux SLES-7 (PPC) - Kernel 2.4.13-ppc64-SMP (2)
   > uname -a
   Linux linux10 2.4.13-ppc64-SMP #2 SMP Fri Jul 19 17:14:18 GMT 2002 ppc64 unknown
I'm running on AIX, with the following versions of perl stuff:
~> perl -mNet::Telnet -e 'print "Net::Telnet.pm version $Net::Telnet::VERSION\n";'
Net::Telnet.pm version 3.02

~> perl -V
Summary of my perl5 (5.0 patchlevel 4 subversion 0) configuration:
  Platform:
    osname=aix, osvers=4.1.5.0, archname=aix
    uname='aix side5 1 4 008150374c00 '
    hint=previous, useposix=true, d_sigaction=define
    bincompat3=y useperlio= d_sfio=
    ( ... etcetera ... )
Suggestions, anyone?

In reply to Net::Telnet "unknown terminal type" by jlee

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.