According to VMware's documentation for "VcGuestProcessManager.startProgramInGuest" (https://www.vmware.com/support/orchestrator/doc/vro-vsphere65-api/html/VcGuestProcessManager.html and others):
Starts a program in the guest operating system. A process started this way can have its status queried with {@link #listProcesses}. When the process completes, its exit code and end time will be available for 5 minutes after completion.
My problem that I haven't been able to find any code examples that show how to retrieve either the status or the exit code and end time. I am reasonably confident that the number returned by this call is the PID of the program that ran, not the exit code, based on some experimentation.
Does anyone have JavaScript (vRO 7) to at least retrieve the exit code?
Thanks.
Does anyone have code in any language to retrieve the exit code from 'VcGuestProcessManager.startProgramInGuest'?
Anyone?
