Results 1 to 2 of 2
  1. #1
    Mac Address in Computer Name

    Member Since
    Aug 07, 2007
    Posts
    16
    Mac Address in Computer Name
    Hi Guys

    Sorry if this has been covered, I had a look but I couldn't see anything.

    Does anyone know how to set up the mac address of the mac as the computer name via a shell script.

    Thanks in advance

  2. #2
    Mac Address in Computer Name

    Member Since
    Aug 07, 2007
    Posts
    16
    Dont worry I think I have found it it is something like this

    HWADDRESS=`ifconfig en0 | grep ether | awk '{print $2}'`

    NONAME=`echo $HWADDRESS | awk '{ gsub(":", ""); print $0}'`

    sudo scutil --set ComputerName AP$NONAME

    sudo scutil --set HostName AP$NONAME

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. another computer is using your ip address
    By Yodda_Hunter in forum OS X - Operating System
    Replies: 2
    Last Post: 06-10-2013, 07:22 AM
  2. MAC address/Hardware address/Physical address HELP
    By CogitoEAS in forum OS X - Operating System
    Replies: 5
    Last Post: 05-28-2013, 11:06 PM
  3. Can a hacker get into your computer if they have your ISP or IP address?
    By WinterCalm in forum Internet, Networking, and Wireless
    Replies: 4
    Last Post: 02-04-2011, 11:06 PM
  4. How to find IP address of computer through back to my mac?
    By ppxrf in forum OS X - Operating System
    Replies: 2
    Last Post: 01-13-2010, 12:53 PM
  5. Computer lacks IP address
    By anabanana210 in forum Internet, Networking, and Wireless
    Replies: 3
    Last Post: 09-13-2009, 08:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •