Wow Javier,<br><br>That&#39;s another good one.You&#39;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 &lt;<a href="mailto:javier_diaz_r@mac.com">javier_diaz_r@mac.com</a>&gt; 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>
 &nbsp;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&#39;re willing to write a plugin here&#39;s a native snippet of C/ObjC you can use to get the serial number.<br>
<br>
 &nbsp; io_service_t platformExpert = IOServiceGetMatchingService(<br>
 &nbsp; &nbsp; &nbsp; kIOMasterPortDefault,<br>
 &nbsp; &nbsp; &nbsp; IOServiceMatching(&quot;IOPlatformExpertDevice&quot;));<br>
<br>
 &nbsp; if (platformExpert) {<br>
 &nbsp; &nbsp; &nbsp; CFTypeRef serialNumberAsCFString =<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IORegistryEntryCreateCFProperty(platformExpert,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CFSTR(kIOPlatformSerialNumberKey),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kCFAllocatorDefault, 0);<br>
 &nbsp; &nbsp; &nbsp; IOObjectRelease(platformExpert);<br>
 &nbsp; }<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&#39;s for a licensing server. I think I&#39;ve found a way to do it using<br>
the ethernet physical ID trough:<br>
<br>
Applescript doIt: &#39;do shell script &quot;ifconfig en0&quot;&#39;.<br>
<br>
And then filtering the physical address.<br>
<br>
</blockquote>
This won&#39;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&#39;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 &quot;Warranty Expired&quot; interrupt.<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br>