- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /dev/pts numbering
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
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
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-30-2004 12:45 PM
тАО01-30-2004 12:45 PM
/dev/pts numbering
I have created 1000 entries in /dev/pts: 'ta' through 'tzp'.
What order are they used in?
I've found that after 'tz', 'tA' is used. What will come after tZ?
Thanks!
Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2004 03:00 PM
тАО01-30-2004 03:00 PM
Re: /dev/pts numbering
man 7 pty
But to make things extremely simple, you can run SAM and increase the npty value in the kernel to 1000 (always required or the extra device files will never be used) and SAM will run insf for you. Since you have to change the kernel, SAM is by far the simplest method.
Another note: you'll also need to increase the nstrpty and nstrtel values as many network daemons now use streams-based code to handle pseudo terminal connections. The best choice is to make npty = nstrpty = nstrtel = 1000.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2004 04:51 AM
тАО02-02-2004 04:51 AM
Re: /dev/pts numbering
Thank you for the kernel parameter info.
I looked at the man pages for pty and pts and don't see any reference to the order in which the files are used.
Any further help would be greatly appreciated.
Thanks,
Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2004 05:18 AM
тАО02-02-2004 05:18 AM
Re: /dev/pts numbering
Thats just observation from a trouble call I spent with HP years ago on an 11.00 box.
However during that process for reasons I don't understand the order of allocation was not always consistent. That could be because we had a few corrupt pty's. Or it could be the allocation scheme is different than what I think I observed.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2004 06:05 AM
тАО02-02-2004 06:05 AM
Re: /dev/pts numbering
FILES
/dev/ptym/pty[a-ce-z][0-9][0-9] master pseudo terminals
/dev/ptym/pty[a-ce-z][0-9][0-9][0-9] master pseudo terminals
/dev/ptym/pty[a-ce-z][0-9a-f] master pseudo terminals
/dev/pty[pqr][0-9a-f] master pseudo terminals
/dev/pty/tty[a-ce-z][0-9][0-9] slave pseudo terminals
/dev/pty/tty[a-ce-z][0-9][0-9][0-9] slave pseudo terminals
/dev/pty/tty[a-ce-z][0-9a-f] slave pseudo terminals
/dev/tty[pqr][0-9a-f] slave pseudo terminals
The filenames are shown in regular expressions. [ac-ez] means there is no d in the sequence. The good news is that insf knows all the rules and will populate the directories with the appropriate device files. insf -e will recreate any missing or problem device files. Make sure that the 3 kernel paramters are set correctly first (hint: kmtune | grep -e nstr -e pty)
Bill Hassell, sysadmin