powercliesx

PowerCli getting Storage I/O control status


I'm trying to use powercli to return whether or not a datastore on a esxhost has got Storage I/O Control enabled.

I've been using GetView -viewtype Datastore -Filter @{"Name"="DS_NAME"} however I cant seem to dig out the piece of information I require from the result.

Any powerCli pro's out there than can help out?


Solution

  • If the result of your Get-View command is in $vol then you are looking for $vol.IormConfiguration.Enabled.

    The Datastore objects returned by Get-Datastore also include a boolean property called StorageIOControlEnabled. Get-VIObjectByVIView will convert the results of your Get-View into those Datastore objects.

    Maybe datastores with no VMFS volumes behave differently, not sure.