Exporting vCenter Events with PowerCLI

One of my clients has recently been having issues with their storage solution, and wanted to export the events from vCenter that show storage performance degradation, to aid in troubleshooting with the vendor.

For some reason, and I have yet to confirm that this is a bug with the vCenter 5.0 appliance or the vCenter Desktop Client, when an event export is done, the storage related events are not exported with the rest of the events.

Thankfully we were able to get the event details exported using the following PowerCLI oneliner:

PowerCLI C:\log> Get-VIEvent -Start 19/11/2012 -Finish 30/11/2012 | Export-Csv "events.csv" -NoTypeInformation -UseCulture

This generates an events.csv file in the current directory, containing all the events in the given timeframe, from the vCenter it is connected to. And yes, the storage related events missing from the vCenter Desktop Client export are indeed included in the file generated by the Get-VIEvent cmdlet.

Once again, PowerCLI to the rescue!

vSphere iPad Client

Like everyone else in the vUniverse, I’ve had a play with the very recently released free vSphere Client for iPad. Since everyone, and their mother, has already blogged and reviewed it I don’t see much value in me doing the same.

What I can say though, is that the first impression is pretty great. It looks good, works well and might be one of the apps that finally gives me an actual use case for the iPad. The feature set of the client is pretty basic so far, but it does provide you with a quick overview of your environment.

Real World Production Environment Screenshots

I do agree with Juan Manuel Rey / @jreypo’s thoughts in his tweet though:

@h0bbel I’m not saying is no fun or cool but I believe a Linux or OS X client is more needed and of course more productive

We do need a cross platform vCenter Client, hopefully the iPad client is a step in that direction. Considering that it uses the vCMA as it’s backend this might pave the way for other solutions using the same API to connect to VMware vCenter.

VMware vSphere Client for iPad posts