]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Prepare a new interview.
[homepage.git] / blog / index.rss
index e11aa1f035b153bf21367011eadc79323070f2fc..86a15fe3a9bbaa9fb284fec4c2fd5e7e81d7c1e8 100644 (file)
@@ -6,6 +6,99 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
+       <item>
+               <title>SOAP based webservice from Dell to check server support status</title>
+               <link>http://people.skolelinux.org/pere/blog/SOAP_based_webservice_from_Dell_to_check_server_support_status.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/SOAP_based_webservice_from_Dell_to_check_server_support_status.html</guid>
+                <pubDate>Fri, 1 Jun 2012 15:20:00 +0200</pubDate>
+               <description>&lt;p&gt;A few years ago I wrote
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/Checking_server_hardware_support_status_for_Dell__HP_and_IBM_servers.html&quot;&gt;how
+to extract support status&lt;/a&gt; for your Dell and HP servers.  Recently
+I have learned from colleges here at the
+&lt;a href=&quot;http://www.uio.no/&quot;&gt;University of Oslo&lt;/a&gt; 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:&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+use strict;
+use warnings;
+use SOAP::Lite;
+use Data::Dumper;
+my $GUID = &#39;11111111-1111-1111-1111-111111111111&#39;;
+my $App = &#39;test&#39;;
+my $servicetag = $ARGV[0] or die &quot;Please supply a servicetag. $!\n&quot;;
+my ($deal, $latest, @dates);
+my $s = SOAP::Lite
+    -&gt; uri(&#39;http://support.dell.com/WebServices/&#39;)
+    -&gt; on_action( sub { join &#39;&#39;, @_ } )
+    -&gt; proxy(&#39;http://xserv.dell.com/services/assetservice.asmx&#39;)
+    ;
+my $a = $s-&gt;GetAssetInformation(
+    SOAP::Data-&gt;name(&#39;guid&#39;)-&gt;value($GUID)-&gt;type(&#39;&#39;),
+    SOAP::Data-&gt;name(&#39;applicationName&#39;)-&gt;value($App)-&gt;type(&#39;&#39;),
+    SOAP::Data-&gt;name(&#39;serviceTags&#39;)-&gt;value($servicetag)-&gt;type(&#39;&#39;),
+);
+print Dumper($a -&gt; result) ;
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;The output can look like this:&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+$VAR1 = {
+          &#39;Asset&#39; =&gt; {
+                     &#39;Entitlements&#39; =&gt; {
+                                       &#39;EntitlementData&#39; =&gt; [
+                                                            {
+                                                              &#39;EntitlementType&#39; =&gt; &#39;Expired&#39;,
+                                                              &#39;EndDate&#39; =&gt; &#39;2009-07-29T00:00:00&#39;,
+                                                              &#39;Provider&#39; =&gt; &#39;&#39;,
+                                                              &#39;StartDate&#39; =&gt; &#39;2006-07-29T00:00:00&#39;,
+                                                              &#39;DaysLeft&#39; =&gt; &#39;0&#39;
+                                                            },
+                                                            {
+                                                              &#39;EntitlementType&#39; =&gt; &#39;Expired&#39;,
+                                                              &#39;EndDate&#39; =&gt; &#39;2009-07-29T00:00:00&#39;,
+                                                              &#39;Provider&#39; =&gt; &#39;&#39;,
+                                                              &#39;StartDate&#39; =&gt; &#39;2006-07-29T00:00:00&#39;,
+                                                              &#39;DaysLeft&#39; =&gt; &#39;0&#39;
+                                                            },
+                                                            {
+                                                              &#39;EntitlementType&#39; =&gt; &#39;Expired&#39;,
+                                                              &#39;EndDate&#39; =&gt; &#39;2007-07-29T00:00:00&#39;,
+                                                              &#39;Provider&#39; =&gt; &#39;&#39;,
+                                                              &#39;StartDate&#39; =&gt; &#39;2006-07-29T00:00:00&#39;,
+                                                              &#39;DaysLeft&#39; =&gt; &#39;0&#39;
+                                                            }
+                                                          ]
+                                     },
+                     &#39;AssetHeaderData&#39; =&gt; {
+                                          &#39;SystemModel&#39; =&gt; &#39;GX620&#39;,
+                                          &#39;ServiceTag&#39; =&gt; &#39;8DSGD2J&#39;,
+                                          &#39;SystemShipDate&#39; =&gt; &#39;2006-07-29T19:00:00-05:00&#39;,
+                                          &#39;Buid&#39; =&gt; &#39;2323&#39;,
+                                          &#39;Region&#39; =&gt; &#39;Europe&#39;,
+                                          &#39;SystemID&#39; =&gt; &#39;PLX_GX620&#39;,
+                                          &#39;SystemType&#39; =&gt; &#39;OptiPlex&#39;
+                                        }
+                   }
+        };
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;I have not been able to find any documentation from Dell about this
+service outside the
+&lt;a href=&quot;http://xserv.dell.com/services/assetservice.asmx?op=GetAssetInformation&quot;&gt;inline
+documentation&lt;/a&gt;, and according to
+&lt;a href=&quot;http://iboyd.net/index.php/2012/02/14/updated-dell-warranty-information-script/&quot;&gt;one
+comment&lt;/a&gt; it can have stability issues, but it is a lot better than
+scraping HTML pages. :)&lt;/p&gt;
+
+&lt;p&gt;Wonder if HP and other server vendors have a similar service.  If
+you know of one, drop me an email. :)&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Veileder fra DIFI om publisering av offentlige data</title>
                <link>http://people.skolelinux.org/pere/blog/Veileder_fra_DIFI_om_publisering_av_offentlige_data.html</link>
@@ -411,7 +504,7 @@ Ikke helt sikker på hva alle feltene er.  Her er mine gjett:&lt;/p&gt;
 &lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;Pris for blyfri 95 oktan, flyttall med punktum som desimalskille.&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;Klokkeslett da prisen ble oppdatert, format HH:MM.  &lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;Telefon-ID på formen Android-123456789012345 eller hex-kodet streng/MD5-sum&lt;/td&gt;&lt;/tr&gt;
-&lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;tall, uviss betydning.  muligens relatert til day-verdien.&lt;/td&gt;&lt;/tr&gt;
+&lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;tall, uviss betydning.  muligens relatert til day-verdien. &lt;b&gt;Oppdatering 2012-06-02: Denne verdien er antall bekreftelse en gitt pris har fått.&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;Pris for blyfri 98-oktan?&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;samme som felt 3&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;8&lt;/td&gt;&lt;td&gt;samme som felt 4&lt;/td&gt;&lt;/tr&gt;
@@ -803,28 +896,5 @@ alternativer.
 </description>
        </item>
        
-       <item>
-               <title>ColorHug - USB and free software based screen color calibration</title>
-               <link>http://people.skolelinux.org/pere/blog/ColorHug___USB_and_free_software_based_screen_color_calibration.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/ColorHug___USB_and_free_software_based_screen_color_calibration.html</guid>
-                <pubDate>Fri, 18 May 2012 10:00:00 +0200</pubDate>
-               <description>&lt;p&gt;In january, I
-&lt;a href=&quot;http://blog.cihar.com/archives/2012/01/17/colorhug-has-arrived/&quot;&gt;discovered
-the ColorHug&lt;/a&gt;, a USB dongle from
-&lt;a href=&quot;http://www.hughski.com/index.html&quot;&gt;Hughski&lt;/a&gt; to calibrate
-the color on a computer screen.  The software required is
-&lt;a href=&quot;http://packages.qa.debian.org/c/colorhug-client.html&quot;&gt;included
-in Debian&lt;/a&gt;, and I decided back then to preorder from the next
-batch.  Yesterday I finally heard back from them, and got the
-opportunity to order.  Today I ordered mine, and eagerly await the
-delivery.  I hope it arrive next week, as I got a confirmation that it
-should go in the mail on monday. :)&lt;/p&gt;
-
-&lt;p&gt;If you want to ensure the colors on the screen match the intended
-colors, I suggest you check out this cheap tool with free software
-drivers. :)&lt;/p&gt;
-</description>
-       </item>
-       
         </channel>
 </rss>