Posted on 04-18-2012 09:22 AM
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.
Solved! Go to Solution.
Posted on 04-19-2012 09:49 AM
http://pastebin.ca/2137941
Posted on 04-18-2012 10:03 AM
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
Posted on 04-18-2012 11:14 AM
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.
Posted on 04-18-2012 11:38 AM
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.
Posted on 04-18-2012 12:09 PM
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?
Posted on 04-18-2012 01:03 PM
I tried just to copy and past your script !external image link
But get no data in the Jss
Posted on 04-19-2012 09:49 AM
http://pastebin.ca/2137941
Posted on 04-19-2012 09:54 AM
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.
Posted on 04-19-2012 10:37 AM
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!
Posted on 04-19-2012 11:44 AM
@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...
Posted on 04-19-2012 12:14 PM
Need one of these for Dell's...