Posted on 06-20-2011 11:56 PM
Here is a simple one for checking the status of an Apple Software.
It's a real pain when Mac Mini Servers RAIDs get degraded.
#!/bin/sh
#get RAID Status
status=diskutil appleRAID list | grep "Status:" | awk '{print $2}'
echo "<result>$status</result>"
--
Doug Hanley doug at mac-tek.com - 702-396-0697
Apple Certified Systems Administrator - Apple Certified Trainer
Apple Certified Support Professional - Apple Certified Technical Coordinator
MacTEK Consulting & Training - http://www.Mac-TEK.com
Apple Authorized Training Center (IT & Pro Apps) - Adobe Authorized Training Center
Apple Consultants Network Member - Apple Authorized Service Provider
Posted on 06-21-2011 06:27 AM
Thanks Doug! This will be handy as we have a few of those around.
Tom