Apple Warranty Information
This script retrieves the apple hardware serial number from system_profiler, retrieves the warranty details for that serial number from https://selfsolve.apple.com/Warranty.do and parses various pieces of data from that warranty information. The data retrieved in this version includes:
- SerialNumber
- ProductDesc
- PurchaseDate
- WarrantyExpires
- CoverageDesc
- PHCoverageValue
- PHCoverageDesc
- ImageURL
- PhoneMessage
Additional data may be available from the warranty site.
Nice script! A very useful
Nice script! A very useful example.
Why did you comment this line?
#SerialNumber=`system_profiler...
The script doesn't return data until you uncomment this line.
Code comment
My bad. I did that for testing purposes. I tested on a Mac OS X Server 10.5 Fusion vm, which doesn't have a valid serial number. There was a second line that assigned a valid serial number from another machine, which was removed prior to posting. I'll update the script shortly.
Updated script is now posted
I've posted an updated version of the script that does not comment out the serialnumber assignment.
Pretty Sweet...
This is very handy Doug, thanks!
------------------------------------
Product Manager
Symantec
Would you like to reply?
Login or Register to post your comment.