에이전트 업데이트 및 배치 유틸리티는 해당 동작을 제어하기 위해 우선순위대로 다음 방법을 제공합니다.
유틸리티는 각 방법을 순서대로 고려합니다. 방법이 올바른 값으로 정의되면 유틸리티는 해당 값을 사용하고 다음 방법을 모두 무시합니다.
이 예제는 유틸리티가 설치 프로그램을 찾는 방법을 설명합니다. <Target> 및 <Globals> 요소 모두가 SourceDirectory 매개변수를 정의했습니다. 이 매개변수는 설치 프로그램의 가능한 위치를 표시합니다. 그러나 유틸리티에는 확인할 여러 위치가 있습니다. 유틸리티가 설치 프로그램을 찾는 즉시 유틸리티는 설치 프로그램을 사용합니다.
<?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>