Check AppleCare Protection Plan on OS X Systems

(imported topic written by rzm10291)

Hello All!

I’ve been working with a bunch of awesome people to create a script to check the warranty status of a OS X system. The outcome was two scripts that perform the same functions but are written in different languages. The warranty scripts check against Apple’s website using this url:

replace with your serial number

Official Apple Support&country=USA

Since that output is a little rough to read, the script provides an organized display of this information about each machines:

Serial Number

Product Description

Purchase date

Coverage end

Apple Service Disc Version

Available here:

Using the bash version, I’ve set up a task to run this script on all my OS X systems:

Relevance: name of operating system = “Mac OS X”

Script type sh - with a paste of the bash version:

https://github.com/rustymyers/warranty/blob/master/warranty.sh

I also created a analysis to check the plist and report on the warranty status of the systems:

Relevance: (name of operating system = “Mac OS X”) and (exists file “/Library/appwarranty.plist”)

Properties:

Name: Warranty Script Version

Relevance: string “warrantyscript” of dictionary of file “/Libraryappwarranty.plist”

Name: Warranty Status

Relevance: string “warrantystatus” of dictionary of file “/Library/appwarranty.plist”

Name: Model Type

Relevance: string “modeltype” of dictionary of file “/Library/appwarranty.plist”

Name: Purchase Date

Relevance: string “purchasedate” of dictionary of file “/Library/appwarranty.plist”

Name: Warranty Expires

Relevance: string “warrantyexpires” of dictionary of file “/Library/appwarranty.plist”

Name: Machine ASD Number

Relevance: string “asd” of dictionary of file “/Library/appwarranty.plist”

I’m real happy with the way this turned out. Just wanted to share!

  1. Edit

Moved scripts to GitHub.

(imported comment written by SystemAdmin)

This is awesome!! I was able to install and get info back on our Macs in about 15 minutes. Thanks for sharing - this takes a todo off my list. :slight_smile:

  • Aaron

(imported comment written by SystemAdmin)

Sitting here thinking this would be really cool to incorporate into a Technician Dashboard…

Edit Note: Changed “End User” to “Technician”.

(imported comment written by MattBoyd)

jspanitz

Sitting here thinking this would be really cool to incorporate into an End User Dashboard…

Maybe along with this for Dell workstations… http://forum.bigfix.com/viewtopic.php?pid=24790#p24790

Thanks again for sharing this Rusty!

(imported comment written by SystemAdmin)

LOL - Perfect. Who’s taking this on? :slight_smile:

(imported comment written by rzm10291)

I updated the script today. Added a small modification that helps identify older models. Same links as above.