Re: Unique Hostname in production

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



There is no "standard" way of implementing UUID, nor is it a required
feature in CE. Not all platforms have network connectivity, and thus no MAC
address. The point is the IOCTL, if implemented (not required) should
already return a unique value, however it is implemented. Your application
shouldn't need to do anything other than read it.

Note that MAC address programming is something that needs to be done at a
system wide level at manufacturing, generally not by an application running
on the device. Same thing goes for any UUID algorithm. Sometimes you can
use guaranteed unique values that are present in ID chips, flash roms, etc.
No programming necessary...

Bottom line, you never *set* the UUID. It should already be set at mfg or
by hardware design, and you just read it.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Pat O" <pdohara@xxxxxxxxx> wrote in message
news:1193663525.825232.318740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Oct 25, 7:24 pm, Wes B [MSFT] <WesBM...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
You should use a kernel IOCTL to call into the OAL to return a string
that is
a combination of MAC and host ID. The OAL function is typically called
OALIoCtlHalGetUUID(), all the BSP's I have played with have this feature.
--

Wes B [MSFT]

- Show quoted text -

So you are suggesting that I set it to some know value and change it
on first boot? I do know how to get the MAC address, my question was
what technique should I use to know if it has been set? I was hoping
that Platform Builder or the standard APIs might have a call back
method for the initial boot. I will go ahead and implement this in
our Shell replacement.

Pat O
Cognex, Corp.



.



Relevant Pages

  • Re: [PATCH] Time-based RFC 4122 UUID generator
    ... could you please consider adding this patch to your 2.6.25 patch series? ... This patch additionally adds the "Time-based UUID" variant of RFC 4122, ... Look if a net device with a given MAC still exists in this machine. ... If it does not exist any longer, return the MAC address of the _first_ true network card ...
    (Linux-Kernel)
  • Re: Getting Different MACIDs for the same network Adapter
    ... I am trying to fetch the MACID of my System using UUID ... Just a quick verification is to check that you dont have multiple ... I am not sure which MAC adress UuidCreateSequential ... uses to generate UUID. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Why does reading from /dev/urandom deplete entropy so much?
    ... the smolt RPM, since that will use 12 bits of randomness from ... zero randomness in /dev/random, and the time is January 1, 1970, at ... least the MAC will contribute some uniqueness to the UUID. ... We actually had a very vocal minority about all of that which ended up putting us in the unfortunate position of generating a random UUID instead of using a hardware UUID from hal:-/ ...
    (Linux-Kernel)
  • Re: Win2k Server and UuidCreateSequential
    ... Chris ... > Louis Solomon ... that part of UUID is basically the MAC address and it ...
    (microsoft.public.windows.server.general)
  • Re: Office 2008 Question
    ... Do you know what the feature I was referring to where you could double click on the little black square in front of any paragraph and scroll to any other forward or backwards and click on it and have that one take on the style characteristics of the one you copied. ... We Mac people had a fit when Microsoft made Office 4.2.1. ...
    (microsoft.public.mac.office.word)