Skip to main content
Answer

Extension Attribute Warranty Status

  • April 18, 2012
  • 10 replies
  • 59 views

Forum|alt.badge.img+6

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.

Best answer by raulsant

http://pastebin.ca/2137941

10 replies

Forum|alt.badge.img+13

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


Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 18, 2012

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.


Forum|alt.badge.img+13

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.


Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 18, 2012

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?


Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 18, 2012

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


Forum|alt.badge.img+6
  • Author
  • Contributor
  • Answer
  • April 19, 2012

http://pastebin.ca/2137941


Forum|alt.badge.img+13

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.


Forum|alt.badge.img+11
  • Employee
  • April 19, 2012

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!


Forum|alt.badge.img+17
  • Employee
  • April 19, 2012

@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...


Forum|alt.badge.img+4
  • Contributor
  • April 19, 2012

Need one of these for Dell's...