System Administration
Showing results for 
Search instead for 
Do you mean 

rlogind: Unable to allocate pty on remote host.

SOLVED
Go to Solution
Advisor

rlogind: Unable to allocate pty on remote host.

Hi,
I increased the “npty” & “nstrpty” parameters from 60 to 120 and sam reports that the usage of npty is 0 and usage of nstrpty is 62 but still we get the “Unable to allocate pty on remote host”
The system is 11.31.
Any ideas?

Thanks!

Tal
8 REPLIES
Honored Contributor [Founder]

Re: rlogind: Unable to allocate pty on remote host.

did you reboot?
check
# kctune -v nstrpty
# insf -v -d pts


Advisor

Re: rlogind: Unable to allocate pty on remote host.

Hi,

Thanks for the prompt response, and yes, the system is after restart.

this is the output i get:

# kctune -v nstrpty
Tunable nstrpty
Description Maximum number of Streams-based pseudo-terminals
Module ptm
Current Value 120
Value at Next Boot 120
Value at Last Boot 120
Default Value 60
Can Change At Next Boot Only

# insf -v -d pts
insf: Installing special files for pseudo driver pts

Thanks!

Tal
Honored Contributor [Founder]

Re: rlogind: Unable to allocate pty on remote host.

try a
ls /dev/pts/[1-9a-zA-Z]* | wc
rlogind is using streams pty.
The other possibility is that you still have process owning the pts after the session end.
and ptm is closed.


Advisor

Re: rlogind: Unable to allocate pty on remote host.

# ls /dev/pts/[1-9a-zA-Z]* | wc
119 119 1419
Honored Contributor [Founder]

Re: rlogind: Unable to allocate pty on remote host.

so orphaned pts.
you still have application opening them
or ptm side.
so probably lsof may give you the answer.
Honored Contributor [Founder]

Re: rlogind: Unable to allocate pty on remote host.

You know...I always thought there were 3 you needed to adjust:
npty;
nstrpty; and

nstrtel - the number of telnet devices files the kernel can support for incoming telnet sesssions.

Just thinking out loud,
Rita
Honored Contributor [Founder]

Re: rlogind: Unable to allocate pty on remote host.

Hi Rita

npty -ptys driver -> bsd pty -> /dev/pty/tty*

nstrpty -streams pty -> /dev/pts/[:number:]

nstrtel -telnet pty ->/dev/pts/t*

They are all separate


Honored Contributor [Founder]

Re: rlogind: Unable to allocate pty on remote host.

if you didn't solve it, you may need to open a call to hp support