Hi Billy,
Yes, you can use -DagentManager.url.1 as a jvm argument and comment agentManager.url.1 in the agent profile
Additional reminders:
a) you can simplify it more: -DagentManager=URL is equivalent to -DagentManager.url.1=URL
b) you add add multiple EM connections
-DagentManager.url.1=scheme://address:port
-DagentManager.url.1=serverHostOrIP1:Port
-DagentManager.url.2=serverHostOrIP2:Port
..
c) Supported protocols:
- agentManager.url.1=serverHostOrIP:Port to specify a direct Isengard TCP connection
- agentManager.url.1=tcp://serverHostOrIP:Port to specify a direct Isengard TCP connection
- agentManager.url.1=ssl://serverHostOrIP:Port to specify an Isengard SSL/TLS connection
- agentManager.url.1=http://serverHostOrIP:Port to specify an Isengard HTTP connection
- agentManager.url.1=https://serverHostOrIP:Port to specify an HTTPS connection
If no protocol scheme supplied, assumes direct TCP Isengard connection
You can use any of the above options as a jvm argument.
For more information, see Configure Java Agent - CA Application Performance Management - 10.5 - CA Technologies Documentation
I hope this helps,
Regards,
Sergio