VMware Cloud Community
CRIH
Contributor
Contributor
Jump to solution

Get-Datastore -Refresh ... error

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

  • With the connector Refresh:


[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

  • But it works fine without:

[vSphere PowerCLI] > Get-Datastore

Name                               FreeSpaceMB      CapacityMB
----                               -----------      ----------
NAS                                      79533          409600
NASESX                                  544307         1876393
PRODUCTION-ESX80i                        63951           64512

Have somebody an idea ? Thank's

Fabrice

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Afaik, that is your only option if you stay on the free ESXi


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

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

CRIH
Contributor
Contributor
Jump to solution

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 ?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Afaik, that is your only option if you stay on the free ESXi


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos