Operating System - HP-UX
1833788 Members
2241 Online
110063 Solutions
New Discussion

Re: Problems with Terminal ID type

 
Jim Rogers_5
Advisor

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?
2 REPLIES 2
Fabio Ettore
Honored Contributor

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
WISH? IMPROVEMENT!
Bill Hassell
Honored Contributor

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