Exporting Job Results
To export the Job Results using a command line, run the WMC.exe from the command line using the following parameters:
Parameter |
Value |
Functionality |
-export2xml |
|
|
/action= | export2xml | Same as -export2xml, use one or the other |
/MasterJobGUID |
<GUID> or @[MASTERJOBGUID] |
|
/OverViewResult |
|
Export overview results |
/DetailedResult |
|
Export detailed results |
/ResultsPerAgent |
|
|
/Destination= |
RES Software\Workspace Manager |
Save location |
/WaitForJob |
|
Wait for job to finish |
/user= -and- /password= |
<user> -and- <password> |
The Ivanti Automation credentials to access the Console. |
Example
"C:\Program Files (x86)\Ivanti\Automation\Console\WMC.exe" -export2xml /MasterJobGUID=@[MASTERJOBGUID] /OverviewResult /DetailedResult /WaitForJob /ResultsPerAgent /Destination=C:\Users\jsmith\Documents\Export.xml /user=jsmith /password=secret
- When exporting the results of a Job, the Variable are included in the XML files for the Agents and/or Teams.
- It is not possible to export the results of multiple Jobs.
- You can only execute a command line that exports Job results on Agents on which a Console has been installed.
- The function @[MASTERJOBGUID] cannot yet be used for Run Books.
- If the global setting Limit Job Export has been set to Enabled, the export of Jobs is only allowed for Agents to which the administrative role of Console user grants access.