# Fault - AgentInstallFailed(vim.fault.AgentInstallFailed)

Thrown by
  AddHost_Task, AddStandaloneHost_Task
Extends
  HostConnectFault
Since
  2.0

## Fault Description

An AgentInstallFailed fault is thrown when VirtualCenter fails to install the VirtualCenter agent on a host. For example, a fault is thrown if the agent software cannot be uploaded to the host or an error occurred during the agent installation.

Properties

Name | Type | Description
--- | --- | ---
installerOutput* | xsd:string | The output (stdout/stderr) from executing the agent installer. Since vSphere API 4.0
reason* | xsd:string | The reason why the agent install failed, if known. Values should come from Reason. Since vSphere API 4.0
statusCode* | xsd:int | The status code returned by the agent installer, if it was run. Since vSphere API 4.0
Properties inherited from HostConnectFault
None
Properties inherited from VimFault
None
Properties inherited from MethodFault
faultCause, faultMessage

*May not be present
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="AgentInstallFailed"> <complexContent> <extension base="vsan:HostConnectFault"> <sequence> <element name="reason" type="xsd:string" minOccurs="0"/> <element name="statusCode" type="xsd:int" minOccurs="0"/> <element name="installerOutput" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>