Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Run System Profiler from the Terminal -- revisited' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run System Profiler from the Terminal -- revisited
Authored by: g3ski on Jun 20, '03 02:34:58PM

Is there a way to choose what output to get? ie, just the hardware overview, or the devices and volumes.

I realize that I can just cancel the command after I get basics, but thought there might be other ways to amaze and amuze.

I didn't see a man page for "system_profiler"

---
"I want my two dollars!"



[ Reply to This | # ]
Run System Profiler from the Terminal -- revisited
Authored by: Trunkmonkey on Jun 23, '03 11:10:06AM

If you're looking for a specific line of text you can use the grep command:

system_profiler | grep SODIMM

Worked great when a friend needed me to test quite a few gigs of SODIMMs. Drop in two 512MB SODIMMs, reboot in single user, run system_profiler | grep SODIMM, shut down, drop in two more 512MB SODIMMs, et al.

[ Reply to This | # ]

Run System Profiler from the Terminal -- revisited
Authored by: Guano_Jim on Oct 24, '03 11:20:15AM
One way would be to pipe it through a grep... e.g

system_profiler | grep "Customer serial number:"

returns something like:

Customer serial number: QT2885K1-P1S-fe12

Which you could then parse any way you like.

[ Reply to This | # ]
Customize reports
Authored by: DaMacGuy on Jan 02, '04 11:14:56PM
With, at least, the release of 10.3 you can.
system_profiler -listDataTypes
You can get specific info by using
system_profiler datatype datatype etc...

---
-DaMacGuy

[ Reply to This | # ]