Find Host ID?

Discussion in 'macOS' started by TheMonarch, Apr 13, 2006.

  1. TheMonarch macrumors 65816

    TheMonarch

    Joined:
    May 6, 2005
    Location:
    Bay Area
    #1
    Quick question. How do I find my Mac's Host ID? Preferably using terminal.

    Thanks :)
     
  2. tag macrumors 6502a

    tag

    Joined:
    Apr 29, 2005
    Location:
    PA, US
    #2
    I think this is what your referring to...
    Code:
    uname -n
     
  3. TheMonarch thread starter macrumors 65816

    TheMonarch

    Joined:
    May 6, 2005
    Location:
    Bay Area
    #3
    Hmm. I think its Ethernet ID that I'm looking for. :eek:
     
  4. tag macrumors 6502a

    tag

    Joined:
    Apr 29, 2005
    Location:
    PA, US
    #4
    So your looking for your MAC address for your Ethernet port?

    You can find that with the command 'ifconfig'

    or more specifically if you need it for a script or something and need the ethernet address only you could run something like this...

    Code:
    ifconfig | grep "en0:" -A 3 | grep ether -m 1 | awk '{print $2}'
     
  5. TheMonarch thread starter macrumors 65816

    TheMonarch

    Joined:
    May 6, 2005
    Location:
    Bay Area

Share This Page