Operating System - HP-UX
1839509 Members
3013 Online
110146 Solutions
New Discussion

finding a physical terminal

 
SOLVED
Go to solution
Fred Martin_1
Valued Contributor

finding a physical terminal

How do I locate a physical terminal from server process information? I have seven DTCs in several buildings.

For example, let's say I have a person logged in to a terminal. 'who' shows me it's been idle for hours:

frank pts/tn May 12 06:25 9:33 20901 dtc6

Frank's terminal has been idle for more than 9 hours and I want to visit the location to wake him up.

How do I track it? I can tell which DTC it is of course, but how can I track it to a particular port? All I have for immediate clues is the tty, which is randomly assigned I think.
fmartin@applicatorssales.com
6 REPLIES 6
Rodney Hills
Honored Contributor
Solution

Re: finding a physical terminal

If you use "ddfa" (do a man ddfa for info) you can define entries in file /etc/ddfa/dp that will assign fixed names to each port on a DTC.

I have named my dtc's DTC01, DTC02, etc. So I use a combiniation of the 2 digit dtc number and the port number to define a port name. For example- Port 2 on Board 1 for DTC03 would be tty0312.

Then when you do "who" or "ps" commands you will be able to identify the dtc and port.

HTH

-- Rod Hills
There be dragons...
Fred Martin_1
Valued Contributor

Re: finding a physical terminal

Interesting.

I set up my serial printers in dp but not terminals. My dp file has four fields:

10.1.2.3 01/19 /dev/dtc1b1p19 /etc/ddfa/pcf

The examples in the comments at the head of the file also only show four fields.

But the man page seems to indicate it can have 5 fields, one of which is psuedonym, and I assume that's what you're talking about.

I hesitate to add a fifth field though; maybe I need a patch?
fmartin@applicatorssales.com
Fred Martin_1
Valued Contributor

Re: finding a physical terminal

Accck. Never mind. man page seems to indicate that for terminals three fields is sufficient:

dtc_name board/port pseudonym

Is that what you've got?
fmartin@applicatorssales.com
Rodney Hills
Honored Contributor

Re: finding a physical terminal

Yes, here is a sample line-

10.32.230.76 00/00 /dev/tty0100

dpp will complain that path is non-standard, since it prefers tty devices to be under folder /dev/telnet. But it still works ok.

-- Rod Hills
There be dragons...
Fred Martin_1
Valued Contributor

Re: finding a physical terminal

The psuedonym appears to be user-defined. If I create one for a terminal, in the same way that I do for a serial printer, like:

dtc2b1p6

Does that mean an ocd process will be started for it?

Looks like I'll have to peruse the man pages some more. Meantime any tips are welcome.
fmartin@applicatorssales.com
Rodney Hills
Honored Contributor

Re: finding a physical terminal

No- an "ocd" will not be created.

When a user connects from the DTC port, ddfa will only modify the terminal device name for the session to what you specify in the "dp" file.

-- Rod Hills
There be dragons...