Reconnect to EMS for Selected Host Using the CLI

Navigate to TIBCO_HOME/administrator/<version>/samples and run the Ant script as follows:

ant -f host_build.xml reconnectToEms
A sample output is shown here:
reconnectToEms:
[AMXAdminTask] 19 Jun 2017 14:49:28 INFO - Initializing JSSE's crypto provider class com.sun.net.ssl.internal.ssl.Provider in default mode
[AMXAdminTask] 19 Jun 2017 14:49:28 INFO - Connecting to AMX Admin server at 'http://localhost:8120' as user 'root'.
[AMXAdminTask] 19 Jun 2017 14:49:28 INFO - Executing action 'reconnectToEms' for 2 objects from data file 'E:\tibco_data_Admin\admin\testamxadmin\samples\host_data.xml'
[AMXAdminTask] 19 Jun 2017 14:49:29 INFO - TIBCO-AMX-CLI-000933: Following hosts will be reconnected to EMS:
[AMXAdminTask] 19 Jun 2017 14:49:29 INFO - -------------------------------------------------------
[AMXAdminTask] 19 Jun 2017 14:49:29 INFO - SystemHost
[AMXAdminTask] 19 Jun 2017 14:49:29 INFO - RemoteHost
[AMXAdminTask] 19 Jun 2017 14:49:29 INFO - -------------------------------------------------------
[AMXAdminTask] 19 Jun 2017 14:49:29 INFO - Reconnection to EMS completed successfully.
[AMXAdminTask] 19 Jun 2017 14:49:29 INFO - Action finished at 6/19/17 2:49 PM in 0.176 seconds