System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Max number of telnet sessions

 
SOLVED
Go to solution
Roro_2
Regular Advisor

Max number of telnet sessions

Hello,

Our customer is running HP-UX 11i v2 (June 2007) on rx1620 server.
The users are accessing their application from Windows workstations through TCP/IP emulator.
The sessions/processes are allocated to the following device files : /dev/pts/ta to /dev/pts/tz then /dev/pts/TA to /dev/pts/TZ then /dev/pts/t1 to /dev/pts/t8.
So when we reach a max of 60 sessions and when the 61 user is trying to log on the server he is getting "/dev/pts/t9 no such file or directory "

Please advise

Thanks and Regards

Roger

13 REPLIES
johnsonpk
Honored Contributor

Re: Max number of telnet sessions

Hi Roger,

Check the below kernel tunables and you may need to increase as per your requirement
#kctune

npty
nstrpty
nstrtel

The default values for these tunable in v2 is 60
As these tunables are static ,You nee to reboot the server for change to take effect.


Rgds
Johnson


Suraj K Sankari
Honored Contributor

Re: Max number of telnet sessions

Hi,

What is the value of these kernal paramaer
# kmtune â q npty â q nstrpty â q nstrtel

Increased the value of npty and check ?

Suraj
Roro_2
Regular Advisor

Re: Max number of telnet sessions

HI,

The value for the three variables : npty, nstrpty and nstrtel is 120.

Thanks an Regards

Roger
Sajjad Sahir
Honored Contributor

Re: Max number of telnet sessions

Dear Roger
npty
This parameter limits the number of pty data structures that can be opened. These are used by network programs like rlogin, telnet, xterm, etc. recommended value of this parameter be set to 512.

thanks and regards

Sajjad Sahir
Dennis Handly
Acclaimed Contributor

Re: Max number of telnet sessions

Roro_2
Regular Advisor

Re: Max number of telnet sessions

Hi,

I have increased the value of npty to 512 but the number of device files under /dev/pts is the same.

Thanks and Regards

Roger
Robert-Jan Goossens
Honored Contributor

Re: Max number of telnet sessions

Roger,

did you change all three parameters ? Run;

npty
nstrpty
nstrtel

# insf -d tels -s 512 -e
# insf -d pts -s 512 -e
# insf -d pty -n 512 -e

Regards,
Robert-Jan
Sajjad Sahir
Honored Contributor

Re: Max number of telnet sessions


Dear friend

u have to change other parameters also
please see the above threads how to change it and run the insf -e command once u created.

thanks and regards

Sajjad Sahir
Suraj K Sankari
Honored Contributor
Solution

Re: Max number of telnet sessions

Hi,

After changing this below value
nstrpty 256
npty 256
nstrtel 60

run these command to create term device file.

# insf -d pts -s 256 -e #< where 256 is the value of nstrpty >

# insf -d pty -n 256 -e #< where 256 is the value of npty >

# insf-d tels -s 60 -e #< where 60 the value of nstrtel >

# ll /dev/pts/[0-9] /dev/pts/[0-9][0-9]

Suraj
Roro_2
Regular Advisor

Re: Max number of telnet sessions

Hi Suraj,

I have applied all the above steps but the number of t* device files in /dev/pts is still 60 which will not solve the problem.

Regards

Roger
Robert-Jan Goossens
Honored Contributor

Re: Max number of telnet sessions

Could you post the output of;

# kctune -q nstrpty
# kctune -q npty
# kctune -q nstrtel

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: Max number of telnet sessions

Shalom,

60 is has been the default limit for these parameters for as long as I have known HP-UX.

# kctune -q nstrpty
# kctune -q npty
# kctune -q nstrtel

It costs little to bump them up to 200 or more, reboot the system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Suraj K Sankari
Honored Contributor

Re: Max number of telnet sessions

Hi,

Increase "nstrtel" value from 60 to 265

then run

insf-d tels -s 256 -e

Suraj