Just got off the phone with CA Support, you can use the following arguments in your startup script to dynamically pass in the agent name and hostname.
-Dcom.wily.introscope.agent.agentName=desired_agentname
-Dintroscope.agent.hostName=desired_hostname
Alternative, you can also use these two properties in agent.properties but your maintenance over head will be tremendous. You will have to maintain each agent.properties per server.
introscope.agent.agentName=desired_agentname
introscope.agent.hostName=desired_agentname
This is a sample of our jvm arguments to invoke the agent.
WILY_HOME=${JBOSS_HOME}/wily
WILY_JAVA_OPTS="-javaagent:${WILY_HOME}/Agent.jar -Dcom.wily.introscope.agentProfile=${WILY_HOME}/core/config/IntroscopeAgent.profile -Dcom.wily.introscope.agent.agentName=desired_agentName -Dintroscope.agent.hostName=desired_hostName"