Currently Being ModeratedJul 31, 2012 6:18 PM (in response to Paul Corr1)
You write that AFPStatus is no help, what do you mean? Is it not showing anything connected or an IP address?
Are you using both AFP and SMB?
Have you tried shutting down orr disconnecting each piece of equipment in turn to see if the users connected count drops to 0? If so the piece of equipment you just turned off is connected.
Currently Being ModeratedJul 31, 2012 7:22 PM (in response to Frank Caggiano)
AFPStatus showed File Sharing (enabled). It did not show an IP address while the Sharing control panel showed 1 connection under File Sharing > Options. I see I have both AFP and SMB enabled in that window.
The simple fix is uncheck File Sharing in the Sharing control panel. That throws everyone off. Re-enabling I then see "0 users connected" in that window.
If I walk to another Mac and connect to this Mac, I show 1 user connected on this Mac. AFPStatus shows it also. If I eject the drive connection on the other Mac using the sidebar, returning to this Mac shows 0 users connected after a few moments. I also hear AFPStatus dinging away with the changes.
So, things seem to be working well now. AFPStatus shows the IP when the other Mac is connected, etc.
By the way, I seem to remember--probably prior to OS X--that one could disconnect a user from a file sharing monitor window. That facility seems to be gone.
I'm not sure why sometimes it works as expected and other times the remote user stays connected somehow. This Mac was not on that Mac's desktop as a drive at the time. (I have show network drives enabled in Finder prefs.)
Currently Being ModeratedJul 31, 2012 7:25 PM (in response to Paul Corr1)
By the way, the AFPStatus "Show Log" option will display a Console log showing incoming connections, close connections, IP and MAC hardware address. All are handy for troubleshooting. I will check there first next time. When I opened it earlier, it had minimal information but it might not have been active. Not sure.
Currently Being ModeratedAug 1, 2012 4:31 PM (in response to Paul Corr1)
Applications using a file reference to your computer can mount a remote disk automatically, as long as the computer is on the network. A command like
will list what machine and user is connected by AFP.
Currently Being ModeratedAug 1, 2012 8:16 PM (in response to Gnarlodious)
Much appreciated! There always seems to be a command-line string that can get you what you want. This, along with AFPStatus after activating logging, will go a long way to troubleshooting more quickly. I have a list of the MAC hardware addresses of our various devices and following the 'netstat' string with 'arp -a' gives me a list to find out who's who. Thanks again.
Currently Being ModeratedAug 1, 2012 9:38 PM (in response to Paul Corr1)
Since you found that useful and gave me points to hit 3,000, here is another tip for advanced OSX users. Open Applescript Editor>Preferences and enable Script Menu in the Menubar. Bring Terminal to the front and click the script menu icon and select the top item "Open Scripts Folder" then "Open Terminal Scripts Folder".
Notice that a new folder will be created for Terminal scripts, which pops open empty. You can do this for any application. This menu is contextual, meaning it changes with whatever application is frontmost. Put an Applescript in this folder containing text like
tell application "Terminal"
if not (exists window 1) then do script ""
do script "netstat -na | grep 548" in front window
Call the script "LAN AFP users.scpt" and put it in that folder. Now you have a convenient way to run the command whenever Terminal is in front. You can clone the script with whatever commands you want, and even make subfolders for a very thorough menu. I have a "Network" submenu containing 31 Applescripts. You can even put text files in the menu. Great Mac feature!