- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to get pty
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 07:13 AM
тАО09-26-2001 07:13 AM
We recently started receiving this message and I was wondering what the fix might be. I another user that posted this exact same problem back in Oct 2000. I ensured that the permissions on /usr/dt/bin/dtterm were:
-r-sr-xr-x (they are). I also ran dr_dt and received no an error about hostname and a warning about the /etc/named file does not match the correct permissions. We are running HP-UX 10.20. Any help is appreciated. Thanks!
Andre
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 07:32 AM
тАО09-26-2001 07:32 AM
Re: Unable to get pty
try increasing npty kernel parameter.
just a thought
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 07:37 AM
тАО09-26-2001 07:37 AM
Re: Unable to get pty
Check the permissions on /usr/dt/bin/dtterm if you are getting it when you are trying to open dt/xterms. The permissions on dtterm are supposed to be -r-sr-xr-x . Also, check the permissions over /dev/pty*. The group should be tty. Try insf -e.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 07:45 AM
тАО09-26-2001 07:45 AM
Re: Unable to get pty
Andre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 07:56 AM
тАО09-26-2001 07:56 AM
Re: Unable to get pty
take a look at this thread... especially the answer by Ian about finding out how many pty processes you have running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2001 07:56 AM
тАО09-26-2001 07:56 AM
Re: Unable to get pty
take a look at this thread... especially the answer by Ian about finding out how many pty processes you have running.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x51d5f841489fd4118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 04:06 AM
тАО09-27-2001 04:06 AM
Re: Unable to get pty
I read Ian's posts and ran the commands that were listed. Here are the results as of 12:30pm EST:
ll /dev/pty* | wc -l
16095
ps -ef | grep pty* | wc -l
77
ps -ef | grep nstrpty* | wc -l
1
I'm still getting my feet wet in Unix so if I seem to stumble a bit please bear with me. We also have a lof of other filesystems mounted and I was wondering if they are being counted as well. Also, if I adjust the npty and nstrpty values through SAM, what other configuration values will be adjusted? I really appreciate all the help that I've received. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 04:21 AM
тАО09-27-2001 04:21 AM
Re: Unable to get pty
If it is still giving you an error at this level of use then that is not the problem. If the connections increase above your limit and then you get the error, then i would increase the numbers... not now...
I'll have to think of what else to try...
sorry, wrong guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 04:37 AM
тАО09-27-2001 04:37 AM
Re: Unable to get pty
#ll /dev/ttyp* | wc -l
Take a look at this message i found on the hp developers website... I think my original hunch might be right after all, but i was pointing you to the wrong type of pty...
--------
| I am facing a problem with hp-ux 11 m/c.
| Whenever I start x-windows and open terminal, am getting the error
| "Unable to get PTY"
| However,I am able to do a telnet since it uses a tty
| For your info.: The number of users/terminals opened are well under the
| limit.
This is really off-topic for cxx-dev. You should take this kind of OS
question to http://forums.itrc.hp.com/cm/ or news:comp.sys.hp.hpux .
There are actually three different types of ptys in HP-UX 11.00. You
can see them all among the output of lsdev-
Character Block Driver Class
16 -1 ptym ptym
17 -1 ptys ptys
139 -1 telm strtelm
140 -1 tels strtels
156 -1 ptm strptym
157 -1 pts strptys
The telnet connection uses "telnet stream" ptys. The slave side of those
appear as /dev/pts/t*. The dtterm and hpterm terminals use "stream" ptys.
The slave side of those appear as /dev/pts/[0-9]*. The xterm terminal uses
plain old ptys. The slave side of those appear as /dev/ttyp*. Each type
of pty has different kernel parameter limits and different device files.
Check the kernel parameters and try recreating the device files with insf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 06:09 AM
тАО09-27-2001 06:09 AM
SolutionI think we have run into this problem before with systems here. The problem wasn't the npty parameter as it was set plenty high. Our problem was that we had to do an 'insf -e' to get the additional pty devices created. I ran into this problem last month with a new system that I cloned via Ignite-UX. Everything was great until about 70-80 people opened telnet sessions. The 'insf -e' fixed things quick for us.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 06:23 AM
тАО09-27-2001 06:23 AM
Re: Unable to get pty
just because you change the values in the kernel for the 3 type of ptys that doesn't create the dev files. You have to:
#insf -evd ptys -n (number in kernel)
#insf -evd ptym -n (number in kernel)
#insf -evd pts -n (number in kernel)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 09:40 AM
тАО09-27-2001 09:40 AM
Re: Unable to get pty
I did the 'insf' command with the e,v,d and n options (with the values set in the kernel) and so far it looks like it's working fine. I was able to open more than five different windows (which I could not do before) without the error. I'll monitor this for a few days and post back to let you know the status. Thanks again for everything.
Andre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 04:38 AM
тАО10-03-2001 04:38 AM
Re: Unable to get pty
It's been almost a week since I applied the solutions that were suggested and everything is working great. Thanks again for all of your help.
Andre