"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
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
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
___
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