[Pythonmac-SIG] Obtaining the hardware address of the first network card

Pieter Claerhout pieter.claerhout@pandora.be
Fri, 12 Apr 2002 09:33:23 +0200


I there are more, then I need only the first one that is found. AppleSystem
Profiler is apparently able to find it out, but I can't seem to figure out
how. I also looked on developer.apple.com for any samples, but most of the
code samples there are targetted to Mac OS X :-(

And yes, not every mac has a network card, but for me, this is a non-issue,
since all the macs that are supposed to run this program do need a network
card, since it's a program designed to be used over a network ;-)

--Pieter


-----Original Message-----
From: pythonmac-sig-admin@python.org
[mailto:pythonmac-sig-admin@python.org]On Behalf Of Deirdre Saoirse Moen
Sent: Friday, April 12, 2002 8:11 AM
To: pieter.claerhout@pandora.be; pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] Obtaining the hardware address of the first
network card


At 12:18 AM +0200 4/12/02, Pieter Claerhout wrote:
>is there a way to obtain the hardware address of the built-in network card
>of your Mac using Python? I found way to get it under command line python
in
>OS X, but it should work on all macintoshes...

In theory, there could be multiple addresses, so how do you presume
to figure out which one? And some Macs don't have ethernet. :)
--
_Deirdre    Stash-o-Matic: http://fuzzyorange.com    http://deirdre.net
"I'm writing a book. I've got the page numbers done."   - Steven Wright



_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig