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

2008-03-11 Thread Alan Gauld
"Henry Zhang" <[EMAIL PROTECTED]> 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 usi

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

2008-03-11 Thread Andreas Kostyrka
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 add

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

2008-03-11 Thread 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] How to get MAC address using Python at Solaris

2008-03-11 Thread Henry Zhang
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. So could anyone give some comment? Thanks, Henry ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman