Performing Notification Ping for Selected Environments
To perform the Notification ping for selected Environments (as detailed in the
Available Ant Targets section), specify names of the Environments in the
enterprise_healthcheck_data.xml file and run the following command:
ant -f enterprise_healthcheck_build.xml np hes
The following is the sample output for the command:
As shown in the following output, Notification ping runs for the Environments mentioned in the
enterprise_healthcheck_data.xml file along with Nodes in the Environment and Hosts managing them. You can view exactly how many entities responded to Notification ping. In the following sample output, all entities have replied, so the result is displayed as
Received 6 out of 6 replies.
[AMXAdminTask] 26 Aug 2019 16:46:57 INFO - Initializing JSSE's crypto provider class com.sun.net.ssl.internal.ssl.Provider in default mode [AMXAdminTask] 26 Aug 2019 16:46:57 INFO - Connecting to AMX Admin server at 'http://test-t470:8120' as user 'root'. [AMXAdminTask] 26 Aug 2019 16:46:58 INFO - Executing action 'checkDeploymentHealth' for 1 objects from data file 'D:\AMX_Installations\AMX_340_HF1_V66_TI\DATA_EDHC_Changes\admin\amxadmin\samples\enterprise_healthcheck_data.xml' [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - Starting Enterprise Deployment Health Check (Invocation ID: root:healthcheck:2019-08-26-164659) CLI options in use: [ping,notificationPing] [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - XML report will be created in [D:\AMX_Installations\AMX_340_HF1_V66_TI\DATA_EDHC_Changes\admin\amxadmin\samples] [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - For ActiveMatrix Enterprise: amxadmin [access URL: http://test-t470:8120] [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - Running Ping for below Entities [Filtered based on ENVIRONMENT(s) specified in the data file enterprise_healthcheck_data.xml] [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - For Environment: [Env1] [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - Host [HostA] manages: [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - Node(s): NodeW, NodeX [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - Host [HostB] manages: [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - Node(s): NodeY, NodeZ [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - [AMXAdminTask] 26 Aug 2019 16:46:59 INFO - Deployment Health Check is in progress, may take a few minutes ... [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Admin Information : [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Time taken to ping Admin: 0.009 seconds [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Host information: [Showing ping timings] [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Host: HostA [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Host Version: 3.4.0.HF1 [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Host Ping Time: 0.0 seconds [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node: NodeW [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node Ping Time: 0.002 seconds [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node Status: Initialized [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node: NodeX [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node Ping Time: 0.004 seconds [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node Status: Initialized [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Host: HostB [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Host Version: 3.4.0.HF1 [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Host Ping Time: 0.001 seconds [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node: NodeY [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node Ping Time: 0.01 seconds [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node Status: Initialized [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node: NodeZ [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node Ping Time: 0.006 seconds [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Node Status: Initialized [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - Enterprise Notification ping initiated at - 26 Aug 2019 16:47:00 [AMXAdminTask] 26 Aug 2019 16:47:00 INFO - . [AMXAdminTask] 26 Aug 2019 16:47:07 INFO - Received replies from 3 of 6 entities [1 Host(s) and 2 Node(s)]. Number of entities that have not yet responded: 3 [AMXAdminTask] 26 Aug 2019 16:47:14 INFO - . [AMXAdminTask] 26 Aug 2019 16:47:21 INFO - . [AMXAdminTask] 26 Aug 2019 16:47:28 INFO - . [AMXAdminTask] 26 Aug 2019 16:47:31 INFO - Enterprise Notification ping completed in 31 seconds [AMXAdminTask] 26 Aug 2019 16:47:31 INFO - Received 6 out of 6 replies [2 Host(s) and 4 Node(s).] [AMXAdminTask] 26 Aug 2019 16:47:35 INFO - --------------------------------------------------------------------------------- [AMXAdminTask] 26 Aug 2019 16:47:35 INFO - Enterprise Deployment Health Check is now Complete with the status PASSED. [AMXAdminTask] 26 Aug 2019 16:47:35 INFO - --------------------------------------------------------------------------------- [AMXAdminTask] 26 Aug 2019 16:47:35 INFO - Publishing Health Check report to the [XML format] file: D:\AMX_Installations\AMX_340_HF1_V66_TI\DATA_EDHC_Changes\admin\amxadmin\samples\DeploymentHealthCheckReport_root_healthcheck_2019-08-26-164659.xml [AMXAdminTask] 26 Aug 2019 16:47:36 INFO - Health Check report file was created successfully. [AMXAdminTask] 26 Aug 2019 16:47:36 INFO - Action finished at 8/26/19 4:47 PM in 37.044 seconds
The names of the Environments used for this Notification ping execution are input from the enterprise_healthcheck_data.xml file.
Sample
enterprise_healthcheck_data.xml:
<Environment xsi:type="amxdata:Environment" name="Env1" description="Dev environment" contact="TIBCO"> <Node xsi:type="amxdata:Node" name="NodeZ"/> </Environment>
Copyright © Cloud Software Group, Inc. All rights reserved.