Operating System - HP-UX
1833873 Members
1698 Online
110063 Solutions
New Discussion

Message during FTP "system has no more ptys"

 
myr001
Advisor

Message during FTP "system has no more ptys"

Hi Experts,

Receiving following message intermittently with FTP while trying to get or put files to any remote system:
"The system has no more ptys"


system info (local server):
---------------------------

# uname -a
HP-UX srvr1 B.11.11 U 9000/800 srvr1 unlimited-user license

# ls /dev/pts/t*|wc -l
60

# ls /dev/pty/*|wc -l
60

# kmtune -l

Parameter: npty
Current: 1024
Planned: 1024
Default: 60
Minimum: -
Module: -
Version: -
Dynamic: No

Parameter: nstrpty
Current: 1024
Planned: 1024
Default: 0
Minimum: -
Module: -
Version: -
Dynamic: No

Parameter: nstrtel
Current: 60
Planned: 60
Default: 60
Minimum: -
Module: -
Version: -
Dynamic: No



I would like to know:

1) Where is the problem? in local or remote server?

2) Which of the above mention kernel parameter need to be change? as the problem happening with FTP.

3) Does it require a re-boot if I change any of the above kernel parameters? or if I just issue a "insf -d pty -n 1024" command?


Thanks,
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Message during FTP "system has no more ptys"

Shalom,

The problem is in the server the ftpd daemin is running on.

nstrtel needs to be adjusted which requires a reboot.

The reboot will issue the insf command itself.

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
myr001
Advisor

Re: Message during FTP "system has no more ptys"

Hi Steven,

You mean the "srvr1", from where I am initiating the ftp command, because ftpd is running on some remote servers as well.

Thanks,
Steven E. Protter
Exalted Contributor

Re: Message during FTP "system has no more ptys"

I meant that kernel adjustment should be on the system in which the error message occurs.

All kernel pramters listed in the origina post should be increased.

Good Luck,

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
myr001
Advisor

Re: Message during FTP "system has no more ptys"

Thanks for explaination.

Just one more clarification:

Why the server has 60 ptys and pts while kmtune is showing '1024' as current value

# ls /dev/pts/t*|wc -l
60
# ls /dev/pty/*|wc -l
60

Will it be change after reboot?

I am not quite sure how much should I increase for these 3 param.

Dennis Handly
Acclaimed Contributor

Re: Message during FTP "system has no more ptys"

>Why the server has 60 ptys and pts while kmtune is showing '1024' as current value

You may be lucky that your "insf -d pty -n 1024" command can be done if your kernel already has 1024?

Perhaps you need to use SAM to change the value so that the kernel parm and number of ptys matches?
Shardha
Valued Contributor

Re: Message during FTP "system has no more ptys"

Dear

just run insf -e

this will resolve ftp and telnet problem.

Shardha
myr001
Advisor

Re: Message during FTP "system has no more ptys"

The problem occured due to extra load while one application was shifted to this server.Problem didnt re-appear after switching back the application to its original server.

To avoid this problem in future I will most probably just run "insf -d pty -n 1024" because kernel params are already set with higher values.

Thanks to all.