1834789 Members
3013 Online
110070 Solutions
New Discussion

telnet problem

 
Isaac_4
Frequent Advisor

telnet problem

Hi:
I have some problem found when try to made a telnet to my hpux box , see this in syslog.log
telnetd[741]: Cannot allocate pty



Thank you !!!
The time is gold
4 REPLIES 4
Raj D.
Honored Contributor

Re: telnet problem

Hi Lsaac,


You are running out of pty ,

And need to increase the kernel parameter for this value,

Hope you are having npty defined 60. And need to increase ,
Do the following:

# kmtune -s npty=200
# kmtune -s nsrpty=200
# kmtune -s nstrtel=200

# ./mk_kernel
# ./kmupdate
# shutdown -r -y 0


After reboot , check the pty values,
# kmtune | grep -e "npty" -e "nsrpty" -e "nstrtel"


Enjoy..
Cheers,
Raj


" If u think u can , If u think u cannot , - You are always Right . "
G. Vrijhoeven
Honored Contributor

Re: telnet problem

Hi,

You could check the npty kernel parameter. ( kmtune -lq npty

Regards,

Gideon
Mel Burslan
Honored Contributor

Re: telnet problem

unless this is some sort of data entry computer used bu multiple operators at the same time, exhaustion of 60 pty's is kind of odd. Check to see if users are exiting their reflection-x sessions without logging off the terminal sessions and such. A friendly reminder about best practices of computer usage may solve your problem.

otherwise bumping up npty is the solution.
________________________________
UNIX because I majored in cryptology...
HGN
Honored Contributor

Re: telnet problem

Hi

Like others who mentioned here ,you ran out of pty's, you need to reboot and bring the server backup (run a os backup) change the kernel parameter npty.

Rgds

HGN