Skip to main content

This script written by Rusty Myers



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



Can be used with ARD to check the status of a computers warranty.



Any way to use it as an Extension Attribute to have it display the status I would think we can just not too sure.

i do the same thing in ruby with this:



https://gist.github.com/2415042



based on earlier work here:



https://github.com/rockpapergoat/scripts/blob/master/misc/warranty.rb


But where you able to Print the result wit the instruction from



https://jamfnation.jamfsoftware.com/article.html?id=92



to add it as an Extension Attribute to JSS i know Casper will do this if you have a GSX



account but there are people like me that dont have one.


yes, this doesn't require a gsx account. it scrapes the details from selfsolve.apple.com. provided apple keeps this page/service up, the scripts will work fine. mine caches the results locally to avoid doing lookups more than once. i also just chopped out the estimated purchase date, not warranty status, in the example i listed above. use the coverage status, if that's what you need.


Any way to use you scrip as a Extension Attribute Populated?



If yes can you please post the xml somewhere or send it my way some how?


I tried just to copy and past your script !external image link
But get no data in the Jss


http://pastebin.ca/2137941


right. you won't get output by copying my script verbatim. i posted it as an example. first, the proxy definition won't work. you'd need to modify the script for your particular needs.


Hi Everyone -



Thanks for posting this extension attribute! This is super helpful.



Just so everyone is aware, there is a spot to upload extension attributes like this one to JAMF Nation. Here is an example of how to do it: https://jamfnation.jamfsoftware.com/tourUploadingFilesExtensionAttributes.html. There are also spots to share scripts, package manifests, licensed software templates, and managed preferences with the community.



Thanks!


@raulsant Delete the portion of the script that reads: , :proxy => "http://proxy.company.com:8080"



If you're not using a proxy server you don't need it. Remove that, or replace with the details of your proxy server and you should be off to the races...


Need one of these for Dell's...