Recently I came across updating firmware on some HP MSA appliances.
As there were many different disk drives models on those, I started to wonder – how would I know if any new firmware has been released?
I didn’t want to search firmware for 10 different disk drives models every quarter neither. Firstly because I would forget, secondly – time consuming.
It was no brainer that I needed some automation for that stuff.
I found a HP website providing disk drives firmwares:
Unfortunately I was not able to find any of these for controller firmwares or enclosures.
Fortunately for controllers and enclosures checkout is easy, also usually we get information in controller firmware documentation which firmware revision is recommended for enclosure.
Script need to have current MSA firmware information in a JSON file – as for now this process is not automated and information need to be put manually in the JSON file.
What script does is it is going though mentioned website creating hash array of objects basing on very hideous HTML parsing (yup, I know it is ugly AF but well… works ^^).
After it got all that shit from the website, it runs array one by one checking looking for particular object by disk model, and comparing it’s current firmware revision from JSON to what it found on the website.
And here is the thing, there are 3 statuses:
Green – disk has the newest firmware
Light Green – disk most probably has the newest firmware.
Red – disk has an old firmware
You might ask – why we need Light Green. Well, sometimes one disk drive model is visible twice as different model, like below:
So these two are the same model, but have different firmware.
If script finds such situation, it checks if your firmware revision is among these found on the website – it also lists what firmware revisions have been found for that particular drive model. If your firmware revision is there – drive is reported as light green.
Output should look like:
As you probably noticed for controllers there is just list to verify firmware version – I didn’t find any good source to script can run trough it checking if it is up to date, so as a workaround there is a fixed link in JSON file – it is always better just to click it and check current version than to search every quesrter for the correct link.
Script has 4 simple switches:
-File – switch parameter, if ran with that it will generate HTML file
-FilePath – default path is “.\”, so if you want to put HTML file somewhere else – this is the right place
-Email – switch parameter, if ran with that it will generate an email.
-Verbose – you got additional information about what actions have been done
Hope it will be helpful for some of you guys.
Script can be found on TechNet and GitHub.