CLI Target Validation and Upload of Sample Application

 

CLI Target Validation and Upload of Sample Application
C:\AMX342V18_Fresh\ConfigHome\admin\amxadmin\samples>ant -f enterprise_healthcheck_build.xml he
Buildfile: C:\AMX342V18_Fresh\ConfigHome\admin\amxadmin\samples\enterprise_healthcheck_build.xml
[echo] PID: N/A
[echo] Using TIBCO_HOME: C:\AMX342V18_Fresh
[echo] Using remote_props.properties: C:\AMX342V18_Fresh\ConfigHome\admin\amxadmin\samples/remote_props.properties
[echo] For information about available targets, please re-run the Ant script with the
[echo] 'help' option: 'ant -f enterprise_healthcheck_build.xml help'
-test.targets.order:
[echo] Invoked targets: he
[echo] Specified Ant targets are in order hence proceeding with Enterprise Deployment Health Check.
-upload.daa:
[AMXAdminTask] WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
[AMXAdminTask] 04 Apr 2024 16:15:50 INFO - Initializing JSSE's crypto provider class com.sun.net.ssl.internal.ssl.Provider in default mode
[AMXAdminTask] 04 Apr 2024 16:15:50 INFO - Connecting to AMX Admin server at 'http://TIBCO-PG02TYVD:8120' as user 'root'.
[AMXAdminTask] 04 Apr 2024 16:15:50 INFO - Executing action 'add' for 1 objects from data file 'C:\AMX342V18_Fresh\ConfigHome\admin\amxadmin\samples\enterprise_healthcheck_data.xml'
[AMXAdminTask] 04 Apr 2024 16:15:51 INFO - Uploading DAA...
[AMXAdminTask] 04 Apr 2024 16:15:51 INFO - DAA location: C:\AMX342V18_Fresh\ConfigHome\admin\amxadmin\samples\com.tibco.amf.admin.deployment.health.app.daa
[AMXAdminTask] 04 Apr 2024 16:15:52 INFO - Successfully added Application Template 'com.tibco.amf.admin.deployment.health.app' (version: '1.0.0') to the Administrator Staging Area
[AMXAdminTask] 04 Apr 2024 16:15:52 INFO - TIBCO-AMX-ADMIN-005179: Adding features to staging area.
[AMXAdminTask] 04 Apr 2024 16:15:52 INFO - Successfully added Feature 'com.tibco.amf.admin.deployment.health.app.customfeature.id' (version: '1.0.0.v2016-02-25-2301') to the Administrator Staging Area
[AMXAdminTask] 04 Apr 2024 16:15:52 INFO - Action finished at 4/4/24, 4:15 PM in 0.809 seconds

The CLI output snippet above shows the invocation of the "he" ("health.ent") target while invoking Enterprise Deployment Health Check CLI. The flow checks the order of the specified targets (see Restrictions in Target Usage). In the case above, no "Options" targets were specified and only a "main" target ("health.ent") has been specified.

The "upload.daa" target uploads a Sample Application DAA to the target TIBCO ActiveMatrix Administrator. You need not specify this target manually as it is included or excluded depending on whether or not test deployment is a part of the Enterprise Deployment Health Check invocation. In the case above, invoking " he" causes the "test.deploy" target to be called, which in turns calls the "upload.daa" target.