Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 250391

Re: PowerCLI script for NFS Datastores

$
0
0

Yes it runs. it looks like it is also queying vm's powered off:

Get-Stat : 1/23/2013 3:43:37 PM    Get-Stat        The metric counter "datastore.numberwriteaveraged.average" doesn't exist for entity "prod_ghmf5".   
At C:\Documents and Settings\iswbez\Desktop\wbNFSJan232013.ps1:38 char:9
+ Get-Stat <<<<  -Entity $vms -Stat $metrics -Start $start |
    + CategoryInfo          : ResourceUnavailable: (datastore.numberwriteaveraged.average:String) [Get-Stat], VimException
    + FullyQualifiedErrorId : Client20_RuntimeDataServiceImpl_CheckUserMetrics_MetricDoesntExist,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetViStats

 

Also can I run it for a day?  ie $start = (Get-Date).AddHours(-24) will this work?

and what do I need to adde to $report export it to a csv file?

Thanks


Viewing all articles
Browse latest Browse all 250391

Trending Articles