(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!
- Edit
Moved scripts to GitHub.