Operating System - HP-UX
1827230 Members
2191 Online
109716 Solutions
New Discussion

Re: The system has no more ptys

 
Baird W Cowan
Occasional Advisor

The system has no more ptys

I am running a expect script on a HP9000 10.20 ux and the kernel settings are as follows:
npty 800
nstrpty 60
nswapdev 25

The system has no more ptys. Ask your system administrator to create more.
while executing
"spawn /bin/ksh"

What should I do.

Baird Cowan
bcowan@edfund.org
6 REPLIES 6
John Poff
Honored Contributor

Re: The system has no more ptys

Hi,

We ran into the same problem last week on a new system. Do

insf -e

and it will create the pty files for you.

JP
Sridhar Bhaskarla
Honored Contributor

Re: The system has no more ptys

Try increasing the nstrpty value to 100 and see.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjay_6
Honored Contributor

Re: The system has no more ptys

Hi,

Like sridhar has said earliar, increase nstrpty to 100 or while you are at it, double it to 120. This should work

Thanks
Baird W Cowan
Occasional Advisor

Re: The system has no more ptys

Ok I have tried this thru sam, but it states the following: The paramter modifications you have made haave resulted in at least one paramter evaluating to a vaule which is greater than it's maximum allowable value. Parameter "nswapdev", currently set to "32" has evaluated toto "32", which is greater than its maximum allowable value of "25"
Rita C Workman
Honored Contributor

Re: The system has no more ptys

Well, as my own preference, on my 10.2 boxes I set mine as this:

npty 800
nstrpty 800

The nswapdev sets how many swap device files you can have...so is not associated with the pty parms. For myself I never set this higher than 10 (and then I keep all my swap working in memory..) But that's up to you...the max is 25 here.

It would probably be a good idea as was stated in an earlier post to rebuild your special files.
***********
Here is a thread that I keep bookmarked that explains the different parms:
http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html

Hope this helps,
Rita
Deshpande Prashant
Honored Contributor

Re: The system has no more ptys

HI
Change the "nswapdev" parameter to accept value than formula. This this value can be less than 25, and change "nstrpty" to a higher value as suggested in earlier posts.

Thanks.
Prashant.
Take it as it comes.