- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Creating pty device files
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
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
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
01-04-2001 02:37 AM
01-04-2001 02:37 AM
When someone tries to telnet to the system (K260/HP-UX10.20) conection is
closed immediately. The message in syslog is:
telnetd[13420]: Cannot allocate pty
The kernel parameters related to ptys I found are:
npty - 800
nstrpty - 60
nclist - 12900
I think the problem is there are not enough pty (slave/master) device files.
If this is the problem, how to create more pty device files?
Thanks in advance,
Rumen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 02:50 AM
01-04-2001 02:50 AM
Re: Creating pty device files
nstrpty is probably the culprit. This sets the maximum number of streams based PTYs allowed on the system. Use sam to change this configurable kernel parameter.
More information can be found at http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html.
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 04:42 AM
01-04-2001 04:42 AM
Re: Creating pty device files
I increased pty device files by:
insf -d ptym -n 150
insf -d ptys -n 150
where ptym and ptys are kernel drivers (from lsdev). Now I have 150 device files under /dev/ptym/ and /dev/pty/ for master and slave parts of a pty respectively.
nstrpty kernel parameter is related to the number of device files under /dev/pts/, so I did not change it.
I do not know why, but this solved the problem.
Could someone send links to documents that clarify the things about the pseudo teminals and how telnetd works with them?
Rumen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 06:26 AM
01-04-2001 06:26 AM
Re: Creating pty device files
Sorry - I was thinking of dtterm, which uses pts device files.
For more information, check the man pages for pts(7), pty(7), and ptm(7).
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 06:58 AM
01-04-2001 06:58 AM
Re: Creating pty device files
Document #KBRC00000945 should help you. In part:
PTYs are used to open telnet sessions. On 10.x systems they use PTYs(pseudo-terminal) and 11.x systems use PTYs that are pseudo-terminal and Streams-Based.
To check the number of telnet sessions you have available, on the box refusing the connection do:
ls /dev/pty | wc -w
ls /dev/ptym | wc -w
To increase your telnet sessions, increase 'npty'.
1. Use SAM -> Kernel -> Configurable Parameters
npty (10.20 and 11.0)
nstrpty (11.0 only)
Set NPTY and NSTRPTY to 512 where NPTY and NSTRPTY are the desired number of telnet sessions.
2. Rebuild the special device files as follows:
# insf -d ptys -n 512
...(10.20 and 11.0).
# insf -d ptym -n 512
...(10.20 and 11.0)
# insf -d pts -s 512 -e -v
...(for 11.0 only)
...JRF...