Hi all,
I'd like to get hardware changes (CPU and Memory) since VM was created until today.
Anyone has this powercli to share with me ?
Thanks in advanced.
Have a look at William's How to audit VM reconfigurations and see what exactly changed? post
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Have a look at William's How to audit VM reconfigurations and see what exactly changed? post
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you LucD,
I saw this one. I am checking adjustments necessary on it.
I used:
Get-VM VMNAME | Get-VIEvent -Start (Get-Date).AddMonths(-36) -MaxSamples ([Int]::MaxValue) | ?{$_.FullFormattedMessage -match "Reconfigured" -and $_.ConfigSpec.MemoryMB -ne $null -or$_.ConfigSpec.NumCPUs -ne $null} | Select UserName,CreatedTime,@{N="NewMemoryChanged";E={$_.ConfigSpec.MemoryMB}},@{N="NewCPUChanged";E={$_.ConfigSpec.NumCPUs}},FullFormattedMessage