It’s fair to say that I have not done any scripting for HP iLO since the release of their PowerShell scripting toolkit. I simply didn’t have a need. However in the past week I received a request to update my SSL Signing script for iLO to use the HP toolkit, and so I have.
As the HP cmdlets only support iLO3 and above, this script is also only compatible with iLO 3 and above.
The mechanics of the script depart from my previous scripts, in that they require a list of iLO interfaces in a text file, rather than doing DNS queries – this list should be a trivial thing to compile using Find-iLO HP cmdlet. It also no longer makes attempts to correct issues that may cause the certificate to not install correctly, it will simply note the problem and then list the skipped hosts in an exceptions report as the script completes. This greatly simplifies the script.
It would appear that the Practical Admin Blog is read far and wide. This week I got an email from Product Marketing @ HP to let me know that they have released scripting tool for PowerShell recently. Needless to say this is a welcome announcement.
At just on 77,000 lines of code, it quite a substantial libraries of cmdlets, supporting iLO3 and iLO4 devices. In a somewhat strange decision there appears to be no supporting technical documentation linked to the PowerShell scripting tools, unlike the sample scripting tools available for perl & cpqlocfg tools. This has had to leave me delving into the code itself to get an idea what is available.
I am pleased to say that this library of cmdlets appears to have all the functionality my iLO libraries have in the past and would recommend to people have have iLO3 and iLO4 devices to look at this script, or replacing my own scripts with this one.
It’s been a little while since my last post, after getting involved with some major projects, however now that much of that work has been completed, I am now getting back into configuration of iDRACs. With an incressing number of Dell servers appearing at work, I want to get on top of a standard configuration as soon as possible.
My iDRAC PS Library has been out there for a while, so it would seem appropriate to create a bulk updating script with it.
please be aware that in order to run this script you will need the RAC PS Library and the racadm iDRAC tools from Dell (Available on the scripts page). Please make sure you configure the RACLibrary $racadmpath or the scripts will not run.
The iLO PS Library has been updated to version 1.1.2. This release has minor bugfixes and a new function for parsing RIBCL output to obtain the CSR that is created. Latest version of the script can be downloaded of the iLO PS Page.
I have completely re-written the iLO SSL Signing Script in the last week to make use of the iLO PS Library. This has seen a reduction in script code, but more importantly with the assistance of Joe I’ve fixed a couple of significant bugs in the original script – The script will now work properly for iLO3 devices for example. Script can be downloaded from the PS Scripts Page.
On a similar note, the iLO bulk update script for mass configuration has also been updated to use the iLO Library. The result being that the output from the reports is in an object format that is much easier to manipulate in Powershell. Once again, you can obtain on the PS Script Page.
Hot on the heals of the iLO Library, I am pleased to release the Dell iDRAC Powershell Library. This is a script that you “dot include” in the beginning of any script you are writing so that you can have access to the functions.
The library is a wrapper for the Dell RACADM DRAC Tool (check out the Third Party Utils on the Powershell Scripts page to get) which is much like the CPQLOCFG.exe tool for HP.
What I find interesting is that the Dell tool is really well written for applying configuration, but can be a little obtuse about the results it returns (strings mainly), which is the opposite of the HP Tool who use XML for configuration and results information – where I find the XML for configuration a bit obtuse, but excellent for reporting…
Anyway, If you are managing a large number of Dell servers with iDRAC Interfaces in a windows environment, you may wish to take a look at this powershell library – it may be quite handy!
Well it appears that people rather liked the iLO Powershell Library I released last week. Now having had the weekend to relax, and time to start rewriting code to make use of it I have released a 1.1 release of the library to address some of the issues and add some additional functionality.
Functions now have aliases to be more powershell-like. E.g Mod-iLO, Get-iLOVersion etc. Please use these instead of function names. I will be renaming the functions at a later date. The original 1.0 functions will remain as aliases for backward compatibility, but with a depreciated warning.
New Function to Parse the RIBCL output from Mod-iLO Function. This can be used for report generation/actions.
New Function to generate Custom Error Messages for use inline with the Parse-RIBCL* functions. Useful for exception handling.
I’m pleased to release version 1.0 of the Powershell iLO Library. This script incorporates many of the pieces of code used in my scripts in a format that can be included in your own iLO related powershell code. More importantly I have made a number of improvements to the code, mainly around ensuring most functions return an object or array of objects for better result manipulation in PS. It will also mean that I can update the reusable code in one place for my scripts, instead of updating 9 scripts.
This is such a big thing for me, I have created it’s own page.
For those who dabble in powershell and have HP Servers to maintain, I think this may really be of interest to you.