Status of the task put TaskInfo

Hello

I tried to get the task status of ApplyStorageDrsRecommendation_Task today and had no luck. I just get 'pending' once again the task completed. To test this part more I wrote some code in c# to turn on the virtual machine, wait and then check the status. Anyone can fix the where I'm going wrong by using TaskInfo with the provided managed object reference.

name of the VM to power on
String VMname = 'testvm ';
Find the MoRef for the virtual machine
NameValueCollection searchVMCol = new NameValueCollection();
searchVMCol.Add ("name", VMname);
EntityViewBase tempMoRefID = vClient.FindEntityView (typeof (VirtualMachine), vClient.ServiceContent.RootFolder, searchVMCol, null);
VirtualMachine VM = new VirtualMachine (vClient, tempMoRefID.MoRef);
Turn on the virtual machine
ManagedObjectReference PowerON_Task_MoRef is VM. PowerOnVM_Task (null);
Response.Write ("Power on the task:" + PowerON_Task_MoRef + "< BR >");
Thread.Sleep (4000);
TaskInfo TaskInfoObj = new TaskInfo();
TaskInfoObj.Task = PowerON_Task_MoRef;
Response.Write ("< BR >" + TaskInfoObj.State);

Thank you

David

The problem is the following code:

TaskInfo TaskInfoObj = new TaskInfo();

TaskInfo is the type of a property defined with the managed the task object. With the ManagedObjectReference of a task, you must use PropertyCollector to get its property. The TaskInfo isn't supposed to be 'new' ed. If you use open source VI Java API, you Task object and call:

TaskInfo ti = task.getInfo ();

In order to clarify the concept, see: http://www.doublecloud.org/2011/06/managedobjectreference-vs-managedobject/

Tags: VMware

Similar Questions

  • The status of the task XPath expression

    Hello

    Anyone know what is the XPath expression for the status of the human task? I need to set a condition that if a task is always assigned, do something while loop...

    Thank you.

    Hello

    It should be:
    bpws:getVariableData('yourVar','payload','/task:task/task:systemAttributes/task:state')

    Arik

  • How to get the status of the task in OIM 11 g

    Hello

    I would like to know how many times the task has been completed for a start-up operation. I have a provisioning task that triggers several times on the child table entries. I am looking for the way to get the no. time the task has been completed the deployment. Can you please share the code or the query.

    Thanks in advance

    Each instance of task is followed in the table of the OSI.

    Select usr.usr_login, usr.usr_display_name, obj.obj_name, mil.mil_name, sch.sch_data, to_char (sch.sch_create, ' dd-mm-yyyy hh)
    OSI, mil, CHS, orc, pkg, obj, usr
    where osi.mil_key = mil.mil_key
    and osi.sch_key = sch.sch_key
    and mil.mil_name =: mil_name
    and osi.pkg_key = pkg.pkg_key
    and pkg.obj_key = obj.obj_key
    and obj.obj_name =: obj_name
    and the State of sch.sch_data ("C", "UC", "MC")
    and osi.orc_key = orc.orc_key
    and orc.usr_key = usr.usr_key

    -Kevin

  • IOM sql Query to get the status of the failed task

    Hello world

    We have an obligation as we need to get the status of a particular task (say Create User in OID - Completed\Rejected status resource) for the particular user. We are able to get the status of the provisioed of resources to the user but not the status of the special mission which is trigerred for the user.can someone put some light on it. We must have the SQL query to do this.

    Thanks in advance.

    Kind regards
    MKN

    Hello
    Use this query to get the status of the task, also check the cooments

    SELECT USR. USR_LOGIN, OSI. SCH_KEY, ANN. SCH_STATUS, STA. STA_BUCKET OF
    OSI, CHS, STA, MIL, TOS, PKG, OUEDRAOGO, USR, OBJ, OST
    WHERE OSI.MIL_KEY = MIL.MIL_KEY
    AND ANN. SCH_KEY = OSI. SCH_KEY
    AND STA. STA_STATUS = SCH. SCH_STATUS
    AND TOS. PKG_KEY = PKG. PKG_KEY
    AND MIL. TOS_KEY = TOS. TOS_KEY
    AND OUÉDRAOGO. USR_KEY = USR. USR_KEY
    AND OUÉDRAOGO. OST_KEY = OST. OST_KEY
    AND OST. OBJ_KEY = OBJ. OBJ_KEY
    AND OSI. ORC_KEY = OUEDRAOGO. ORC_KEY
    AND OBJ. OBJ_NAME = "User AD".
    AND OST. OST_STATUS = "Provisioning" - filter accordinglly
    AND STA. STA_BUCKET = 'pending' - filter accordinglly
    AND PKG. PKG_NAME = "AD User" - filter accordinglly
    AND MIL.MIL_NAME = 'System' - filter accordinglly Validation
    ;
    Thank you
    Kuldeep

  • Daq stop task VI back to the State of the task was really forward the DAQmx Start Task or DAQmx writing?

    Hello

    I use DAQmx and DAQ Assistant and try to get the details on the following questions.

    1 does Daq stop task VI really return to the State of the task is in front the DAQmx Start Task or DAQmx writing? Digital Input taking as an example, I don't think that the status of the task means that input data because I tried and I can't really back to the entry level it was.

    Maybe more experienced people can help to share their expertise.

    2. the information in help indicates "virtual channels created with the function/VI DAQmx create Virtual Channel are called virtual channels the and cannot be used in the task." But I don't know what "in his work" means.

    3. could I get some guidelines or expertise on the Labview programmers when use virtual channels the and when, to the more global?

    Thank you!

    Best regards

    Allen

    If you create a channel of the task, or scale just usuing the screw to create or Assistant session wire io is the only way to pass the info autour.  It is not saved anywhere on the disc.  A channel of the task or the scale in a project can be used by anything in this project.  A channel of the task or the scale recorded in MAX can be used by anything on this machine.  Its an extended thing.

    And Yes, the DAQ Assistant fresh extra performance overhead and the poor than the DAQmx API.  Often, it won't have the impact of a little experiment.  Large applications should avoid the express Visa.

  • After creating a task, it is not listed in the Task Scheduler Library.

    Hello

    I created a system task to the system log. It was supposed to send an email to me whenever the event is logged.
    After saving it, I wanted to get to the Task Scheduler Library, but it has not been listed. I tried to create the task again, but it is said that a task with the same name already exists. The event took place, and when I looked at the status of the task, it shows the name of the task with the result of success.
    How can I remove / edit the task when I can't? Help appreciated.
    Thanks in advance
    Richard
    original title: event schedule

    There is a small arrow to the left of the entrance to the Task Scheduler Library, click the arrow to expand the list to view tasks created by the system.  Then browse folders to find the one that you created.

    Defragmentation, just for example, is to

    Library of Task Scheduler, Microsoft, Windows, Defrag

  • How to handle the task of automation without connection SGD-Automation

    Hello

    I have created an Automation task, the task performs the work, but after completing the work, I need to connect SGD-automation user and update the status of the task to move to the next step. How to avoid manual handling in the task of automation? How to do the task to go to the next manual task without connection with CMS-automation.


    Kind regards
    Marg

    In your Xquery use the syntax "context: completeTaskOnExit ($context, $exitStatus).

    Set these two variables ($context, $exitStatus) according to your required exit status.

    Hope this has helped.

    Thank you

  • Move the task to process Iplanet user does not

    Hello

    When I'm by assigning a new organization to the user through the user interface, then the user does not move the body selected through the user interface.
    I checked the history of the resource and it shows that the task "Move user" process got triggered but the status of the task is rejected.

    I get after the logs on the Console of the IOM:

    USEXLORG running
    Target the class java.lang.String =
    Running ISSSL
    Target the class java.lang.String =
    MODIFYUSER running
    Target class = com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations
    < 2 November 2012 15:11:32 IST > < WARNING > < oracle.iam.callbacks.common > < ARA-2030146 > < [CALLBACKMSG] are present for this eventhandler async to policies?
    : false >
    USEXLORG running
    Target the class java.lang.String =
    Running ISSSL
    Target the class java.lang.String =
    Running MOVEUSER
    Target class = com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations
    < 2 November 2012 15:11:33 IST > < error > < XL_INTG. SJSDS > < BEA-000000 > < =.
    =======================================>
    < 2 November 2012 15:11:33 IST > < error > < XL_INTG. SJSDS > < BEA-000000 > < com.thortech.xl.integration.iplanet.util.tcUtilLDAPOperations: createObject(): impossible
    Create the object [LDAP: error code 68 - entry already exists] >
    < 2 November 2012 15:11:33 IST > < error > < XL_INTG. SJSDS > < BEA-000000 > < =.
    >

    -----------------------------------------------------------------------------------------------------------

    Please suggest what is causing this problem and how to fix it.

    Thank you

    The processInstanceKey can be found while performing the mapping :---> map

    Data processing--> of Process Instance

    Even the user key can be found just by running the adapter mapping: -.

    Definition of user--> user key

    Or the best approach would be:-create a process task adapter for the transfer of the ORGANIZATIONAL unit of the profile to your process... It is a generic and commonly known adapter as a transfer card:-

    How to create a transfer adapter: -.

    Name of the adapter:-adapter task of transfer process
    Adapter type:-treat stains
    Description:-adapter task of transfer process
    Variable:-determination of entry (of Type String) during execution
    Task of the adapter:-logical task... Adapter--> Variable defined return value--> entry
    Save... Build... Compile...
    For example, you have created your adapter generic transfer...

    Suppose that your new ORGANIZATIONAL unit is stored in the USR_UDF_NEW_OU field.

    In research, USR_PROCESS_TRIGGERS, give entry: -.
    USR_UDF_NEW_OU change of ORGANIZATIONAL unit

    In "iPlanet user" process definition, create a task to '' change OR... Set the task to transfer adapter process...

    entry--> user definition--> OU
    Return value from adapter--> process data--> organization name...

    It's a great way to convey the new OU of the user profile to process data name of the Organization, without writing any custom code

  • Status of the list item that you want to do?

    Is there a way to see the State by way of assignment to be listed with the topic name?

    In other words, I created a number of list items to take into account the review cycle.

    If I run a status report, I can see how many subjects have the classification of engineering response need, but I can't find a way either to get a list of people or to sort the list of topics to make items on the screen.

    Clues? Another way to do this? I noticed that the categories are listed in the Checklist-topic Meta tag in the HTML code. I use Windows 7. Is there a way to search the content of the HTML files in a particular folder? I tried to search for the content, but he doesn't find anything.

    Try the report properties topic. This shows the status and the tasks marked against a subject, the two are unrelated. This report can be saved in a text file, and from there you should be able to get the information into a spreadsheet for analysis.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Problem with the task of mapping the object status

    Hello

    There is a "Create User" task, which at the end gives the status of the object to set.
    There is a later task named "Update form" which, on the rejection, must restore the status of the Configuration object.

    I put in place this logic in the 'Mission to the mapping of object status' tab in the console Design.
    However, this change doesn't think. What is the best solution in this case?

    Kind regards
    SK

    Once the resource is implemented, you can only have three status

    Enabled, disabled and removed

    You can do it, commissioning or any other

    These status shows the status of the resource. Now, once the user get configured how it can be provisioning (failed). Perhaps some update fails, what does not mean that the user is not put into service.

    Yes, you can do work around that Gyan has suggested to you

    -nayan

  • Is it possible to display an image full screen; in other words, how to switch all the toolbars - including the status bar and the task bar?

    I found a few larger images (986 x 1024 and 2420 x 2514) I'd like to see on the entire screen. Is there a way to do this by enabling / disabling (then restore it later) of all toolbars - including the status bar and the task bar? Or is there an FF extension that will make perhaps even easier?

    Press F11 or select "full screen" in the menu. (If there is still floating toolbars around after that, do a right-click on the toolbar and remove the checkbox.)

  • Windows 7 and I have a batch file to copy files from 1 computer to another. It works fine alone, but when I put it to run in the Task Scheduler it shows it ends successfully, but nothing is happening

    I am running Windows 7 and I have a batch file to copy files from 1 computer to another.  It works fine alone, but when I put it to run in the Task Scheduler it shows it ends successfully, but nothing is happening.  None of the files are copied, and the control box does not appear.  Any ideas?

    Run a batch file in Task Scheduler

    Hello ITGIRL17,

    Thanks for posting on the Microsoft answers Forum.

    Configure your task under your administrator account.
    Then go to the folder with the batch file and ADD on control for the folder administrator permissions and each of the files in batches.
    If the batch files write data, then the target for the task should ALSO have all explicit permissions.
    Now try to run the Task Scheduler task.

    Also check the information from the following link and look specifically at Brian Vandemark Sommaire steps on 2 September.
    http://social.technet.Microsoft.com/forums/en/winservermanager/thread/d47d116e-10b9-44f0-9a30-7406c86c2fbe

    I hope that this information will help resolve your batch file does not problem.

    Sincerely, Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • 6.1 VDP on vSphere WebClient 6.0 fails to display the status of recent tasks (VICLIENT shows something completely different... real information!)

    Hello

    Running vCenter 6.0 and 6.1 VDP and after launching a backup job (via web client vSphere) I can see the beginning of the task, but only using recent tasks of the viclient (IT IS NOT display any status or progress via the web client).  Now what makes this problem, a question is that of the virtual machine, I didn't go to the backup task to create a shapshot.  The ONLY REASON I know this is because recent tasks viclient showing the progress of the task of backup drew my attention to the question.  Even after a refresh several times in the webclient service indicates that the work was done, never completed, or FAILURE under section tasks recent.  Research in the section alarms the web client fails also show no indication that there was an instant failure on one of the backup jobs.  The only way to view the State would look at Console tasks in web client I could also see the work and not a backup but unless you have already searched for failure would not have known you.

    It's very relative when VMware push customers to use the web client over and the viclient seems even less we continue losing features.  Has anyone else had this problem with VDP 6.1?  If so is some fix allow some "RECENT TASKS" to actually show the same status in the web client and the viclient (they speak both the same vCenter then why don't they contain the same information?)  Accurate builds I use are the following

    vCenter Server 6.0.0 build 3018524

    POS 6.1.1.19

    ESXi 6.0.0 build 3620759

    And before his suggested the race the POS 6.1.2 (latest version), I've tried and that version had problems more large gel and omitting so I use the version seems to be more stable :-)

    Not sure that you use the same user used in POS configuration page Try connecting web client with the user used to record POS with vCenter.

  • ESXi 6.0 - SSH Command to check the status of running tasks

    Hi all

    What I'm trying to do is quite simple, but do not know whether it is complex or not.

    I'm checking the State of a task via SSH. You know, like that of the lower part of the vSphere Client where it shows you the task and the status of it. I need to monitor the % of the deployment of the MV EGGS in various hosts via a script but can't find the command to do, but would be nice to be able to check any task and its status.

    What I found so far:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1013003

    But that was not helpful at all. I tried but could not get information about the deployment.

    Thank you all for any help or lead, you may have.

    Hello world

    I found the answer myself, which was indeed in the URL I posted.

    I just had a problem to see a small change in orders.

    In step 7, it says task_info and I wrote get.tasklist with the task identifier.

    Thank you guys and I hope at least that it might help someone trying to do what I'm doing and reading VERY well orders, haha

    Kind regards

    Martin

  • Status of the scheduled task

    Hello

    In our current setup, we need trigger report of the editor on the completion of an external task.

    We use the Editor (ScheduleRequest) web services to start the generation of report and then to an FTP server.

    However, we must now trigger another task based on completion of the scheduled task from the Publisher.

    ScheduleRequest returns the job ID.

    1. How will I know the status of the current job and if the task succeeded or failed?

    Thank you
    Sheela

    To get the status use the operation getScheduledReportStatusRequest with parameters
    -scheduledJobID
    -user name
    -password

    He'll be back
    -jobId
    -the State of the job application jobStatus. Possible values are: 'Done', 'Error', 'Running', 'Regular', 'Hanging', 'unknown '.
    -message

Maybe you are looking for