]> pere.pagekite.me Git - homepage.git/blobdiff - blog/data/2012-06-01-dell-support-json.txt
Correct wording.
[homepage.git] / blog / data / 2012-06-01-dell-support-json.txt
index e228077d21d93246a5b15043d5ff6d693dd3211d..bfe25cd79935ceafd240f5540298deb9024b7860 100644 (file)
@@ -5,23 +5,22 @@ Date: 2012-06-01 15:20
 <p>A few years ago I wrote
 <a href="http://people.skolelinux.org/pere/blog/Checking_server_hardware_support_status_for_Dell__HP_and_IBM_servers.html">how
 to extract support status</a> 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:</p>
+I have learned from colleges here at the
+<a href="http://www.uio.no/">University of Oslo</a> 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:</p>
 
 <p><pre>
 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,7 @@ my $a = $s->GetAssetInformation(
     SOAP::Data->name('applicationName')->value($App)->type(''),
     SOAP::Data->name('serviceTags')->value($servicetag)->type(''),
 );
-
-# Do the grabbing
-my $asset = $a -> result;
-
-print Dumper($asset) ;
+print Dumper($a -> result) ;
 </pre></p>
 
 <p>The output can look like this:</p>