best way to poll 40 xserves for model numbers

There is a server farm of about 40 xserves from 2006 through 2009 (model numbers 1,1, 2,1, 3,1). Outside of going to each one and running a system report, is there a way to poll them for that model number (1,1, etc.) so that I could have a report matching machine name to a model number? What's the best way to do it?


Thanks!

Posted on Feb 6, 2014 11:14 PM

Reply
3 replies

Feb 7, 2014 5:29 PM in response to Alex (DV411)

If you have Apple Remote Desktop, this is cake...


Select all your servers and run a Send Unix task. Enter this command:


sysctl -n hw.model


Simple and effective. Or, if you want a more comprehensive report, use the reporting function of ARD and ask for Serial Number and Machine Model (plus just about any other piece of data you need).


Nice server farm by the way. Ah, Xserves. My heart swells with longing.


R-

Apple Consultants Network

Apple Professional Services

Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

Feb 8, 2014 3:30 AM in response to Alex (DV411)

Strontium90's right ARD is definitely tool to use.


I did this not long ago on a more modest 'farm' where the needs, different to yours, you may find useful?


system_profiler SPHardwareDataType | grep Model\ Identifier | awk '{ print $3; }'

system_profiler SPHardwareDataType | grep Serial\ Number | awk '{ print $4; }'

system_profiler SPNetworkDataType | grep IPv4\ Addresses | awk '{ print $3; }'


This 'tied-in' the model and serial number to a particular server's IP address (fixed and therefore known). The resulting data was entered into the customer's audit database afterwards. Took about 15 minutes. The longest (and hardest) part was instructing the customer on how to get that data into their excel spreadsheet.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

best way to poll 40 xserves for model numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.