- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pty or pts devices
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
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
тАО08-26-2003 01:01 AM
тАО08-26-2003 01:01 AM
The only thing I have noticed is that on
10.20 - when I do 'ps -ef' or 'who' all users show as ttyxx or pty/ttyxx.
On our 11.0 test server when I do 'who' the users are now showing as pts/tx. Also when I do a 'ps -ef' or 'top' most processes have a ? as a terminal type.
Your help is much appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2003 02:21 AM
тАО08-26-2003 02:21 AM
Re: pty or pts devices
Maybe this will help you shed some light on the subject.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2003 03:10 AM
тАО08-26-2003 03:10 AM
SolutionUnder 10.20 the pseudo ttys used be controlled by the 'npty' kernel parameter. The 11.x system are looked after by the 'nstrtel' kernel parameter. See the document here:
http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/939/KCParms/KCparams.OverviewAll.html&searchterms=parameters%7ckernel&queryid=20030826-050625
I usually create an abundance of all of them. nstrtel, npty & nstrpty parameters set at 1024. Here's how to create the devices. pts are created from the last command.
# 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2003 03:18 AM
тАО08-26-2003 03:18 AM
Re: pty or pts devices
I'm still confused as to why, when I run top or ps -ef , the tty column displays a question mark against each process.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2003 03:19 AM
тАО08-26-2003 03:19 AM
Re: pty or pts devices
The 11.00 release notes show:
Beginning with HP-UX 10.30, the pseudo-terminal in the telnet/telnetd internet service uses two STREAMS-based pseudo-terminal drivers (telm and tels). Because of this, you must tune NSTRTEL, a new kernel parameter for telnet pseudo-terminals.
NSTRTEL specifies the number of telnet slave devices to be created. The number of telnet sessions is limited by the value of NSTRTEL. The default value of NSTRTEL is 60 and the maximum possible value is set by MAX_STRTELS. Note that if you want to change the value of NSTRTEL, you can use SAM, but you can only increase the value beyond the default of 60 (you cannot make the value less than 60). If you do increase the value, the additional
devices will automatically be created. If a user tries to telnet to a system that does not have any telnet pseudo-terminals available, an appropriate error message is displayed.
The device files are placed in /dev/pts and are named "t0", "t1", and so on.
For more information on telnet, refer to the telnet(1) and telnetd(1M) manpages.
As for the top issue, all the ? entries will be kernel threads and daemons.
Hope it helps. Not the most elegant answer but a clue.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2003 01:58 PM
тАО08-27-2003 01:58 PM
Re: pty or pts devices
classic pty - man pty
used by hpterm, script, and ied
limited by npty kernel tunable
stream pty - man ptm, man pts
used by dtterm, rlogin, and gnome-terminal
limited by nstrpty kernel tunable
telnet pty - man telm, man tels
used by telnet
limited by nstrtel kernel tunable