Hi all
Apologies if something similar has been posted elsewhere, but I'm getting pretty desperate.
We're trying to get some datastore readings back from a VCenter (VSphere?) instance, able to get everything back except for anything datastore related. I'm not sure if it could be due to permissions, but seeing as I'm able to get any other reading back, I kind of doubt it. If it is permissions that would actually make my life considerably simpler, but on to the info:
Using PowerCLI, I'm able to connect to a VCenter isntance. If I do, say, get-inventory, that works fine. if I do get-datastore however, I get this:
Get-Datastore : 11/06/2012 10:04:24 Get-Datastore Object reference not set to an instance of an object.
At line:1 char:14
+ get-datastore <<<<
+ CategoryInfo : NotSpecified: (:) [Get-Datastore], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio n.ViCore.Cmdlets.Commands.GetDatastore
I've tried different combos of this as well, like:
get-vmhost -name <NAME_OF_ESX_SERVER> | get-datastore
I've also tried using Python, error being more or less similar to the above.
At this point, I'm inclined to say that the datastore stats just aren't available for whatever reason, but as to why I have no idea. I'm not the admin on the VMWare side of things, I'm just trying to implement some monitoring for it.
Can anyone perhaps suggest anything we might need to try? Should the user I use to connect with perhaps be granted admin or admin-like rights? Should I try a different command? Different version of PowerCLI (using PowerCLI Component 5.0 build 544967)?
The ESX version I believe is VMware ESXi 4.1.0 build-381591.
Any help at all will be greatly appreciated.