i devlop one intranet application that gives totally hardware information like memor information,harddisk informatation ,i found may shell comand that give me this information
but i can't find mother-board information so if any one had an idea then please tell me.

Dani AI

Generated

On macOS there is no PC-style "motherboard model" exposed to users; Apple refers to it as the logic board, and the closest identifiers you can query are the board-id (logic board family), the overall Mac model identifier, and a few platform properties. Those live in the I/O Registry under the IOPlatformExpertDevice node, which represents the platform (motherboard) driver. (developer-rno.apple.com)

If your intranet app needs just-the-board details (not the full profiler output mentioned), target IOPlatformExpertDevice directly from the shell:

# Logic board family identifier and vendor
ioreg -rd1 -c IOPlatformExpertDevice | awk -F'"' '/board-id/{print $4}'
ioreg -rd1 -c IOPlatformExpertDevice | awk -F'"' '/manufacturer/{print $4}'

# Platform UUID (stable per machine) and overall Mac model identifier
ioreg -rd1 -c IOPlatformExpertDevice | awk -F'"' '/IOPlatformUUID/{print $4}'
sysctl -n hw.model

These commands query the IORegistry and CTL_HW sysctl keys without dumping unrelated data. They work on Intel and Apple Silicon, and return exactly the small set most apps can rely on. See the ioreg and sysctl man pages for flags and available keys. (manpagez.com, keith.github.io)

If you want to do this in code (e.g., a helper binary your web app calls), read the property directly from IOPlatformExpertDevice:

io_service_t pe = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("IOPlatformExpertDevice"));
CFTypeRef board = IORegistryEntryCreateCFProperty(pe, CFSTR("board-id"), kCFAllocatorDefault, 0);
/* board is typically CFData with a UTF-8 string payload; convert and use */

This avoids parsing shell output and returns the same property that the ioreg command prints. (keith.github.io, stackoverflow.com)

Notes:

  • : macOS does not publish a retail-style motherboard part number, so board-id + hw.model is usually what you want. (developer-rno.apple.com)
  • : CHUD tools helped back in the day, but the built-in IORegistry path above is lighter and works across OS releases.
  • Be careful with identifiers like serial numbers; collect only what you need for inventory and avoid storing them unnecessarily. (apple.stackexchange.com)

Recommended Answers

All 5 Replies

There is a command to show full details for the machine which im guessing is the one you have already found, but there are several switches that can be used with it to narrow down the information displayed. Hopefully you can find what your looking for using the commands below.

If you type ....
system_profiler
system_profiler -detailLevel mini

or
system_profiler -detailLevel basic

it will display all details about the machine listed in the System Profiler including the Logic Board details. I am unsure of the exact switch to detail just the board details alone but if you type....

system_profiler man

You will get a list of the switches that can be used and hopefully there will be one to narrow down the results displayed to just the Logic details.

Sorry I can't be of more help but that is just about the only way I can think of getting the information you require.
Hope it helps!

i already use system_profiler command also saw all parameter of it but i can't find mother board information.

In that case then i'm not sure how to get detailed specifics out of the logic.
Please post if you do find a solution as I would be interested to know.
Good luck.
Maddy

The Chud-Tools of XCode, which is on your installer disk, will give you the required information.

best redage

All Supporting MotherBoard For Mac OS x lepord......?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.