CLI script to see if agent is already created in DE (dSeries) Workload Automation

Document ID : KB000092370
Last Modified Date : 18/05/2018
Show Technical Document Details
Introduction:
How to use a CLI command in a script to see if agent is already created in Workload Automation DE (dSeries).
Environment:
CA Workload Automation DE (dSeries)
Instructions:
In Workload Automation DE, you can use the LISTAGENT CLI command to list and display the status information of agents defined on the DE Server.

On the Unix server, run the CLI script to execute the LISTAGENT CLI command. For example;
cd /opt/CA/DE/bin
./cli DE_Server 7500 schedmaster schedmaster 'listagent agent("*")'


Also, you can setup a script and redirect the output to a file.