[Tutor] How to get MAC address using Python at Solaris
Andreas Kostyrka
andreas at kostyrka.org
Tue Mar 11 12:13:48 CET 2008
Alternatively, follow the recipe at
http://www.tech-recipes.com/solaris_networking_tips785.html
You can either just copy&paste the script and use that with popen, or
you can reimplement it mostly in Python, calling the seperate programs.
The basica gist of this seems to be, figure out your IP address, dump
the ARP table and look for the IP address.
Andreas
Am Dienstag, den 11.03.2008, 10:56 +0000 schrieb Tim Golden:
> Henry Zhang wrote:
> > Hi there,
> >
> > I am curious if there is any way in Python to get MAC address at
> > Solaris? I searched from google, didn't find a good idea.
>
> Not tried it, but this looks hopeful at least:
>
> http://pypi.python.org/pypi/netifaces/0.4
>
> TJG
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://mail.python.org/pipermail/tutor/attachments/20080311/28329173/attachment.pgp
More information about the Tutor
mailing list