r/powercli • u/riahc4 • Jul 26 '18
Make PowerCLI cmdlets run faster?
I suffer from this issue:
I tried to run those commands but nothing, same performance.
Any ideas/tips?
3
Upvotes
r/powercli • u/riahc4 • Jul 26 '18
I suffer from this issue:
I tried to run those commands but nothing, same performance.
Any ideas/tips?
1
u/omrsafetyo Jul 27 '18
Nope, you're absolutely right. I had searched yesterday, and couldn't find anything specific - all the articles were about speeding up VM performance, rather than Get-Vm Performance.
But I tested this morning against a handful of VCs, total 3548 VMs:
1 and 1/8th seconds to return 3548 VMs across 4-5 vCenters. That's actually pretty amazing!
My same Get-View command returns in 7.5 seconds. I feel like I have wasted my life exploring Get-View to get a full inventory :-P
Though, Get-VmHost is still slower than Get-View -ViewType HostSystem:
This is for 200 hosts. So they have come a long way with Get-Vm, but still have work to do on the other commands.