Dell warranty checking script

Morris, Jason (TSNOW) Jason.Morris at tns-global.com
Fri May 29 07:41:51 CDT 2009


If I recall correctly, Dell usually sells an initial one year warranty
followed by another two year warranty to get the standard three.  When I
plug my laptop service tag I get the following results:

SERIAL_ID:xxxxxxx
PURCHASE_DATE:10/19/2008
COVERAGE_DATE:10/19/2009
DAYS_LEFT:143

Which is accurate for the first year of service.  However, the service
tag pulls up this information directly from Dell's site:

Next Business Day Support	UNY	10/20/2009	10/19/2011
729
Client Gold Support / ProSupport	DELL	10/20/2009
10/19/2011	729
Client Gold Support / ProSupport	DELL	10/19/2008
10/19/2009	143
Next Business Day Support	UNY	10/19/2008	10/19/2009
143

I haven't checked the nagios plugin for verification but I would guess
that it is doing the same thing.  Has anyone else considered this?

I hate to point out the flaw and say nothing of the plugin because I
don't have the ability to write one myself.  Thanks Erinn for putting
this together.

Jason


-----Original Message-----
From: linux-poweredge-bounces at lists.us.dell.com
[mailto:linux-poweredge-bounces at lists.us.dell.com] On Behalf Of Joshua
Daniel Franklin
Sent: Thursday, May 28, 2009 8:04 PM
To: linux-poweredge at lists.us.dell.com
Subject: Re: Dell warranty checking script

On Tue, May 26, 2009 at 4:09 PM, Joshua Daniel Franklin wrote:
> Somewhat unrelated--but if anyone at Dell is listening, I'd also still
> like a web
> service to query warranty status like this Apple JSON one:
>
<https://selfsolve.apple.com/Warranty.do?serialNumber=W844502QPNZ&countr
y=USA&fullCountryName=United%20States>


Well, with Erinn's code it's pretty easy to put up a simple CGI so I
did.
Anyone is welcome to hit it, but no promises:

http://fma.biostr.washington.edu/cgi-bin/dell_warranty.cgi?serial=3BLJ25
1

Right now it just outputs four lines of plan text:

SERIAL_ID:3BLJ251
PURCHASE_DATE:6/14/2004
COVERAGE_DATE:6/14/2007
DAYS_LEFT:0

The var names are based on Apple's because I already had code looking
for those vars.


Here's the whole thing minus get_warranty from Erinn:

if __name__ == '__main__':
	import urllib2
	print "Content-Type: text/plain\n"
	
	form = cgi.FieldStorage()
	if (form.has_key("serial") ):
		s = form["serial"].value
#		s = '2FV2TG1'
		result = get_warranty(s)
		start_date, end_date, days_left = result[0]
		print
'SERIAL_ID:%s\nPURCHASE_DATE:%s\nCOVERAGE_DATE:%s\nDAYS_LEFT:%s' \
	        % (s, start_date, end_date, days_left)

_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge at lists.us.dell.com
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq



More information about the Linux-PowerEdge mailing list