cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laszlo Hornyak <>
Subject Re: ifconfig and MacAddress
Date Tue, 29 Oct 2013 06:50:21 GMT

I noticed other problem with the MacAddress, it appears that it does not
handle the Windows ipconfig output.
(see related patch) I tested it with
win8, 7, and XP outputs

As far as I remember this may be a problem when running CS cluster on
windows, since each node determines the default as id.

On Sun, Oct 27, 2013 at 1:11 AM, Darren Shepherd <> wrote:

> Is there a specific reason that in MacAddress it uses "ifconfig" or
> other utilities to grab the Mac Address as opposed to the java API
>  There's a comment in that code that says
> that code was copied from some public domain utility.  So I'm guessing
> its there just because that's what somebody wrote back before Java 6
> introduced NetworkInteface.getHardwareAddress().  I'd like to rewrite
> this code to use the standard API, grab the Mac deterministically and
> also not use ifconfig which was deprecated 3 years ago.
> Darren



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message