Hello,
Is there any way to add a few tasks of cloning systems on a single host ?
The remaining tasks should be given with state Queue" , in order not to burden the host.
Using a script I run other tasks on few hosts, the use options -Runasync does not help me.
Is there any way to do it?
Regards.
It will actually eventually starting queing those jobs, you just haven't hit the 'simultaneous job limit' yet. I believe that limit is 8 per host.
Why doesn't the -RunAsync parameter help you ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I have CSV file (vm, host):
vmA1,hostA
vmA2,hostA
vmA3,hostA
vmB1,hostB
vmB2,hostB
vmB3,hostB
I want to run only one job cloning on the host.
If i used function "foreach" and start cloning job New-VM with -Runasync all jobs have status Running.
I would like to make it look:
I check whether the task is already running on host.
If yes, it adds job with status Queue.
vmA1 - Running
vmA2 - Queue
vmA3 - Queue
vmB1 - Running
vmB2 - Queue
vmB3 - Queue
It will actually eventually starting queing those jobs, you just haven't hit the 'simultaneous job limit' yet. I believe that limit is 8 per host.