By default, VCS runs agent binaries from the path $VCS_HOME/bin/AgentName/AgentNameAgent. For example, /opt/VRTSvcs/bin/FileOnOff/FileOnOffAgent.
You can instruct VCS to run a different set of agent binaries or scripts by specifying values for the AgentFile and AgentDirectory attributes.
When you specify the agent directory, VCS looks for the agent file (AgentNameAgent) in the agent directory. If the agent file name does not conform to the AgentNameAgent convention, configure the AgentFile attribute.
For example, to use, specify the
For example, if the MyApplication agent is installed at /opt/VRTSvcs/bin/CustomAgents/MyApplication, specify this path as the attribute value. If the agent file is not named MyApplicationAgent, configure the AgentFile attribute.
If you do not set these attributes and the agent is not available at its default location, VCS looks for the agent at the /opt/VRTSagents/ha/bin/AgentName/AgentNameAgent.
To change the path of an agent
# haattr -add -static
resource_type AgentFile \
# haattr -add -static
resource_type AgentDirectory \
"
complete_path_to_agent_binary"