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

Re: PowerCLI challenge: script storage vMotion of 100+ VMs

$
0
0

If I am reading your error right it looks like you placed the script like this...

 

Get-Stat -Entity $esx -Instance $ds_uuid -Stat $metric -Realtime -MaxSample ($stats | Measure-Object -Average -Property Value).Average/1000

 

when it should be...

 

Get-Stat -Entity $esx -Instance $ds_uuid -Stat $metric -Realtime -MaxSample 1

 

($stats | Measure-Object -Average -Property Value).Average/1000

 

 

On two seperate lines... and don't forget LucD had the -MaxSample as 1


Viewing all articles
Browse latest Browse all 293210

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>