Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63704
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andriy.kornatskyy@live.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.060 |
| X-Spam-Evidence | '*H*': 0.88; '*S*': 0.00; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'received:65.55.116.7': 0.16; 'subject:port': 0.16; 'wrote:': 0.18; 'thanks.': 0.20; 'import': 0.22; 'cc:addr:python.org': 0.22; 'this?': 0.23; 'port.': 0.24; 'received:65.55.116': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'url:mailman': 0.30; 'received:192.168.10': 0.31; 'url:python': 0.33; 'mac': 0.33; 'from:addr:live.com': 0.36; 'url:listinfo': 0.36; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'thank': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'how': 0.40; 'you.': 0.62; 'address': 0.63; 'to:addr:gmail.com': 0.65; 'sam': 0.68; 'subject:get': 0.81; '2014,': 0.84; '4:26': 0.84 |
| X-TMN | [/8KoMFkOfcVWQrRvdd0XX6wH6GGJY6/F] |
| X-Originating-Email | [andriy.kornatskyy@live.com] |
| Content-Type | text/plain; charset="us-ascii" |
| MIME-Version | 1.0 (Mac OS X Mail 7.1 \(1827\)) |
| Subject | Re: How to get Mac address of ethernet port? |
| From | Andriy Kornatskyy <andriy.kornatskyy@live.com> |
| In-Reply-To | <6a5ceb3f-021d-4acc-b618-ce53530fa2dd@googlegroups.com> |
| Date | Sat, 11 Jan 2014 16:35:19 +0200 |
| Content-Transfer-Encoding | quoted-printable |
| References | <6a5ceb3f-021d-4acc-b618-ce53530fa2dd@googlegroups.com> |
| To | Sam <lightaiyee@gmail.com> |
| X-Mailer | Apple Mail (2.1827) |
| X-OriginalArrivalTime | 11 Jan 2014 14:35:23.0405 (UTC) FILETIME=[5C77D3D0:01CF0EDA] |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5329.1389450993.18130.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1389450993 news.xs4all.nl 2953 [2001:888:2000:d::a6]:58181 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:63704 |
Show key headers only | View raw
Sam, How about this? from uuid import getnode as get_mac '%012x' % get_mac() Thanks. Andriy Kornatskyy On Jan 11, 2014, at 4:26 PM, Sam <lightaiyee@gmail.com> wrote: > I would like to use python to retrieve the mac address of the ethernet port. Can this be done? Thank you. > -- > https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to get Mac address of ethernet port? Sam <lightaiyee@gmail.com> - 2014-01-11 06:26 -0800
Re: How to get Mac address of ethernet port? Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2014-01-11 16:35 +0200
Re: How to get Mac address of ethernet port? "James Harris" <james.harris.1@gmail.com> - 2014-01-11 15:54 +0000
Re: How to get Mac address of ethernet port? Roy Smith <roy@panix.com> - 2014-01-11 11:29 -0500
Re: How to get Mac address of ethernet port? Chris Angelico <rosuav@gmail.com> - 2014-01-12 08:40 +1100
Re: How to get Mac address of ethernet port? Roy Smith <roy@panix.com> - 2014-01-11 16:55 -0500
Re: How to get Mac address of ethernet port? Chris Angelico <rosuav@gmail.com> - 2014-01-12 09:08 +1100
Re: How to get Mac address of ethernet port? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-12 11:22 -0500
Re: How to get Mac address of ethernet port? Chris Angelico <rosuav@gmail.com> - 2014-01-12 01:38 +1100
Re: How to get Mac address of ethernet port? Chris Angelico <rosuav@gmail.com> - 2014-01-12 01:52 +1100
Re: How to get Mac address of ethernet port? Skip Montanaro <skip@pobox.com> - 2014-01-11 09:03 -0600
Re: How to get Mac address of ethernet port? Michael Torrie <torriem@gmail.com> - 2014-01-11 09:34 -0700
Re: How to get Mac address of ethernet port? Sam <lightaiyee@gmail.com> - 2014-01-11 17:25 -0800
Re: How to get Mac address of ethernet port? William Ray Wing <wrw@mac.com> - 2014-01-13 10:42 -0500
Re: How to get Mac address of ethernet port? Chris Angelico <rosuav@gmail.com> - 2014-01-14 03:47 +1100
csiph-web