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

Re: Script to find overutilized virtual machines

$
0
0

That would be possible, but a DateTime object in PowerShell has other methods.

You could do

 

$start= (Get-Date).AddDays(-10)

 

The test against the limit for the CPU and memory is done in this line

 

if($cpuAvg-gt$limit-and$memAvg-gt$limit){

 

If you only want to test the memory against the limit, you change that line like this

 

if($memAvg-gt$limit){

Viewing all articles
Browse latest Browse all 252940

Trending Articles



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