Is there any method / API defined to collect system info in osx. I want to write utility which will collect hardware information like CPU,RAM,Network adapter. Any idea ? Thanks
The easiest way is to use the output from the system_profiler command. It also has an -xml option to make the output easy to automatically parse.
-xml