Hardware informations

In windows with ManagementObjectSearcher class you can find the motherboard id.
How can I do that in osx?

There’s no exact equivalent – but try:

About this Mac (from the Apple menu)

Then click More Info.

A Mac is defined by its Machine Model (e.g. MacPro 1,1) not its motherboard (or whatever) since Apple doesn’t build boxes out of random off-the-shelf parts. (Well, not entirely … the RAM, hard disk, and some things are random, off-the-shelf parts.)

(Consequently, you can take a hard disk from one Mac and boot up another Mac from it flawlessly … you generally pay 10-20% premiums to Dell or HP for parts standardization like that.)

I suspect it’s not documented but the motherboard should have a id.
So, how can I identify univocally a mac? I’d prefer to avoid the mac address because yo can have multiple lan card, also you can have multiple processors or hard drive.

Maybe I have to keep all ids. How can I get the cpu id, hard drive id and mac address?

I found it.
http://developer.apple.com/technotes/tn/tn1103.html

And the source:
http://developer.apple.com/samplecode/GetPrimaryMACAddress/index.html

Anyone knows how to convert the c source code in mono calls?