After configuring WebSphere Application Server v9 to load the 10.2 agent running listServers.bat returns "Agent not configured for <server name>"

Document ID : KB000071636
Last Modified Date : 22/02/2018
Show Technical Document Details
Issue:
After configuring WebSphere Application Server v9 to load the 10.2 agent running listServers.bat shows that the agent is not configured for the server: 
=== 
WASX7209I: Connected to process "server1" on node willy03-I3036Node01 using SOAP connector; The type of process is: UnManagedProcess 

Cell Name is willy03-I3036Node01Cell 
The node name is willy03-I3036Node01 
Number of servers in willy03-I3036Node01: 1 

process type is UnManagedProcess 

Agent not configured for server1 @willy03-I3036Node01 @willy03-I3036Node01Cell 
Hence not adding it to the apply_profiles.properties !! 

Server server1 is running; state is STARTED 
===
Resolution:
The setPmiModules.jacl is looking for "com.wily.introscope.agentProfile" in the WAS Generic JVM arguments but for this configuration the new shortened version property "agentProfile" was used. This is per the 10.2 documentation:
https://docops.ca.com/ca-apm/10-2/en/implementing-agents/java-agent/install-the-java-agent/configure-application-server-to-use-the-java-agent/websphere-application-server#WebSphereApplicationServer-ConfigureWebSphereApplicationServertoUsetheJavaAgent

Edit the setPmiModules.jacl and change all occurrences of "com.wily.introscope.agentProfile" to "agentProfile". 
Then listServers.bat finds that agent is configured for the server i.e. 
=== 
WASX7209I: Connected to process "server1" on node willy03-I3036Node01 using SOAP connector; The type of process is: UnManagedProcess 

Cell Name is willy03-I3036Node01Cell 
The node name is willy03-I3036Node01 
Number of servers in willy03-I3036Node01: 1 

process type is UnManagedProcess 
loaded servers info into {wilyHome}/tools/apply_profiles.properties 
Server server1 is running; state is STARTED 
===