The agent update and deployment utility provides the following methods, in order of precedence, for controlling its behavior:
The utility considers each method in order. If a method is defined with a valid value, the utility uses that value and ignores all following methods.
This example describes how the utility locates the installer. The <Target> and <Globals> elements both have defined SourceDirectory parameters. These parameters indicate possible locations of the installer. However, the utility has several locations to check. As soon as the utility finds the installer, the utility uses the installer.
<?xml version="1.0" encoding="UTF-8"?>
<AgentDeploymentAndUpdate>
<Globals>
<Parameter Name="SourceDirectory" Value="..\test"/>
<Parameter Name="KeyFile" Value="..\test\keyfile.txt"/>
</Globals>
<Target id="9.164.102.169">
<Parameter Name="SourceDirectory" Value="..\test\wind"/>
<Parameter Name="ConnectionType" Value="ssh"/>
<Parameter Name="UserName" Value="root"/>
<Parameter Name="Password" Value="toor123"/>
<Parameter Name="ExistingAgentPath" Value="/usr/local/bin/bfagent"/>
<Parameter Name="AgentInstallLocation" Value="/usr/local/bin/bfagent"/>
</Target>
</AgentDeploymentAndUpdate>