Hello,
I have a problem with the Cmdlet Get-Datastore: can't use it with the "-Refresh" connector. I get an error...
VMware vSphere PowerCLI 4.1 U1 build 332441
[vSphere PowerCLI] > Get-Datastore -Refresh
Get-Datastore : 23/06/2011 07:47:12 Get-Datastore fault.RestrictedVersion.summary
Au niveau de ligne : 1 Caractère : 14
+ Get-Datastore <<<< -Refresh
+ CategoryInfo : NotSpecified: (:) [Get-Datastore], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetDatastore
[vSphere PowerCLI] > Get-Datastore
Name FreeSpaceMB CapacityMB
---- ----------- ----------
NAS 79533 409600
NASESX 544307 1876393
PRODUCTION-ESX80i 63951 64512
Have somebody an idea ? Thank's
Fabrice
Afaik, that is your only option if you stay on the free ESXi
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Are you running this against a free ESXi installation (the restrictedversion seems to indicate that) ?
Against a free ESXi you only have read access. I'm afraid.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That true, we use actually the free version of ESXi (4.1.0 build 260247), I didn't notice that we just have read access... good to know, thanks.
( It works fine on our ESX servers... )
Hovewer, is there another way to get the real occupation of the datastore without going on the ESXi server to click the "Refresh" button ?
Afaik, that is your only option if you stay on the free ESXi
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference