Hi,
I need to get a list of ann running vcenter tasks.
I think I need to use something like
vcTasks = Vcplugin.getAllTasks();
Not sure what parrameters I need to pass it in order to get the list.
specifically I need to get a list of any running cloning tasks.
Thanks!
Jason
This should work for you
Hi,
Don't you get all of them without passing any specific parameter ?
If so you can iterate through each of them and check their status and their type.
There may be a way to specify a xPath query to do it but I am not sure about the syntax. It was covered previously on this forum for finding VMs.
Christophe.
I would have thought sending passing no parrameters would have returned an array of all running tasks too..
I have defined "tasks" as a array of VC:Task
var tasks = new Array();
tasks = VcPlugin.getAllTasks();
System.log(tasks.length);
this outputs:
[I] 0
regardless of whether there is a task running at the time. It looks like the array is just not being filled with anything.
I imagine I am doing something dumb. I am prepared to feel embarrased.
starting to think the getAllTasks() method is bugged.
Does VMWare support orchestrator or is it 'installation only' support?
Fully supported. You can open a support request at GSS.
Hi!
I also gave it a try and I can reproduce your result: Nothing comes back from the method...
So: Open a support call...
Regards,
Joerg
well, at least I know I aint crazy! )at least in this regard)
Thanks guys
VMware's support of Orchestrator covers installation, configuration, and limited support for system default workflows/plug-ins.
If you require support for the scripts within a workflow or how to create or troubleshoot a workflow PSO stands ready to assist.
--Kelly Cooke
Enterprise Applications – Orchestrator Escalation Engineer
VMware
hopefully vmware can either confirm or deny that this is a bug without me having to break out my credit card?
We will absolutely work with you to confirm or deny if the issue is a bug. We will try and reproduce the behavior in our lab environment and engage our Development team when we find a bug.
I am familure with the SR you have submitted for this issue and myself and the TSE you are working with will test your workflow in the lab and engage Develupment as needed.
--Kelly Cooke
Enterprise Applications – Orchestrator Escalation Engineer
Vmware
This should work for you
You sir, are the man. You rock with a steady beat.
based on your insight I was able to create my own "getAllTasks" action:
I read that allSdkConnections replaced the deprecated vimHosts, so I used that.
Seems to work fine.
Thanks for taking the time to help me out!
Jason