X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/823081c96d77a8af187b0ca9e3b3fcb79117a49a..035c19c46c9f78dc6adf515b8418f9d0b55c709d:/blog/data/2012-06-01-dell-support-json.txt diff --git a/blog/data/2012-06-01-dell-support-json.txt b/blog/data/2012-06-01-dell-support-json.txt index bab0e198e6..bfe25cd799 100644 --- a/blog/data/2012-06-01-dell-support-json.txt +++ b/blog/data/2012-06-01-dell-support-json.txt @@ -5,23 +5,22 @@ Date: 2012-06-01 15:20
A few years ago I wrote how to extract support status for your Dell and HP servers. Recently -I have learned that Dell have made this even easier, by providing a -SOAP based web service. Given the service tag, one can now query the -Dell servers and get machine readable information about the support -status. This perl code demonstrate how to do it:
+I have learned from colleges here at the +University of Oslo that Dell have +made this even easier, by providing a SOAP based web service. Given +the service tag, one can now query the Dell servers and get machine +readable information about the support status. This perl code +demonstrate how to do it:use strict; use warnings; - use SOAP::Lite; use Data::Dumper; - my $GUID = '11111111-1111-1111-1111-111111111111'; my $App = 'test'; my $servicetag = $ARGV[0] or die "Please supply a servicetag. $!\n"; my ($deal, $latest, @dates); - my $s = SOAP::Lite -> uri('http://support.dell.com/WebServices/') -> on_action( sub { join '', @_ } ) @@ -32,11 +31,50 @@ my $a = $s->GetAssetInformation( SOAP::Data->name('applicationName')->value($App)->type(''), SOAP::Data->name('serviceTags')->value($servicetag)->type(''), ); +print Dumper($a -> result) ; +-# Do the grabbing -my $asset = $a -> result; +
The output can look like this:
-print Dumper($asset) ; ++$VAR1 = { + 'Asset' => { + 'Entitlements' => { + 'EntitlementData' => [ + { + 'EntitlementType' => 'Expired', + 'EndDate' => '2009-07-29T00:00:00', + 'Provider' => '', + 'StartDate' => '2006-07-29T00:00:00', + 'DaysLeft' => '0' + }, + { + 'EntitlementType' => 'Expired', + 'EndDate' => '2009-07-29T00:00:00', + 'Provider' => '', + 'StartDate' => '2006-07-29T00:00:00', + 'DaysLeft' => '0' + }, + { + 'EntitlementType' => 'Expired', + 'EndDate' => '2007-07-29T00:00:00', + 'Provider' => '', + 'StartDate' => '2006-07-29T00:00:00', + 'DaysLeft' => '0' + } + ] + }, + 'AssetHeaderData' => { + 'SystemModel' => 'GX620', + 'ServiceTag' => '8DSGD2J', + 'SystemShipDate' => '2006-07-29T19:00:00-05:00', + 'Buid' => '2323', + 'Region' => 'Europe', + 'SystemID' => 'PLX_GX620', + 'SystemType' => 'OptiPlex' + } + } + };
I have not been able to find any documentation from Dell about this