Re: How to determine which Mac s are connected?


Subject: Re: How to determine which Mac s are connected?
From: jhart@abacus.bates.edu
Date: Thu Mar 23 2000 - 10:02:47 EST


Patrik Schindler, poc@pocnet.net writes:

>Indeed, a little goodie to keep track which users were connected from
>which machines would be nice, but I have no idea to keep track of
>AppleTalk users.
>
>Only afpd knows which childs he forks. Perhaps this is one point: Register
>some kind of file in /proc/sys (what about the /proc structure within
>Solaris?)...

We use "ps". Doing a 'ps aux|grep afp' will give you a list of all the
afp processes. The one owned by "root" is the original. All the others
are owned by the login id of the user. To track down machines, you have
to go to the log file: /var/log/messages

  sudo grep afp /var/log/messages

will list out everything, including the process ID. With a little
scripting, it would be possible to "join" the two together by process ID,
thus matching user with machine. Hmmmm....maybe I'll write it and donate
it to the list.

---
Jim Hart
"Organization is necessary for things to exist; Chaos is necessary for 
things to evolve."

-----BEGIN PGP PUBLIC KEY BLOCK----- Version: PGPfreeware 5.0 for non-commercial use <http://www.pgp.com>

mQBvAzOe/64AAAEDAM2s9O/EPXKlnvPOnJDH0f1KWg0iIM4i5tT7aywHcbW2Acgr b7aaTMe0eEMu+aSDjAto9+nYSHGOG/8ni/V7aW60W2zF1AQ8dPcyLZ9l1FaoWcr2 CP8uL2bZNGZvghpEdQARAQABtCBKaW0gSGFydCA8amhhcnRAbWFpbC5hdmNuZXQu b3JnPg== =ymPR -----END PGP PUBLIC KEY BLOCK-----



This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:30:17 EST