Chaining Targets

You can chain the targets in various ways to collect the required information, as demonstrated in this section.

Example 1: To Ping all Hosts and Nodes in the Enterprise:

ant -f enterprise_healthcheck_build.xml do.ping health.ent 

For the same outcome, but with use of abbreviated target names:

ant -f enterprise_healthcheck_build.xml dp he 

Example 2: To ping and run a test deployment in the Enterprise:

ant -f enterprise_healthcheck_build.xml do.ping test.deploy health.ent 

Example 3: To ping and run a test deployment in select TIBCO ActiveMatrix Environments:

ant -f enterprise_healthcheck_build.xml do.ping test.deploy health.envs 

This is provided the corresponding data file (enterprise_healthcheck_data.xml) specifies the select Environments. The Environments specified in the data file must be present in TIBCO ActiveMatrix Enterprise; otherwise the Health Check fails.

Example 4: To get metadata of TIBCO ActiveMatrix Administrator:

ant -f enterprise_healthcheck_build.xml get.adminMetaData health.ent 

Example 5: To get the current runtime information of TIBCO ActiveMatrix Administrator:

ant -f enterprise_healthcheck_build.xml get.adminInfo health.ent

For more samples depicting real-world use cases, refer to Sample Enterprise Deployment Health Check Outputs.