Appearance
RemoteExecAssetStatus
Provides detail on a single target of a remote execution task.
Instance Methods
getAsset()
Returns the asset upon which the command was run
getAssetId()
Returns the asset id of the asset upon which the command was run. It also may return an asset name if a variable expansion took place.
getRetries()
The number of retries that took place
getCondition()
The exit condition. One of the following values:
| Value | Description |
|---|---|
| 0 | The inital state (Nothing has started yet) |
| 1 | Running |
| 2 | Exited normally |
| 3 | Terminated with a signal |
| 4 | Terminated with a core dump |
| 5 | Unable to create logfile |
| 6 | The user was not valid or the principal did not contain a user valid for this host. |
| 7 | The user/password were not valid |
| 8 | The fork() or CreateProcess() system call failed |
| 9 | The process cannot start because of some kind of failure. See the agent log. |
| 10 | The process cannot start because of some kind of failure. See the agent log. |
| 11 | Could not start an interactive process |
| 12 | Waiting of authenticaion |
| 13 | There was a failure in the win32 subsystem. See the agent log. |
getCondition()
A textual name corresponding to the exit condition.
getTaskId()
The id of the task.
getCommand()
The expanded command to execute
getTaskLog()
The task log for this command
isWaitForProcess()
Returns true if situate will wait for the process to complete.
isWaitForProcess()
Returns the id of the child process
getTimeStarted()
Returns the start time of the process
getTimeExited()
Returns the time the process exited
getExitStatus()
If the process exited normally (getCondition() returned 2), then this is the exit status of the child process.
getExitSignal()
If the process exited with a signal, this returns the specific signal.
getCannotStartReason()
If the process could not be started and getCondition() returned 9, then this string will provide more detail. of the child process.