rlogind: Unable to allocate pty on remote host. (580 Views)
Reply
Advisor
TalH
Posts: 32
Registered: ‎04-09-2010
Message 1 of 9 (580 Views)
Accepted Solution

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
Honored Contributor
Laurent Menase
Posts: 1,079
Registered: ‎11-06-2003
Message 2 of 9 (580 Views)

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

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


Advisor
TalH
Posts: 32
Registered: ‎04-09-2010
Message 3 of 9 (580 Views)

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
Laurent Menase
Posts: 1,079
Registered: ‎11-06-2003
Message 4 of 9 (580 Views)

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
TalH
Posts: 32
Registered: ‎04-09-2010
Message 5 of 9 (580 Views)

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

# ls /dev/pts/[1-9a-zA-Z]* | wc
119 119 1419
Honored Contributor
Laurent Menase
Posts: 1,079
Registered: ‎11-06-2003
Message 6 of 9 (580 Views)

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
Rita C Workman
Posts: 3,791
Registered: ‎08-03-2000
Message 7 of 9 (580 Views)

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
Laurent Menase
Posts: 1,079
Registered: ‎11-06-2003
Message 8 of 9 (580 Views)

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
Laurent Menase
Posts: 1,079
Registered: ‎11-06-2003
Message 9 of 9 (580 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.