Who's connected to me?

Discussion in 'PowerPC Macs' started by eyoungren, Jun 7, 2014.

  1. eyoungren macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #1
    Just a quick question. Is there an easy way to tell which computers are connected to you?

    I've always been curious about this under OS X but have never asked. I know in OS9 the Users and Groups control panel will show who is connected.

    OS X only seems to tell you that SOMEONE is connected and only if you are shutting down or restarting.

    Now that I have the Quicksilver set up as a Time Machine server I'm just interested in knowing what computer is connected (because it'd be backing up).
     
  2. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #2
    Open a Terminal window (/Applications/Utilities/Terminal) and copy in that Terminal code. It should display all users connected. If you want I will write a script for you.

    Code:
    last |grep "logged in"
     
  3. eyoungren thread starter macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #3
    Isn't this just showing what user accounts on the host machine are logged in?

    I did this while a TM backup was running from one of my other Macs and it didn't say anything about that Mac being connected.

    What I'm looking for is something that tells me what Mac is connected.

    Here's what I mean. My Quicksilver is Youngren14, which is the Mac I would be using to find out what machines are connected to it. My PB is Youngren7, my son's Mac is Youngren10 and my daughter's is Youngren6. The iMac is Youngren17.

    I'm wanting to find out something like this…
    Connected to Youngren14 (IP: 192.168.0.118): Youngren7 (IP:192.168.0.105), etc…
     
  4. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #4
    Do you want a program or a Terminal command?
     
  5. eyoungren thread starter macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #5
    An app would be fine. Thanks!
     
  6. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #6
    I am not aware of one that will do this. I am going to try and write one for you. I am part of the way there from the looks of it... I got it to display the IP addresses but now I need to get the machine identifiers.
     
  7. eyoungren thread starter macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #7
    Maybe this will help…it gets the computer name, i.e., the name displayed on the network.
    Code:
    scutil --get ComputerName
    
     
  8. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #8
    There is a program called xAFP. I did find that if you go to System Preferences--> Sharing --> File Sharing --> Options it will show how many clients...
     
  9. eyoungren thread starter macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #9
    LOL, I forgot about that and I already have it! Thanks!
     
  10. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #10
    That doesn't solve your problem does it? If you had Tiger, I could enable the logging system through a Terminal command then use a shell script in AppleScript to display the results...
     
  11. eyoungren thread starter macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #11
    No, but it's enough. It's a menubar app too so that makes it easy. That'll do.
     
  12. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #12
    I couldn't get it to work with xAFP. I pulled out my PowerBook and connected it to my PowerMac but xAFP didn't work.

    I entered this into Terminal...

    Code:
    netstat -a -p tcp | grep afp | grep ESTABLISHED | awk {'print $5'}
    and got a readout on the IP of just the PowerBook. Great! Now I need machine identifiers or you could assign static IPs to the machines and remember the addresses.

    Let me know if xAFP works. If it doesn't I will keep coding a script.
     
  13. eyoungren thread starter macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #13
    Well, every device on my network is assigned a static address by my router anyway and I generally recognize them. It's working for me and it's enough for a quick check. So, no worries.
     
  14. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #14
    You sure? I could get it done. I just need to get a way to pull the host name from the IP. Unfortunately, most of the commands I am finding are designed for SMB transfer.
     
  15. eyoungren thread starter macrumors P6

    eyoungren

    Joined:
    Aug 31, 2011
    Location:
    Phoenix • 85037
    #15
    Go ahead. More options are always good!
     
  16. Altemose macrumors G3

    Altemose

    Joined:
    Mar 26, 2013
    Location:
    Elkton, Maryland
    #16

Share This Page