Operating System - HP-UX
1753543 Members
5245 Online
108795 Solutions
New Discussion юеВ

Re: 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 13
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