summaryrefslogtreecommitdiff
path: root/apps/drwho/README
blob: af1c4b401c7dfa0aeee92ef0d97c0c4f20099a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
This directory contains the "distributed rwho" (drwho) program.  Drwho
alleviates certain rwho(1) limitations.  For instance it adds
functionality that spans subnets.  In addition, drwho prints a much
more concise listing of who's logged in around a network.

Below are some examples of how to use drwho.

0. Start by running the server in a window or as a daemon, e.g., run
   the following on a local machine, such as tango.cs.wustl.edu:

% drwho-server

Then, If you'd like to find out who's logged in, try the following
commands:

1. Print out the command-line options.

% drwho-client -h
usage: ./drwho-client 
-?      prints a short usage message
-A      append the following hostname to the list of predefined hostnames.
-a      return information on *all* users remotely logged in (uses yp passwd).
-b      run the server in the background (i.e., as a daemon).
-d      turn on debugging.
-F      use the following file contents to initialize the host list.
-f      use the following file contents to initialize the friends database.
-H      use the following hostname as part of the new list of hostnames.
        (this option overwrites the existing default names).
-h      print a long usage message.
-L      print the login name rather than the real name (which is the default).
-l      print information in long format (works for all protocols).
-p      set the port number (server must correspond).
-r      do the remote lookups (i.e., local operations are the default).
-R      print info using the rusers format.
-s      sort the output by login name.
-S      sort the output by real name.
-t      set the amount of time we wait for servers to timeout.
-w      return information on just one user.

----------------------------------------	 

2. Find out which friends are logged in (* means currently active)

% drwho-client -A tango.cs.wustl.edu -r -f ~schmidt/.friends.dta
remote friends logged on
------------------------
*Doug O'las    [tango*(3) mambo]
 Carlos O'Ryan [tango swarm.cs.wustl.edu macarena]
 Irfan Pyarali [merengue]
 Nanbor Wang   [lambada]
 Marina Spivak [mambo]
 Chris Gill    [tango]
*Vishal        [merengue*(2)]
 Kirthika      [tango waltz]
 Naga          [tango polka]
 Alex          [lindy]
 Bala          [cumbia]
 Pradeep       [flamenco]
 Matt Braun    [lambada]
------------------------
friends: 5      users: 168

You'll to write a friends.dta file in order for this feature to work.
Here's one that I've got:

schmidt  Doug O'las
coryan   Carlos O'Ryan
irfan    Irfan Pyarali
levine   David Levine
nanbor   Nanbor Wang
jp4      Jeff Parsons
marina   Marina Spivak
cdgill   Chris Gill
vishal   Vishal
kirthika Kirthika
naga     Naga
alex     Alex
bala     Bala
pradeep  Pradeep
brunsch  Darrell Brunsch
jxh      James Hu
yamuna   Yamuna
mjb2     Matt Braun
gokhale  Andy Gokhale
fredk    Fred Kuhns

If you put this file in ~/.friends.dta drwho will automatically locate
it.

----------------------------------------

3. Find out where a particular person is logged in:

% drwho-client -A tango.cs.wustl.edu -r -w schmidt
tango

This is useful for remote commands that require a hostname, e.g.:

% talk schmidt@`drwho-client -A tango.cs.wustl.edu -r -w schmidt`

or

% rsh `drwho-client -w schmidt` ps
   PID TTY      TIME CMD
  1844 pts/9    0:01 tcsh_6.0
  4821 ?        0:02 perfmete
    77 pts/20   0:01 tcsh_6.0
  4845 pts/2    0:00 tcsh_6.0
  4766 ?        0:00 xmessage
  4850 pts/3    0:06 tcsh_6.0
  5057 pts/4    0:01 tcsh_6.0
  4826 ?       18:07 netscape
  4802 ?        0:07 mwm
% foreach host (`drwho -r -l -w schmidt`)
? echo $host
? rsh $host w | egrep schmidt
? end

----------------------------------------

4. Find out everyone who is logged in everywhere!

% drwho-client -A tango.cs.wustl.edu -r -a 
remote users logged on
------------------------
 rlneblet                          [ascc]
 woody                             [fixer]
 Jyoti Parwatikar                  [hopscotch]
 Stephen D. Scott                  [occam]
 klkramer                          [ascc]
 dmorris                           [ascc]
