run the agent installer job against it.
Is blcli AgentInstallerJob executeJobAndWait command has ability to point to specific server? Or for each new server I need to create appropriate Agent Installer Job (createAgentInstallerJobWithTargetServer)?
you can create smart group for the servers on which the agent is not installed.
execute the AgentInstallerJob against the Smart group.
you can use the ‘executeAgainst’ command.
I think you missed a step :
- create the target group (For Example: SmartServerGroup createGroup)
- create the agent install job for the target group (AgentInstallerJob createAgentInstallerJobWithTargetGroup)
- get the key for the job (AgentInstallerJob getDBKeyByGroupAndName)
- execute the job (AgentInstallerJob executeJobAndWait)
The group parameter in AgentInstallerJob command references to JOB GROUP, not group of servers.
Which AgentInstallerJob command?
I got $SERVER_FQDN value from external call. Then my steps are:
Server addServer $SERVER_FQDN false
AgentInstallerJob createAgentInstallerJobWithTargetServer $SERVER_FQDN ...
AgentInstallerJob getDBKeyByGroupAndName ...
And my question is: Is it possible to use one pre-configured Agent Installer Job (AIJ) and do not create unique AIJ for each added server as I have described above?
Is it possible to use one pre-configured Agent Installer Job (AIJ) and do not create unique AIJ for each added server as I have described above?
If the AIJ is appropriate for the target (OS, ARCH), then that should OK
yes - get the dbkey for the agent installer job, and use the 'executeAgainstServers' command.
executeAgainstServers does not waits for the job to end before returning.