{"id":167,"date":"2018-02-17T11:02:45","date_gmt":"2018-02-17T11:02:45","guid":{"rendered":"http:\/\/www.oshelp.co.uk\/?p=167"},"modified":"2018-02-17T11:12:26","modified_gmt":"2018-02-17T11:12:26","slug":"get-ahs-data-from-hpe-ilo4-using-powershell","status":"publish","type":"post","link":"https:\/\/www.oshelp.co.uk\/?p=167","title":{"rendered":"Get AHS Data from HPE iLO4+ using PowerShell"},"content":{"rendered":"<p>I discovered this possibility a year back, and it&#8217;s only now I invested the time to get this working! It turned out not to be as challenging as I thought, in fact the hardest bit was getting the authentication token.<\/p>\n<p>I have written a PowerShell function called Get-AHSData which allows you to gather the AHS data from an HPE iLO 4 or newer. These AHS logs are frequently requested by HPE Support when logging calls for Proliant, and downloading these using the iLO UI can be cumbersome &#8211; and involves a mouse!<\/p>\n<p>Get-AHSData will allow you to specify the server, iLO Credentials and a Start \/ End date for the log range if necessary. By default it will grab metrics for 1 day. You specify a folder to export the file to and it will go grab the file and save it there, returning a file list (if you run against multiple iLOs).<\/p>\n<p>Code is out on <a href=\"https:\/\/github.com\/mitsumaui\/Get-AHSData\" target=\"_blank\" rel=\"noopener\">GitHub Here<\/a><\/p>\n<p>Sorry it&#8217;s a little long to embed here, and keeping it in GitHub will allow me to iterate it with improvements without having to circle back and update this page.<\/p>\n<p>An example of this running:<br \/>\n<a href=\"http:\/\/www.oshelp.co.uk\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-17-at-10.59.23.png\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-168\" src=\"http:\/\/www.oshelp.co.uk\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-17-at-10.59.23-1024x383.png\" alt=\"\" width=\"584\" height=\"218\" srcset=\"https:\/\/www.oshelp.co.uk\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-17-at-10.59.23-1024x383.png 1024w, https:\/\/www.oshelp.co.uk\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-17-at-10.59.23-300x112.png 300w, https:\/\/www.oshelp.co.uk\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-17-at-10.59.23-768x287.png 768w, https:\/\/www.oshelp.co.uk\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-17-at-10.59.23-500x187.png 500w, https:\/\/www.oshelp.co.uk\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-17-at-10.59.23.png 1332w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>Let me know on GitHub if you have any issues, or feel free to fork and improve! I already have a couple of enhancements from my colleagues which I will look to include.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I discovered this possibility a year back, and it&#8217;s only now I invested the time to get this working! It turned out not to be as challenging as I thought, in fact the hardest bit was getting the authentication token. &hellip; <a href=\"https:\/\/www.oshelp.co.uk\/?p=167\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[10,19,17],"_links":{"self":[{"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/167"}],"collection":[{"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167"}],"version-history":[{"count":3,"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/167\/revisions\/171"}],"wp:attachment":[{"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oshelp.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}