Thursday, April 25, 2013

Retrieve Mac serial number from command line

Oftentimes it is convenient to retrieve system information via the command line tool system_profiler. This is specifically useful in an organization where you have SSH access to a machine but don't have a complete inventory solution in place.

To retrieve the serial number of a Macintosh computer, either SSH to the computer or from the Terminal enter in system_profiler |grep "r (system) and the computer serial number is displayed.

We will delve into system_profiler more in future posts!

No comments:

Post a Comment