I have been slack on my blog posts of late, mostly because of motivation but I have also been very busy with very little free time to spare.
I like being busy and I have been working on some cool projects, mostly with UCS, Nexus, vSphere and EMC storage.
A few weeks ago I finally had a few days in the lab so I decided to take a look a the Cisco UCS Powertool. I didn’t really have anything big planned I was more just curious about it.
I started going through all of the different cmdlets and realized that there were a lot of them, over 1000!!
I mostly focused on the get- cmdlets to see what reporting options I had. After a few hours I got the idea of creating a health check report. There aren’t any reporting features built in to UCSM so I thought it would be very useful for UCS admins if they could get a weekly report of their UCS clusters.
The other items I wanted to report on were things like “Which Service Profiles are bound to what templates?” and “Which vNICs/vHBAs were bound to what templates?”
For the next 2 days I hammered out about 1000 lines of code creating the report. I had the most trouble with the HTML stuff and trying to figure out the tabs. I used examples from the web and received some great help from our internal developer.
I posted a zip file with the script and an example report on the Cisco developer community. You can grab a copy of it from here – https://www.dropbox.com/sh/i001giq6jx67fl2/GYedBaqAYa
The instructions for getting the script running in your environment are at the top of the PowerShell script, just open it in a text editor to view them.
If you have some ideas on how I can make the report better or if you want to contribute to the project please do so and post your updates to the Cisco developer site so that we can all benefit from it.
Here is a screen shot of it as well