1 02/28/85 tty_lines
 2 
 3 Syntax as a command:  tty_lines {arg}
 4 
 5 
 6 Function:  prints information about communications channels defined in
 7 the channel definition table (CDT).  An optional argument can be used
 8 to print information about a subset of channels.
 9 
10 
11 Arguments:
12 id STR
13    prints information about channels on which the terminal most
14    recently dialed up has an identification code specified by STR.  The
15    string STR is four characters long.
16 dlN
17    prints information about each channel that has been dialed up N
18    times or more.
19 d=N
20    prints information about each channel that has been dialed up
21    exactly N times.
22 stN
23    prints information about each channel whose current state code is N
24    (see "Notes" below).
25 
26 
27 acN
28    prints information about each channel whose activity code is N (see
29    "Notes" below).
30 slN
31    prints information about the Nth entry in the CDT.
32 -type STR
33    prints information about each channel on which the most recently
34    dialed terminal was of the terminal type specified by STR.
35 
36 
37 Notes:  If the tty_lines command is given with no argument, it prints
38 information about all channels in the CDT.  For each channel, a line is
39 printed in the following format.
40 
41    NAME   TYPE        D S  W A  BAUD Person_id Project_id (ID) C
42 
43 NAME
44    is the channel name, e.g., a.l006.
45 TYPE
46    is the terminal type that has most recently dialed the channel, or
47    NU if the channel has not been used.
48 D
49    is the number of times the channel has been dialed up.
50 
51 
52 S
53    is the current state of the channel.  It may have one of the
54    following values.
55 
56          1   hung up
57          2   listening (ready for dialup)
58          5   dialed
59 
60 W
61    is an internal variable indicating what the answering service
62    expects to happen next to the channel.
63 
64 
65 A
66    is the activity code for the channel.  It may have one of the
67    following values:
68 
69          1   hung up
70          2   listening (ready for dialup)
71          3   dialed up but not logged in
72          4   user is logged in but process not yet created
73          5   user process has channel
74          6   auto_call line is in process of dialing out
75          7   auto_call line is in use (dial complete)
76 
77 BAUD
78    is the baud rate of the channel
79 
80 
81 Person_id
82    is the Person_id of the current user of the channel.  If A is not 4
83    or 5, this field is omitted.
84 Project_id
85    is the Project_id of the current user of the channel.  If A is not 4
86    or 5, this field is omitted.
87 ID
88    is the identification of the terminal currently using the channel.
89    If S is not 5, this field is omitted.
90 C
91    is the comment field from the CDT entry.