Use of environment variables when starting external applications

When an external application task is started against a target, IBM Director passes information about the selected target to the external application by setting the values of environment variables on the management console.

The command line for the external application task can pass the values of the following environment variables to the task as command parameters.
CMDTASK_IP_ADDRESSn
This variable contains the nth TCP/IP address attribute for the targeted system, where n is a counter starting at 0 for the first TCP/IP address.
CMDTASK_MAC_ADDRESSn
This variable contains the nth MAC address for the targeted system, where n is a counter starting at 0 for the first MAC address.
CMDTASK_COMPUTERNAME
This variable contains the ComputerName attribute for the targeted system.
Use of these environment variables is illustrated in the following examples:
Related concepts
External application tasks