Is it possible to programmatically change the order of Agents in a HOSTG?
I have a HOSTG that has two Agents in it and it is set to use the first. I want to be able to change what Agent is listed first via a SCRI.
I know of no way to alter agent groups via AE scripting. You can however do this via the HostGroup Java API class. I don’t know if it’s possible to remove a single agent, but you can do something like this:
ae java apis agent group
Thank you, this is what i was afraid of.
But on a positive note it looks like the RESTful API in 12.1 will allow me to do this.
You could also determine the agent to use programmatically, and set it using :PUT_ATT.
See this discussion for an example:
Set agent group of a job programmatically
Retrieving data ...