*pabacard                          [ascc*]
 sestasne                          [ascc]
 Sumedh Mungee                     [merengue lindy]
 Alexander Babu Arulanthu          [lindy]
 Robert A. Rouse                   [siesta]
 asamarak                          [ascc]
 Tom Chaney                        [snoodles]
 Joe Hoffert                       [monkeybars]
 ircornel                          [ascc]
 Chris Cleeland                    [macarena]
*Matthew Karl Lundberg             [enz lcs*(2)]
 dmschult                          [ascc]
 sherlia                           [owen]
*wmwhites                          [ascc*]
 Marius Mihai Tutunaru             [siesta]
 Ken Wong                          [ackbar sarlacc]
 abstutts                          [ascc]
 Barry L. Kalman                   [sachel]
 Yunhong Zhou                      [siesta]
 Marina Igorevna Spivak            [mambo]
 mschraed                          [ascc]
 tuck                              [ascc]
 Daniel Robert Dooly               [cardinal]
 emlentz                           [ascc]
 Margaret Flucke                   [honker yoda brainmap]
 Jonathan S. Pollack               [siesta]
 Gurudatta M. Parulkar             [ackbar]
 Mike Richards                     [teebo]
*Vishal Kachroo                    [merengue*(1)]
 The dump man                      [tapeworm]
 Uooyeol Yoon                      [siesta]
 jtlink                            [ascc]
 Dan Rosenstein                    [tubman]
 cdnorden                          [ascc]
 Jon Turner                        [spanky]
 Stan C. Kwasny                    [lambda]
 aymessin                          [ascc]
 Nanbor Wang                       [lambada]
 wolf                              [sarlacc]
 jgbers                            [ascc]
 Pradeep Gore                      [flamenco]
 Chris D. Gill                     [tango]
 sduseja                           [ascc]
 amgarcia                          [ascc]
*Hongyin Quan                      [ackbar*(2)]
 firemen                           [helen]
*lskafenb                          [ascc*]
 Sally Goldman                     [occam]
 Marcel Waldvogel                  [tiger]
 klforesm                          [ascc]
 Andy Fingerhut                    [yoda leia]
 root@tango                        [tango emperor siren flora helen boushi tapeworm siesta rainier taumsauk honker polka]
 Nagarajan Surendran               [tango polka]
 ajeckste                          [ascc]
 Linda Suri                        [kavita]
 Sarah Elizabeth Burcham           [helen]
 Salathiel Sawyer                  [helen]
 A. Maynard Engebretson            [wicket]
 Theresa Manzara                   [siesta]
 aagrillo                          [ascc]
 ksviehen                          [ascc]
 Will Gillett                      [gel]
 Elaine M Ashton                   [helen]
 James C. Gray                     [siesta]
 Ian Flanigan                      [siesta]
 jacrank                           [ascc]
 Matthew J Braun                   [lambada]
*pjhanrah                          [ascc*]
 Vadim Adamov                      [siesta]
*rbherrin                          [ascc*]
 kslee                             [ascc]
 Balachandran Natarajan            [cumbia]
*Qianbo Huai                       [ecommerce*(2)]
 Scott Thomas Haug                 [bacon kato]
 Yuhua Chen                        [beru]
 blawrenc                          [ascc]
 dcoats                            [ascc]
*sdsinger                          [ascc*]
 Katherine Skirving Larson         [odysseus mas]
 rmcarbon                          [ascc]
 rer                               [luke honker leia]
 Ron Loui                          [ai siesta]
 Sergio Flores                     [tango siesta]
 maint                             [helen]
 mewedeha                          [ascc]
 Scott Simon                       [ackbar]
 weathert                          [anakin hobbie honker]
 Kirthika Parameswaran             [waltz tango]
 Scott Douglas Powers              [greedo buster]
*vehays                            [ascc*]
 Multiagent Systems Research Group [siren]
*Douglas C. Schmidt                [tango*(3) mambo]
 sunyh                             [r2d2]
*jbbrooks                          [ascc*]
 mweisema                          [ascc]
*baruethe                          [ascc*]
 Yan Zhou                          [thunderball]
