1833325 Members
3129 Online
110051 Solutions
New Discussion

Error on HP Server

 
hmorrison
Advisor

Error on HP Server

Attempted to logon to HP rp8400 server running HPUX 11.11 and got the following message "Server refused to allocate pty" also "ttytype: couldn't open /dev/tty for reading".

What do you think could have caused this.
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Error on HP Server

Probably an insufficient setting for "npty".


Pete

Pete
James George_1
Trusted Contributor

Re: Error on HP Server

Hi

Check the no of pty in the system kernel ( # kmtune -l

If less , you might want to increase the npty value in kernel.

Rgds/ James
forum is for techies .....heaven is for those who are born again !!
Patrick Wallek
Honored Contributor

Re: Error on HP Server

Did this come when trying to login via telnet, ssh or something else?

Check npty, nstrpty and nstrtel kernel parameters. These may need to be adjusted, which will require the kernel to be rebuilt and the system rebooted.
hmorrison
Advisor

Re: Error on HP Server

Thans to all of you for the responses, however, I had checked the npty, its at 750. The nstrpty and nstrtel are both at 60. So I don't think the setting should be causing the problem, however I don't know
Kent Ostby
Honored Contributor

Re: Error on HP Server

You probably need to increase NSTRPTY given your error message.


If you are getting the message about "stty: not a typewriter" as well then check your profiles and check the stty commands in there.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Patrick Wallek
Honored Contributor

Re: Error on HP Server

npty & nstrpty info:
http://docs.hp.com/en/TKP-90202/re61.html?btnNext=next%A0%BB

nstrtel info:
http://docs.hp.com/en/TKP-90202/re65.html?btnNext=next%A0%BB

nstrtel actually controls the number of telnet device files that are configured. If more than 60 users need to connect via telnet, then you need to increase this parameter.

Josiah Henline
Valued Contributor

Re: Error on HP Server

Run the following to command and check for the number of users logged in. Compare the list to a "who -u" output. If they are different, you may have /etc/utmp corruption. The system may think you have more users logged in than actually are.

last|grep "still logged in" |grep -v -e " ftp " -e reboot
If at first you don't succeed, read the man page.