What I have did is before running the script logged into vc and I have powered off all the vms and executed the script 1st time then a report is generated with all vms as below: VM,CPU,Memory,p...
See more...
What I have did is before running the script logged into vc and I have powered off all the vms and executed the script 1st time then a report is generated with all vms as below: VM,CPU,Memory,powerstate,Harddisk vm1,2, 4, Poweredoff, harddisk1 vm2,2, 2, Poweredoff, harddisk1 vm3,4, 8, Poweredoff, harddisk1 after 15 mins I logged into vcenter and added hard disk to VM1 and changed cpu and memory for vm1,vm2,vm3 and powered on all the vms. waited for 1 hr and executed 2nd time. And here is the output VM,CPU,Memory,powerstate,Harddisk vm1,2, 4, Poweredoff, harddisk1 vm2,4, 6, Poweredoff, harddisk1 vm3,2, 4, Poweredoff, harddisk1 vm1,4, 12, Poweredoff, harddisk2 powerstate is not changed. What sequence do you mean? the VM1 output is not sequence in csv after 2nd execution. Do you see the corresponding events when you do a Get-VIEvent? yes I can see the events in vc. note: I have changed $start = (Get-Date).AddMinutes(-1) in the script.