# Data Object - SrmCommand

Extends
  SrmCallout
Since
  SRM API 3.0

## Data Object Description

This class specifies a Command which will run during a Recovery, either on the server or on the recovered VM. If the command returns a non-zero value, then recovery will indicate that an error has occured.

This Command can be inserted before or after a particular VM is powered on. If inserted after a particular VM is powered on, the Command may be run either on the SRM server machine or inside the recovered VM that was just powered on.

Properties

Name | Type | Description
--- | --- | ---
command | xsd:string | Command to run while running a recovery. Non-empty string. The maximum valid length is 4096 characters.
runInRecoveredVm | xsd:boolean | Should command be run on SRM server machine or in recovered VM? This only applies to Per-VM Callout Commands set to run post-power-on of a recovered VM. Those Commands may be run either on the SRM machine, or inside the recovered VM.
timeout | xsd:long | Time in seconds to wait until the command is completed. If the command has not completed when the timeout occurs, the child process will be killed.
Properties inherited from SrmCallout
description, uuid
Properties inherited from
None