1832803 Members
3628 Online
110045 Solutions
New Discussion

Re: Telnet connection

 
Shahul
Esteemed Contributor

Telnet connection


Hi Admins

I have a D class server. It is allowing only 40 telnet connections at a time. I wanted to increase to 50 numbers. I checked the kernel configurable parameter, here npty is 300 and nstrpty is 60.

What modification I should do to meet my requirement?

Is it possible without a reboot?

What is exactly npty and nstrpty?

Tanks in advance

Shahul
14 REPLIES 14
Rainer von Bongartz
Honored Contributor

Re: Telnet connection


Shahul,

You have to increase the parameter nstrtel which gives the Number of Telnet Session Device Files .

A goo description of kernel parameters can be found at:

http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/os/11i/kcparams/KCparams.OverviewAll.html&searchterms=descriptionb%7ckernel%7cparameters&queryid=20010708-231335
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Michael Tully
Honored Contributor

Re: Telnet connection

Hi,

Try increasing your number of nptys.
this is done by using the insf program.
Seeing you have the npty set to 300 in
your kernel you should be able to do
this without a reboot.
# cd /dev
# insf -n 300

npty basically stands for "pseudo tty's"
or "pseudo terminals"

Have a look at the man page for 'insf'
for further info.

HTH
Michael

Anyone for a Mutiny ?
Alexander M. Ermes
Honored Contributor

Re: Telnet connection

Hi there.
Have you checked the nstrtel param ?

nstrtel 60 60 Static N/A Number o
f Telnet Session Device Files

Rgds
Alexander M. Ermes

.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Shahul
Esteemed Contributor

Re: Telnet connection


Hi

In my system There is no nstrtel parameter in configurable kernel parameters. Or where it is set ?

Shahul
Michael Tully
Honored Contributor

Re: Telnet connection

Hi,


What O/S do you have?
Did you also try
# insf -s 300 (for nstrpty)

The below is for HP-UX 11.


There are two ways of adding nstrtel to
your kernel. You can do this with SAM or
you can do it from the command line. Doing
this will require a reboot either way.

SAM --> kernel configuration -->
configurable parameters --> nstrtel
Change it from the default value which is 60
and then save. Regenerate your kernel and the
system will reboot.

or command line
# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system
add line nstrtel 300 under the line npty
save the file.
# mk_kernel -s system
# kmupdate
Reboot your system, this will install the
next kernel automatically.

HTH
Michael

Anyone for a Mutiny ?
Ravi_8
Honored Contributor

Re: Telnet connection

Hi,
sam-->kernel configuration-->configurable parameters-->nstrtel
increase the nstrtel parameters to your desired number and reboot. without reboot the kernel wouldn't be configued for that nstrtel parameter.
never give up
Vincenzo Restuccia
Honored Contributor

Re: Telnet connection

nstrpty
nstrpty defines the maximum number of streams-based PTYs allowed on the system.
Acceptable Values:
Minimum
0
Maximum
Memory limited
Default
0

npty
npty specifies the maximum number of pseudo-tty data structures that are available on the system.

Acceptable Values:
Minimum
1
Maximum
Memory limited
Default
60


nstrtel
nstrtel specifies the number of telnet device files that the kernel can support for incoming telnet sessions.


Acceptable Values:
Minimum
60
Maximum
Default
60



Shahul
Esteemed Contributor

Re: Telnet connection


Hi

I tried the following

#insf -n 300
#insf -s 300

After this it is coming to # prompt immediately, No other messages.
#insf -d ptys 300
#insf -d ptym 300

After this two commands it is giving error like this

insf:Installing special files for psudo driver ptym/ptys
insf:group tty lookup failed:file exists

In configurable parameters npty is 300 and nstrpty is 60.
Still I am getting maximum 40 connactios only.

My os is HPUX 10.2 and Box is E45 (Not Dclass)

What should I do?

Michael Tully
Honored Contributor

Re: Telnet connection

Hi,

Sounds like the tty group is missing from
your /etc/group file
The entry should look like this

tty::10:

A typical pty should similar to this

crw--w---- 2 fredw tty 17 0x000016 Jul 10 08:19 ttyq6


Check the group as above. If it missing fix
the /etc/group file and run the examples one
more time.

HTH
Michael

Anyone for a Mutiny ?
Frank Li
Trusted Contributor

Re: Telnet connection

Hi,

what the value of the kernel parameter " maxusers " ? . you should increase this if it is too low ( 50 ? )

Hi Friend
Shahul
Esteemed Contributor

Re: Telnet connection


Hi

See..I am getting the login prompt, and it is assigning the tty. But once U type user name and passwd it is telling that "Maximum User limit Exceeds...Please try later"

I don't think this is the problem of device files..Those are already exists.

Anyway I increased maxusers parameter from 32 to 50..Still same problem.

Replys are highly appreciated.


Shahul
Rita C Workman
Honored Contributor

Re: Telnet connection

Hi Shahul,

It is very possible that your problem is not that you are short on tty/pty connections...but that you CAN NOT SPAWN ANOTHER PROCESS. Since you have ruled out that you have your parms npty,etc and the device files.

Frank Li may have hit upon your issue.
Increase your maxusrs above 50....depending on your system resources, try increasing this to 75 or 100. This will in turn increase nproc and nfile. See if after these parms are increased...you don't go past the 40 logins now....

Just a thought,
Rita
KapilRaj
Honored Contributor

Re: Telnet connection

Shahul,

This error message is not for pseudo-ttys . It says, The user license you have installed in the server does not allow you to have more than those many number of connections.

License !!! (Remember u need a code word for that) . Normaly a telnet connection does not get counted as a licensed connection but it can happen.

The error message is clear that it is asking for more user license

kaps
Nothing is impossible
Shahul
Esteemed Contributor

Re: Telnet connection

Hi

Thanks to all of U. I found out the problem, It was nothing to do with insf or user license.
There is a script which will check the number of connections and if it is more than 40, it will kill that tty. This script has been put in /etc/profile.

Thank a lot

Shahul