Warranty not displaying correctly?

66 views
Skip to first unread message

Steve Brito

unread,
Dec 13, 2012, 4:13:16 PM12/13/12
to munkise...@googlegroups.com
I read in an old post that munkiserver wasn't using the new GSX APIs to collect warranty info and may cause issues down the road, and I was wondering if this is related.

I am running the latest build of munkiserver on a mountain lion server and everything except warranties are working perfectly(in both dev and production environments) When I refresh the warranty info I get the same info from every machine. When I go to Apples site and check warranty the information is different. I've attached a screenshot for what I'm seeing in munkiserver.

Any suggestions would be awesome! Let me know if you need anymore info.

Thanks!
Steve
Screen Shot 2012-12-13 at 1.09.32 PM.png

Jordan Raine

unread,
Dec 13, 2012, 4:20:29 PM12/13/12
to munkise...@googlegroups.com
Hey Steve,
Yep, if the API has changed since warranties was first implemented, it's probably not working as it should. Do you have info on the new API?

-- 
Jordan Raine

--
You received this message because you are subscribed to the Google Groups "munkiserver-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/munkiserver-dev/-/qyDH_Uf7i4AJ.
To post to this group, send email to munkise...@googlegroups.com.
To unsubscribe from this group, send email to munkiserver-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/munkiserver-dev?hl=en.

Steve Brito

unread,
Dec 13, 2012, 6:24:01 PM12/13/12
to munkise...@googlegroups.com
Hey Jordan,

Unfortunately I don't have any info on the API just yet, but I am trying to get my company GSX certified at the moment so if I find anything I will be sure to update here.

Thanks again,
Steve

Jordan Raine

unread,
Dec 13, 2012, 10:37:13 PM12/13/12
to munkise...@googlegroups.com
Thanks Steve. That would be awesome. 
To view this discussion on the web visit https://groups.google.com/d/msg/munkiserver-dev/-/6AjgsONOLV0J.

Ricky Chilcott

unread,
Dec 14, 2012, 9:13:42 AM12/14/12
to munkise...@googlegroups.com
Our university has a GSX account and I just poked through the docs and came up with this:

"GSX WS supports following standards to facilitate smoother integration between various platforms (Java EE, .Net etc).
1. SOAP 1.1
2. WSDL 1.1 
3. WS-I basic profile 1.1
4. XSD Schema"

So, looks like we'll have to implement SOAP to do what spot we want. Also, based on what I'm reading -- and it is a QUICK reading -- it looks like in order to get access to production data, each company needs to first connect their MunkiServer to the 'testing' API and then apply to Apple for 'production' access.  If anyone has a different read on this or can explain it better, please let me know

Phil Monroe was the person that originally implemented GSX support while he was an undergrad at Ohio University.  He is no longer working for us.  I had Phil implement the feature before the GSX API had changed, but it's looks like Apple has added quite a bit of complexity to the API.

Ricky

To view this discussion on the web visit https://groups.google.com/d/msg/munkiserver-dev/-/6AjgsONOLV0J.

bruienne

unread,
Dec 14, 2012, 10:32:36 AM12/14/12
to munkise...@googlegroups.com
FWIW, since Apple made changes to the warranty checks and its ability to be easily polled without using GSX API access Michael Lynn (frogor on ##osx-server) wrote the following Python code to look up warranty info: https://github.com/pudquick/pyMacWarranty

Not sure how useful it is considering MS is a Rails project but it might be able to just be called as an external executable and pull the info that MS expects.

Thanks,
Pepijn.

Ricky Chilcott

unread,
Dec 14, 2012, 6:36:11 PM12/14/12
to munkise...@googlegroups.com
Great find Pepjin.  We could add this as a submodule to MS and re-write the warranty logic to parse the output of this command.    Jordan, do you think that's the right direction?

--
You received this message because you are subscribed to the Google Groups "munkiserver-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/munkiserver-dev/-/c4Rf6ilDlvAJ.

Gregory Neagle

unread,
Dec 14, 2012, 6:37:57 PM12/14/12
to munkise...@googlegroups.com
Apple has changed this data several times in the last year; they may well do so again. Expect this to break again in the future.

-Greg

Ricky Chilcott

unread,
Dec 15, 2012, 10:43:12 AM12/15/12
to munkise...@googlegroups.com
Thanks Greg for that insight.  

I think the benefits of using a tool like pyMacWarranty as an abstraction of warranty data is that a)Michael Lynn is likely to keep it up to date and b) it won't be too hard for us or him to make minor changes to his tool to work with GSX API changes.  Abstractions are a good thing, particularly when the underlying data structures are in a state of flux.  And re-implimenting this already working Python tool is not a good use of our time.

Ricky

Ricky Chilcott

unread,
Dec 22, 2012, 12:03:46 AM12/22/12
to munkise...@googlegroups.com
Found this tonight too: https://github.com/rustymyers/warranty/blob/master/warranty2.sh

I believe Phil Monroe adapted Rusty's original scripts into MunkiServer to make this happen.  It may be no work at all.  I just tested parts of the script and it seems to work just fine.

Ricky
Reply all
Reply to author
Forward
0 new messages