HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems with Terminal ID type
Operating System - HP-UX
1833813
Members
2684
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-01-2005 03:55 AM
10-01-2005 03:55 AM
Problems with Terminal ID type
We are upgrading from a D370 with HP-UX 10.20 to a L2000 with HP-UX 11.0. I am having an issue with the terminal ID assigned when we log on. We have had the D370 for 8 years and have always user WRQ's Reflection Terminal Emulator to access the D370. Our terminal id were always ttyxx, where xx was the unique identifier.
Now, when we log onto the new L2000 using the same Reflection software, our terminal IDs are pts-xx, where the xx is unique. When I log onto the L2000 using X-terminal emulator, we get a ttyxx ID again.
This ttyxx ID is important in many other programs. Is there a place I can change this setting so we still get the ttyxx ID when we use a standard terminal emulator?
Now, when we log onto the new L2000 using the same Reflection software, our terminal IDs are pts-xx, where the xx is unique. When I log onto the L2000 using X-terminal emulator, we get a ttyxx ID again.
This ttyxx ID is important in many other programs. Is there a place I can change this setting so we still get the ttyxx ID when we use a standard terminal emulator?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2005 04:41 AM
10-01-2005 04:41 AM
Re: Problems with Terminal ID type
Hi,
check the Jeff's suggestion in the following thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=209240
Anyway I tried what you said on my 10.20 and 11.00 systems and effectively the behaviour is different.
I think it is own a different project bewteen 10.20 and 11.X, I don't think you can change it.
HTH.
Best regards,
Fabio
check the Jeff's suggestion in the following thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=209240
Anyway I tried what you said on my 10.20 and 11.00 systems and effectively the behaviour is different.
I think it is own a different project bewteen 10.20 and 11.X, I don't think you can change it.
HTH.
Best regards,
Fabio
WISH? IMPROVEMENT!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2005 11:03 AM
10-01-2005 11:03 AM
Re: Problems with Terminal ID type
The ttyXX or ptsXX are *not* teminal ID's, they are the names of the devicefiles chosen by telnetd (or other terminal login handler). 10.20 has been obslete for many years and there have been many changes to the pseudo-terminal handlers, namely streams-based code has replaced the classic (old) driver code. At 11.00 (soon to be obsolete too) and 11.11, more and more of the connection methods have been migrated to streams-based code, so you'll see more ptsXX device files.
It is very important not to depend on the exact name of the devicefile (there's actually a pair of devicefiles, one for write, one for read). The name of the device file will be the same for all programs started in a particular session. The command:
tty
will report the unique devicefile picked by the daemon and will be reported by ps and other programs.
As to the reason for the different devicefile between the two (VERY DIFFERENT) Reflection programs, Reflection/1 or Reflection for HP is a true terminal emulator and connects using telnetd (or ssh if you have that available). But Reflection/X is not a terminal emulator at all. Instead, you start the Reflection Xwindow code which then waits for some remote computer to display something on your screen. If you setup your local Xwindow session (and your HP-UX server) to use CDE on your screen, then you are running code on your HP-UX box. Clicking on a terminal in CDE is not telnet at all--it is a local connection between a program called dtterm (or hpterm or xterm) and it already running on the local HP-UX computer, so it uses a different mechanism to communicate within the same computer.
When you (soon) migrate to 11.11, you'll see even more connections using streams-based code, and thus ptsXX more often. Just don't write any code that expects "tty" (or any particular devicefile name for that matter).
Bill Hassell, sysadmin
It is very important not to depend on the exact name of the devicefile (there's actually a pair of devicefiles, one for write, one for read). The name of the device file will be the same for all programs started in a particular session. The command:
tty
will report the unique devicefile picked by the daemon and will be reported by ps and other programs.
As to the reason for the different devicefile between the two (VERY DIFFERENT) Reflection programs, Reflection/1 or Reflection for HP is a true terminal emulator and connects using telnetd (or ssh if you have that available). But Reflection/X is not a terminal emulator at all. Instead, you start the Reflection Xwindow code which then waits for some remote computer to display something on your screen. If you setup your local Xwindow session (and your HP-UX server) to use CDE on your screen, then you are running code on your HP-UX box. Clicking on a terminal in CDE is not telnet at all--it is a local connection between a program called dtterm (or hpterm or xterm) and it already running on the local HP-UX computer, so it uses a different mechanism to communicate within the same computer.
When you (soon) migrate to 11.11, you'll see even more connections using streams-based code, and thus ptsXX more often. Just don't write any code that expects "tty" (or any particular devicefile name for that matter).
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP