Operating System - HP-UX
1833187 Members
2938 Online
110051 Solutions
New Discussion

Re: Could not connect server ..., thru telnet.

 
william_39
Occasional Advisor

Could not connect server ..., thru telnet.

Dear all,
Following error comes while connecting server thru telnet ..,

any idea why ? and how to get rid of this.

Thanks & Regards
William

------------------

Trying...
Connected to hbxsun001.
Escape character is '^]'.
Local flow control off
telnetd: open /dev/ptmx: No such device
.
Connection closed by foreign host.

---------------------------------
8 REPLIES 8
U.SivaKumar_2
Honored Contributor

Re: Could not connect server ..., thru telnet.

hi,
can anyone else use telnet ?.
what is the value of npty kernel parameter ?.
try increasing it.

regards,
U.SivaKumar
Innovations are made when conventions are broken
steven Burgess_2
Honored Contributor

Re: Could not connect server ..., thru telnet.

Hi William

/dev/pty* are the device files created when users log onto servers (pseudo terminals)

do a man pty - for more info

THe problem seems to be with lack of terminal device files. Even though your npty,nstrtel values are 1200 (which should be normally sufficient), the telnets are failing occasionally. This points to lack of files in /dev/pty /dev/pts .

To check this : try
****
#cd /dev
#rm /dev/pts/*
#rm /dev/pty/*
#insf -e
#insf -d -s 1200 telm -v
#insf -d -s 1200 tels -v
#insf -d -s 1200 pty -v
***

Do these changes and see how the connections work. If you still have issues, then use
SAM to rebuild the kernel.
***
if your npty,nstrtel parameters are already 1200, there is no need to increase them further. Just increase the maxusers (about 25% from its existing value), this will automatically increase few related parameters.
Remake the kernel. The idea is ensure you have a good kernel file. This reboots the system
**

This should hopefully take care of the problem.





take your time and think things through
william_39
Occasional Advisor

Re: Could not connect server ..., thru telnet.

Hi,

No one is able to connect ....

about npty parameter, i could not see this parameter in /etc/system file, shall i need to add ?? if so what is exact parameter name ?

Thanks & Regards
william
steven Burgess_2
Honored Contributor

Re: Could not connect server ..., thru telnet.

Hi

Firstly, what are you kernel params?

Steve
take your time and think things through
U.SivaKumar_2
Honored Contributor

Re: Could not connect server ..., thru telnet.

hi ,
look for npty , npts .

#sysdef | grep npt*

this will let you know the kernel parameter values.

To increase that , use
#sam

regards,

U.SivaKumar
Innovations are made when conventions are broken
steven Burgess_2
Honored Contributor

Re: Could not connect server ..., thru telnet.

Hi

If no one can log on. Go to the console

insf -e

This will create the device files

Steve
take your time and think things through
Trevor Dyson
Trusted Contributor

Re: Could not connect server ..., thru telnet.

Hi,

If you are on HP-UX 10.x
then there is a kernel paramete npty that controls how many rlogin, telnet and Xwindows running can be run at the same time. The default is 60.

For telnet at HP-UX 11.x the kernel parameter is nstrtel. the default is 60.

The parameters are not seen in the system file if they are set to default values. Use SAM to see and set these parameters.

Your problem seems to be that the device files for pseudo terminal devices are missing. From the message '/dev/ptmx' I guess that you are running HP-UX 10.x.

The insf -e command should fix the problem.

This may also be caused by having too many files open at the same time on the server. This is controlled by the nfile parameter. You can usage of this parameter with 'sar -v 1 1'.
I've got a little black book with me poems in
U.SivaKumar_2
Honored Contributor

Re: Could not connect server ..., thru telnet.

hi,

I should have asked to do this first.
#ps -ef | grep ptydaemon
is ptydaemon running ?.
if not .
#/usr/sbin/ptydaemon

regards,
U.SivaKumar
Innovations are made when conventions are broken