1833083 Members
4241 Online
110050 Solutions
New Discussion

rlogin

 
wangxi
Occasional Contributor

rlogin

expert???
when i use rlogin to login a remote host, i receive a message"
rlogind: Unable to allocate pty on remote host.
Connection closed."

what is this means,how can i do
4 REPLIES 4
S.K. Chan
Honored Contributor

Re: rlogin

You ran out of of pts driver. Do this to verify and if needed increase the pty/s drivers.
a) In SAM->KernelConfig->Drivers
Make sure "ptm", "pts" and "ptem" are in the kernel. If not add them and rebuilt/reboot your machine.
b) After a) is done ..check the number of pty/s drivers ..

# cd /dev/pty
# ls *|wc -l
# cd /dev/pts
# ls *|wc -l

The default should be 60 and if that's the case increase them .. (say to 200)

# cd /dev
# insf -n200 -dpty0
# insf -n200 -dpty1
# insf -d pts -s 200 -e
Steven Sim Kok Leong
Honored Contributor

Re: rlogin

Hi,

This could be caused by insufficient ptys on the remote host.

Check the /var/adm/syslog/syslog.log on the remote host for error messages.

If the problem is caused by insufficient ptys, you can fix this issue by increasing the kernel parameter values of "npty" and "nstrpty".

Hope this helps. Regards.

Steven Sim Kok Leong
Michael Tully
Honored Contributor

Re: rlogin

Hi,

It seems certain that you have insufficient pseudo ttys on your remote system. I always make the habit of creating at least 1000 when I
build a system. You can either use sam to generate a new kernel with the additional values or the command line which is quite easy:

as 'root' (assuming HPUX11 or 11i)

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system
Change existing values or add if they do
not appear as below in the configurable section towards the bootom.

nstrtel 1024
npty 1024
nstrpty 1024

Save the file, then generate your kernel

# mk_kernel -s system
# kmupdate
# cd /
# shutdown -r -y 0

When the system comes up run these commands:

# cd /dev
# insf -d pty -s 1024 -e -v
# insf -d ptm -s 1024 -e -v
# insf -d telm -s 1024 -e -v
# insf -d tels -s 1024 -e -v

This should solve your problem.
Cheers
~Michael~
Anyone for a Mutiny ?
MANOJ SRIVASTAVA
Honored Contributor

Re: rlogin

Hi Wangxi


You may look at the following document :

http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000027709246


also this will b as :


It looks like the npty is maxed out

check for the setting like like


ls /dev/pty | wc -l

and to increase it :

cd /dev
insf -n300 -dpty0
insf -n300 -dpty1
insf -d pts -s 300 -e

this will increse it to 300 from the default ,

Manoj Srivastava