3 This directory contains the "distributed rwho" (drwho) program. Drwho
4 alleviates certain rwho(1) limitations. For instance it adds
5 functionality that spans subnets. In addition, drwho prints a much
6 more concise listing of who's logged in around a network.
8 Below are some examples of how to use drwho.
10 0. Start by running the server in a window or as a daemon, e.g., run
11 the following on a local machine, such as tango.cs.wustl.edu:
15 Then, If you'd like to find out who's logged in, try the following
18 1. Print out the command-line options.
22 -? prints a short usage message
23 -A append the following hostname to the list of predefined hostnames.
24 -a return information on *all* users remotely logged in (uses yp passwd).
25 -b run the server in the background (i.e., as a daemon).
27 -F use the following file contents to initialize the host list.
28 -f use the following file contents to initialize the friends database.
29 -H use the following hostname as part of the new list of hostnames.
30 (this option overwrites the existing default names).
31 -h print a long usage message.
32 -L print the login name rather than the real name (which is the default).
33 -l print information in long format (works for all protocols).
34 -p set the port number (server must correspond).
35 -r do the remote lookups (i.e., local operations are the default).
36 -R print info using the rusers format.
37 -s sort the output by login name.
38 -S sort the output by real name.
39 -t set the amount of time we wait for servers to timeout.
40 -w return information on just one user.
42 ----------------------------------------
44 2. Find out which friends are logged in (* means currently active)
46 % drwho-client -A tango.cs.wustl.edu -r -f ~schmidt/.friends.dta
47 remote friends logged on
48 ------------------------
49 *Doug O'las [tango*(3) mambo]
50 Carlos O'Ryan [tango swarm.cs.wustl.edu macarena]
51 Irfan Pyarali [merengue]
55 *Vishal [merengue*(2)]
56 Kirthika [tango waltz]
62 ------------------------
65 You'll to write a friends.dta file in order for this feature to work.
66 Here's one that I've got:
82 brunsch Darrell Brunsch
89 If you put this file in ~/.friends.dta drwho will automatically locate
92 ----------------------------------------
94 3. Find out where a particular person is logged in:
96 % drwho-client -A tango.cs.wustl.edu -r -w schmidt
99 This is useful for remote commands that require a hostname, e.g.:
101 % talk schmidt@`drwho-client -A tango.cs.wustl.edu -r -w schmidt`
105 % rsh `drwho-client -w schmidt` ps
107 1844 pts/9 0:01 tcsh_6.0
109 77 pts/20 0:01 tcsh_6.0
110 4845 pts/2 0:00 tcsh_6.0
112 4850 pts/3 0:06 tcsh_6.0
113 5057 pts/4 0:01 tcsh_6.0
114 4826 ? 18:07 netscape
116 % foreach host (`drwho -r -l -w schmidt`)
118 ? rsh $host w | grep -E schmidt
121 ----------------------------------------
123 4. Find out everyone who is logged in everywhere!
125 % drwho-client -A tango.cs.wustl.edu -r -a
126 remote users logged on
127 ------------------------
130 Jyoti Parwatikar [hopscotch]
131 Stephen D. Scott [occam]
136 Sumedh Mungee [merengue lindy]
137 Alexander Babu Arulanthu [lindy]
138 Robert A. Rouse [siesta]
140 Tom Chaney [snoodles]
141 Joe Hoffert [monkeybars]
143 Chris Cleeland [macarena]
144 *Matthew Karl Lundberg [enz lcs*(2)]
148 Marius Mihai Tutunaru [siesta]
149 Ken Wong [ackbar sarlacc]
151 Barry L. Kalman [sachel]
152 Yunhong Zhou [siesta]
153 Marina Igorevna Spivak [mambo]
156 Daniel Robert Dooly [cardinal]
158 Margaret Flucke [honker yoda brainmap]
159 Jonathan S. Pollack [siesta]
160 Gurudatta M. Parulkar [ackbar]
161 Mike Richards [teebo]
162 *Vishal Kachroo [merengue*(1)]
163 The dump man [tapeworm]
164 Uooyeol Yoon [siesta]
166 Dan Rosenstein [tubman]
169 Stan C. Kwasny [lambda]
171 Nanbor Wang [lambada]
174 Pradeep Gore [flamenco]
175 Chris D. Gill [tango]
178 *Hongyin Quan [ackbar*(2)]
181 Sally Goldman [occam]
182 Marcel Waldvogel [tiger]
184 Andy Fingerhut [yoda leia]
185 root@tango [tango emperor siren flora helen boushi tapeworm siesta rainier taumsauk honker polka]
186 Nagarajan Surendran [tango polka]
189 Sarah Elizabeth Burcham [helen]
190 Salathiel Sawyer [helen]
191 A. Maynard Engebretson [wicket]
192 Theresa Manzara [siesta]
196 Elaine M Ashton [helen]
197 James C. Gray [siesta]
198 Ian Flanigan [siesta]
200 Matthew J Braun [lambada]
202 Vadim Adamov [siesta]
205 Balachandran Natarajan [cumbia]
206 *Qianbo Huai [ecommerce*(2)]
207 Scott Thomas Haug [bacon kato]
212 Katherine Skirving Larson [odysseus mas]
214 rer [luke honker leia]
216 Sergio Flores [tango siesta]
220 weathert [anakin hobbie honker]
221 Kirthika Parameswaran [waltz tango]
222 Scott Douglas Powers [greedo buster]
224 Multiagent Systems Research Group [siren]
225 *Douglas C. Schmidt [tango*(3) mambo]
230 Yan Zhou [thunderball]
232 Karl Stiefvater [tamarin helen]
235 Subhash Suri [kavita]
236 Sandeep Sikka [siesta]
238 Irfan Pyarali [merengue]
240 Tuomas Sandholm [siren]
241 Carlos O'Ryan [tango swarm.cs.wustl.edu macarena]
243 ------------------------
244 friends: 20 users: 20
246 ----------------------------------------
248 5. Print out all machines and who is logged into each one
250 % drwho-client -A tango.cs.wustl.edu -R -l
251 kavita Subhash Suri, Linda Suri
252 lcs Matthew Karl Lundberg*(2), Dna Mutants
253 leia Andy Fingerhut, rer
256 lindy Sumedh Mungee, Alexander Babu Arulanthu
257 flamenco Pradeep Gore
259 wicket A. Maynard Engebretson
260 occam Stephen D. Scott, Sally Goldman
261 helen firemen, Sarah Elizabeth Burcham, Elaine M Ashton, root@tango, maint, John Roman, Karl Stiefvater, Salathiel Sawyer
262 enz Matthew Karl Lundberg
263 tamarin Karl Stiefvater
264 tiger Marcel Waldvogel
265 cumbia Balachandran Natarajan
268 ecommerce Qianbo Huai*(2)
269 lambda Stan C. Kwasny
271 mambo Douglas C. Schmidt, Marina Igorevna Spivak
272 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
275 siren Tuomas Sandholm, root@tango, Multiagent Systems Research Group
276 tubman Dan Rosenstein
278 honker Margaret Flucke, root@tango, weathert, rer
279 greedo Scott Douglas Powers
280 swarm.cs.wustl.edu Carlos O'Ryan
281 tapeworm root@tango, The dump man
282 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
285 ackbar Ken Wong, Scott Simon, Gurudatta M. Parulkar, Hongyin Quan*(1)
286 buster Scott Douglas Powers
287 tango Nagarajan Surendran, Sergio Flores, Chris D. Gill, Kirthika Parameswaran, Carlos O'Ryan, root@tango, Douglas C. Schmidt*(3)
289 cardinal Daniel Robert Dooly
290 lambada Nanbor Wang, Matthew J Braun
291 merengue Sumedh Mungee, Vishal Kachroo*(1), Irfan Pyarali
292 macarena Chris Cleeland, Carlos O'Ryan
293 sarlacc wolf, Ken Wong
295 brainmap Margaret Flucke
296 polka Nagarajan Surendran, root@tango
297 waltz Kirthika Parameswaran
300 bacon Scott Thomas Haug
301 hopscotch Jyoti Parwatikar
302 mas Katherine Skirving Larson
303 kato Scott Thomas Haug
305 odysseus Katherine Skirving Larson
306 sachel Barry L. Kalman
308 yoda Margaret Flucke, Andy Fingerhut
310 monkeybars Joe Hoffert