• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get mac address of physical NIC card from firmware
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get mac address of physical NIC card from firmware


  • Subject: Re: Get mac address of physical NIC card from firmware
  • From: "Justin C. Walker" <email@hidden>
  • Date: Thu, 14 Apr 2011 13:01:18 -0700

On Apr 14, 2011, at 10:01 , Prashant Saxena wrote:

> Hi,
>
> First of all, I am a complete newbie on Mac OS X platform and getting my hands
> on slowly. I am writing a tool that should
> print the mac address for appliance activation and license generation. Here are
> the detail of my hardware:

One way to get the physical network addresses available on a given system is to use either "ifconfig" or "scutil", the source for both of which being available to view online and download.  This may provide the information you want, as well as the way to get it.

'ifconfig' uses the (rather convoluted) BSD  library call getifaddrs().

'scutil' uses the SystemConfiguration library to pull the information from configuration information stored with your system.

Check the man pages for each of these commands to see how they are used; and look at the source to see how the information is retrieved from the running system.

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
--
Democracy is two wolves and a lamb
   voting on what to have for lunch.
Liberty is a well-armed lamb contesting
   the vote.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Get mac address of physical NIC card from firmware
      • From: Prashant Saxena <email@hidden>
References: 
 >Re: Get mac address of physical NIC card from firmware (From: Prashant Saxena <email@hidden>)

  • Prev by Date: Re: Get mac address of physical NIC card from firmware
  • Next by Date: Reset contexts of NSURLConnection
  • Previous by thread: Re: Get mac address of physical NIC card from firmware
  • Next by thread: Re: Get mac address of physical NIC card from firmware
  • Index(es):
    • Date
    • Thread