[Tutor] How to get MAC address using Python at Solaris

Alan Gauld alan.gauld at btinternet.com
Tue Mar 11 16:00:34 CET 2008

"Henry Zhang" <Hua.Zhang at Sun.COM> wrote

> 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.

The recipe from Andreas is probably rthe best solution but 
you might be able you grep it out of the dmesg log file (or even 
using Popen on dmesg)

quick n dirty...

Just a thought.

Alan G.

More information about the Tutor mailing list