Re: Unix command primer, was Re: Report gathering-UGH
- Subject: Re: Unix command primer, was Re: Report gathering-UGH
- From: Josh Wisenbaker <email@hidden>
- Date: Wed, 30 Mar 2005 07:33:24 -0500
- Delivered-to: email@hidden
- Delivered-to: email@hidden
On Mar 29, 2005, at 12:44 PM, Chris Devers wrote:
Use the 'system_profiler' command. Here's one way to do it:
$ /usr/sbin/system_profiler -detailLevel 2 | grep 'Serial Number:'
Serial Number: XB4091C1QES
Serial Number: DBDL919610WL
Serial Number: 3JS2XGS7
$
Note a couple of things though:
* this command does a full system scan, so it's pretty slow
You can just tell system_profiler to return a particular section and
speed it up.
"system_profiler SPHardwareDataType"
Will give you just the hardware section.
"ystem_profiler -listDataTypes"
Will show you all the possible data types.
Josh
--
Josh Wisenbaker, ACSA
http://www.afp548.com
Breaking my server to save yours.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/remote-desktop/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.