*jennyc                            [ascc*]
 Karl Stiefvater                   [tamarin helen]
 John Roman                        [helen]
 slstraus                          [ascc]
 Subhash Suri                      [kavita]
 Sandeep Sikka                     [siesta]
 Dna Mutants                       [lcs]
 Irfan Pyarali                     [merengue]
 ajhingst                          [ascc]
 Tuomas Sandholm                   [siren]
 Carlos O'Ryan                     [tango swarm.cs.wustl.edu macarena]
 Tilman Wolf                       [siesta]
------------------------
friends: 20	users: 20

----------------------------------------

5. Print out all machines and who is logged into each one

% drwho-client -A tango.cs.wustl.edu -R -l
kavita             Subhash Suri, Linda Suri
lcs                Matthew Karl Lundberg*(2), Dna Mutants
leia               Andy Fingerhut, rer
rainier            root@tango
thunderball        Yan Zhou
lindy              Sumedh Mungee, Alexander Babu Arulanthu
flamenco           Pradeep Gore
ai                 Ron Loui
wicket             A. Maynard Engebretson
occam              Stephen D. Scott, Sally Goldman
helen              firemen, Sarah Elizabeth Burcham, Elaine M Ashton, root@tango, maint, John Roman, Karl Stiefvater, Salathiel Sawyer
enz                Matthew Karl Lundberg
tamarin            Karl Stiefvater
tiger              Marcel Waldvogel
cumbia             Balachandran Natarajan
r2d2               sunyh
fixer              woody
ecommerce          Qianbo Huai*(2)
lambda             Stan C. Kwasny
boushi             root@tango
mambo              Douglas C. Schmidt, Marina Igorevna Spivak
ascc               slstraus, rmcarbon, aymessin, aagrillo, sdsinger*, dmschult, sestasne, dmorris, jgbers, jennyc*, sduseja, baruethe*, gzhou*, vehays*, pjhanrah*, dcoats, saduthie*, ksviehen, cdnorden, ajhingst*, mschraed, asamarak, pabacard*, mewedeha, ajeckste, jbbrooks, blawrenc, amgarcia, abstutts, klforesm, klkramer, pkshah*, jtlink, jacrank, wmwhites*, kslee, mweisema, emlentz, rlneblet, tuck
beru               Yuhua Chen
emperor            root@tango
siren              Tuomas Sandholm, root@tango, Multiagent Systems Research Group
tubman             Dan Rosenstein
gel                Will Gillett
honker             Margaret Flucke, root@tango, weathert, rer
greedo             Scott Douglas Powers
swarm.cs.wustl.edu Carlos O'Ryan
tapeworm           root@tango, The dump man
siesta             Uooyeol Yoon, Marius Mihai Tutunaru, Vadim Adamov, Robert A. Rouse, Jonathan S. Pollack, James C. Gray, Sergio Flores, Sandeep Sikka, Ron Loui, Yunhong Zhou, Tilman Wolf, Theresa Manzara, Ian Flanigan, root@tango
luke               rer
snoodles           Tom Chaney
ackbar             Ken Wong, Scott Simon, Gurudatta M. Parulkar, Hongyin Quan*(1)
buster             Scott Douglas Powers
tango              Nagarajan Surendran, Sergio Flores, Chris D. Gill, Kirthika Parameswaran, Carlos O'Ryan, root@tango, Douglas C. Schmidt*(3)
teebo              Mike Richards
cardinal           Daniel Robert Dooly
lambada            Nanbor Wang, Matthew J Braun
merengue           Sumedh Mungee, Vishal Kachroo*(1), Irfan Pyarali
macarena           Chris Cleeland, Carlos O'Ryan
sarlacc            wolf, Ken Wong
spanky             Jon Turner
brainmap           Margaret Flucke
polka              Nagarajan Surendran, root@tango
waltz              Kirthika Parameswaran
flora              root@tango
anakin             weathert
bacon              Scott Thomas Haug
hopscotch          Jyoti Parwatikar
mas                Katherine Skirving Larson
kato               Scott Thomas Haug
hobbie             weathert
odysseus           Katherine Skirving Larson
sachel             Barry L. Kalman
taumsauk           root@tango
yoda               Margaret Flucke, Andy Fingerhut
owen               sherlia
monkeybars         Joe Hoffert