RE: [Perl-unix-users] Telnet to AIX

2003-07-08 Thread Mundell, R. (Ronald)
Title: Telnet to AIX



what 
does the -a do, the aix server has the same setting

  -Original Message-From: Sullivan, Patrick 
  [mailto:[EMAIL PROTECTED]Sent: 07 July 2003 04:36 
  PMTo: Mundell, R. (Ronald); Perl-Unix-Users (E-mail); 
  Perl-Win32-Users (E-mail)Subject: RE: [Perl-unix-users] Telnet to 
  AIX
  Check your /etc/inetd.conf file - 
  look for the telnet line, if it contains a "-a" after the telnetd (as 
  follows): 
  telnet stream tcp6 nowait root 
  /usr/sbin/telnetd telnetd -a 
  
  I 
  know this causes some problems on AIX, I am not sure if this is yours but, 
  remove the -a and refresh -s inetd and try 
  again.
  
  Thank you,Patrick SullivanCentura 
  Health
  
-Original Message-From: Mundell, R. (Ronald) 
[mailto:[EMAIL PROTECTED]Sent: Monday, July 07, 2003 5:20 
AMTo: Perl-Unix-Users (E-mail); Perl-Win32-Users 
(E-mail)Subject: [Perl-unix-users] Telnet to 
AIX
Good Day All 
I am experiencing some strange problems when I 
telnet to an AIX Unix box. I login Successful, but when I execute a unix 
call eg. ls -l it does not return any data. If someone knows how to solve 
this problem or got some advise please help
#!/usr/bin/perl -w use strict; 
use Net::Telnet(); 
my $Servers = 
qw|goblin|; my $username = 
qq|test|; my $password = 
qq|12345|; my $timeout 
= 30; 
 my $t = new Net::Telnet( 
Timeout = $timeout, Prompt = '/[\w:\w:\w+]$/' );  print qq|Open $Server\n|; 
 $t-open ( qq|$Server| 
);  print qq|Login 
$Server\n|;  
$t-login ( $username, $password );  print qq|Done Login $Server\n|;  foreach my $user ( sort @UserList 
)  {  chomp 
$user;  my $hostname = $t-cmd 
( qq|hostname| );  print qq|Hostname: 
$hostname\n|;  my (@forecast) = 
$t-cmd ( qq|ls -l| );  print 
qq|@forecast\n|;  
} 
Thank you, 
Ronald Mundell Technical 
Specialist Information Security EF24 105 West Street Sandton Tel: 
 011 8813751(W)  
083407(C) 




This 
email and any accompanying attachments may contain confidential and 
proprietary information. This 
information is private and protected by law and, accordingly, if you are not 
the intended recipient, you are requested to delete this entire 
communication immediately and are notified that any disclosure, copying or 
distribution of or taking any action based on this information is 
prohibited. 
Emails 
cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any 
liability or responsibility for any interception, corruption, destruction, 
loss, late arrival or incompleteness of or tampering or interference with 
any of the information contained in this email or for its incorrect delivery 
or non-delivery for whatsoever reason or for its effect on any electronic 
device of the recipient.
If 
verification of this email or any attachment is required, please request a 
hard-copy version.


This communication is for the use of the 
  intended recipient only. It may contain information that is privileged and 
  confidential. If you are not the intended recipient of this communication, any 
  disclosure, copying, further distribution or use thereof is prohibited. If you 
  have received this communication in error, please advise me by return e-mail 
  or by telephone and delete/destroy it.



 This 
email and any accompanying attachments may contain confidential and proprietary 
information. This information is 
private and protected by law and, accordingly, if you are not the intended 
recipient, you are requested to delete this entire communication immediately and 
are notified that any disclosure, copying or distribution of or taking any 
action based on this information is prohibited.
Emails 
cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability 
or responsibility for any interception, corruption, destruction, loss, late 
arrival or incompleteness of or tampering or interference with any of the 
information contained in this email or for its incorrect delivery or 
non-delivery for whatsoever reason or for its effect on any electronic device of 
the recipient.
If 
verification of this email or any attachment is required, please request a 
hard-copy version.






RE: [Perl-unix-users] Telnet to AIX

2003-07-08 Thread Sullivan, Patrick
More info:
http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds5/telnetd.htm

.
.
.
Flags
-a Causes the PTY and socket to be linked directly in the kernel so that the data 
handling remains in the kernel to improve the performance
.
.
.

For use some of our client software just hangs even though the log in works without a 
hitch.

Thank you,

Patrick Sullivan
Centura Health
303-643-4021 
-Original Message-
From: Mundell, R. (Ronald) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 12:02 AM
To: Sullivan, Patrick; Mundell, R. (Ronald); Perl-Unix-Users (E-mail); 
Perl-Win32-Users (E-mail)
Subject: RE: [Perl-unix-users] Telnet to AIX


what does the -a do, the aix server has the same setting
-Original Message-
From: Sullivan, Patrick [mailto:[EMAIL PROTECTED]
Sent: 07 July 2003 04:36 PM
To: Mundell, R. (Ronald); Perl-Unix-Users (E-mail); Perl-Win32-Users (E-mail)
Subject: RE: [Perl-unix-users] Telnet to AIX


Check your /etc/inetd.conf file - look for the telnet line, if it contains a -a 
after the telnetd (as follows): 
telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a 

I know this causes some problems on AIX, I am not sure if this is yours but, remove 
the -a and refresh -s inetd   and try again.



Thank you,

Patrick Sullivan
Centura Health

-Original Message-
From: Mundell, R. (Ronald) [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 5:20 AM
To: Perl-Unix-Users (E-mail); Perl-Win32-Users (E-mail)
Subject: [Perl-unix-users] Telnet to AIX


Good Day All 
I am experiencing some strange problems when I telnet to an AIX Unix box. I login 
Successful, but when I execute a unix call eg. ls -l it does not return any data. If 
someone knows how to solve this problem or got some advise please help
#!/usr/bin/perl -w 
use strict; 
use Net::Telnet(); 
my $Servers= qw|goblin|; 
my $username   = qq|test|; 
my $password   = qq|12345|; 
my $timeout= 30; 
my $t = new Net::Telnet( Timeout = $timeout, Prompt = '/[\w:\w:\w+]$/' ); 
print qq|Open $Server\n|; 
$t-open ( qq|$Server| ); 
print qq|Login $Server\n|; 
$t-login ( $username, $password ); 
print qq|Done Login $Server\n|; 
foreach my $user ( sort @UserList ) 
{ 
chomp $user; 
my $hostname = $t-cmd ( qq|hostname| ); 
print qq|Hostname: $hostname\n|; 
my (@forecast) = $t-cmd ( qq|ls -l| ); 
print qq|@forecast\n|; 
} 
Thank you, 
Ronald Mundell 
Technical Specialist 
Information Security 
EF24 
105 West Street 
Sandton 
Tel:   011 8813751(W) 
083407(C) 





This email and any accompanying attachments may contain confidential and proprietary 
information.  This information is private and protected by law and, accordingly, if 
you are not the intended recipient, you are requested to delete this entire 
communication immediately and are notified that any disclosure, copying or 
distribution of or taking any action based on this information is prohibited. 
Emails cannot be guaranteed to be secure or free of errors or viruses.  The sender 
does not accept any liability or responsibility for any interception, corruption, 
destruction, loss, late arrival or incompleteness of or tampering or interference with 
any of the information contained in this email or for its incorrect delivery or 
non-delivery for whatsoever reason or for its effect on any electronic device of the 
recipient.
If verification of this email or any attachment is required, please request a 
hard-copy version.







This communication is for the use of the intended recipient only. It may contain 
information that is privileged and confidential. If you are not the intended recipient 
of this communication, any disclosure, copying, further distribution or use thereof is 
prohibited. If you have received this communication in error, please advise me by 
return e-mail or by telephone and delete/destroy it.




This email and any accompanying attachments may contain confidential and proprietary 
information.  This information is private and protected by law and, accordingly, if 
you are not the intended recipient, you are requested to delete this entire 
communication immediately and are notified that any disclosure, copying or 
distribution of or taking any action based on this information is prohibited. 
Emails cannot be guaranteed to be secure or free of errors or viruses.  The sender 
does not accept any liability or responsibility for any interception, corruption, 
destruction, loss, late arrival or incompleteness of or tampering or interference with 
any of the information contained in this email or for its incorrect delivery or 
non-delivery for whatsoever reason or for its effect on any electronic device of the 
recipient.
If verification of this email or any attachment is required, please request a 
hard-copy version.




This communication is for the use of the intended recipient only.  It may contain 
information that is privileged