Wow Javier,<br><br>That's another good one.You're wise men ;-)<br><br>-Javier (bis)<br><br><br><br><div class="gmail_quote">On Wed, Apr 23, 2008 at 9:09 PM, Javier Diaz-Reinoso <<a href="mailto:javier_diaz_r@mac.com">javier_diaz_r@mac.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Try (in 10.5):<br>
<br>
ioreg -l -w 0 | grep IOPlatformSerialNumber<br>
<br>
but what about other OS versions?<div><div></div><div class="Wj3C7c"><br>
<br>
On 23/04/2008, at 13:35, Marc Nijdam wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
if you're willing to write a plugin here's a native snippet of C/ObjC you can use to get the serial number.<br>
<br>
io_service_t platformExpert = IOServiceGetMatchingService(<br>
kIOMasterPortDefault,<br>
IOServiceMatching("IOPlatformExpertDevice"));<br>
<br>
if (platformExpert) {<br>
CFTypeRef serialNumberAsCFString =<br>
IORegistryEntryCreateCFProperty(platformExpert,<br>
CFSTR(kIOPlatformSerialNumberKey),<br>
kCFAllocatorDefault, 0);<br>
IOObjectRelease(platformExpert);<br>
}<br>
<br>
hth,<br>
<br>
--Marc<br>
<br>
On Apr 23, 2008, at 11:28 AM, tim Rowledge wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
On 23-Apr-08, at 10:35 AM, Norbert Hartl wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, 2008-04-23 at 15:00 +0200, Javier Reyes wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Edgar,<br>
<br>
It's for a licensing server. I think I've found a way to do it using<br>
the ethernet physical ID trough:<br>
<br>
Applescript doIt: 'do shell script "ifconfig en0"'.<br>
<br>
And then filtering the physical address.<br>
<br>
</blockquote>
This won't work. Usually the MAC address shown is only a copy<br>
of the number stored on the device. You can alter this address<br>
easily.<br>
</blockquote>
I assume simply replacing the ethernet card - or even just adding one and reassigning which is en0 - would mess it up pretty badly.<br>
<br>
Many CPus have an actual unique ID that is findable somewhere. Even there you're in trouble if the cpu has to be replaced due to failure of upgrade.<br>
<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
The next generation of computers will have a "Warranty Expired" interrupt.<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br>