CLI script to see if agent is already created in DE (dSeries) Workload Automation
book
Article ID: 92370
calendar_today
Updated On:
Products
DSERIES- SERVERCA Workload Automation DE - System Agent (dSeries)
Issue/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)
Resolution
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.