Dynamic targets
The dynamic targets feature enables you to define the connection information for a remote host in an adapter request. With the use of dynamic targets, you can configure an adapter in Grid Manager with a configuration node, <config/>, and designate the configuration node in each adapter request. Alternatively, an adapter configuration can contain a fully defined configuration node and have a dynamic target defined for selected adapter requests. The following adapters support dynamic targets:
- SSH
- Kerberized SSH
- Telnet
- SCP
- FTP
- SFTP
- Windows Command
- PowerShell
- SQL
- DNS
In an adapter request, you can designate the target information using the following methods. You can combine these methods in a single request for multiple targets. The commands provided in an adapter request are executed on each target designated in that request.
Method 1: To designate a specific target that has been defined in the adapter configuration, use the elements shown in the request in the following figure.
XML sample of a specific target...
<targets>
<target name="config name"/>
</targets>
...Method 2: To use all the targets defined in the adapter configuration, use the elements shown in the request in the following figure.
XML sample of all defined targets...
<targets>
<target name="all"/>
</targets>
...Method 3: To define a dynamic target in a request, use the elements shown in the request in the following figure.
XML sample of a dynamic target...
<targets>
<target> <!--adapter-specific target elements-->
</target>
</targets>When defining a dynamic target in an adapter request, you must provide all the required target elements in the request. With a dynamic target, partial target information cannot be retrieved from the adapter configuration. A target is either defined completely in the configuration or in the adapter request.