Discovery and Inventory Group

 View Only

Apple Warranty Information 

Oct 21, 2009 06:26 PM

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. 

Statistics
0 Favorited
0 Views
2 Files
0 Shares
0 Downloads
Attachment(s)
txt file
mac_warranty.sh_.txt   1 KB   1 version
Uploaded - Feb 25, 2020
txt file
MacWarranty_dataclass_definition.xml_.txt   3 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Comments

May 19, 2011 10:11 AM

Unfortunately, it appears that this script does not work any longer. I think Apple requires some sort of authentication for this to work. :(

Oct 26, 2010 04:04 PM

I just got it going.  This is simply amazing and is more useful than I could possibly state in this reply.  Thanks and Bravo!

Cheers,

Bryan

Oct 26, 2010 03:24 PM

Are these the correct implementation steps?

 

  1. Import the Data class "MacWarranty_dataclass_definition.xml" file.
  2. Run the scripton the clients machines.

I just want to make sure I am doing this correctly. 

Nov 17, 2009 02:53 PM

This is very handy Doug, thanks! 

Nov 13, 2009 05:34 PM

I've posted an updated version of the script that does not comment out the serialnumber assignment.

Nov 13, 2009 05:29 PM

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.

Nov 06, 2009 08:17 PM

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.

Related Entries and Links

No Related Resource entered.