Performing Notification Ping for Selected Nodes

To perform the Notification ping for selected Nodes (as detailed in the Available Ant Targets section), specify names of the Nodes in the enterprise_healthcheck_data.xml file and run the following command:

ant -f enterprise_healthcheck_build.xml np hns

The following is the sample output for the command:

As shown in the following output, Notification ping runs for the Nodes mentioned in the enterprise_healthcheck_data.xml file along with Hosts managing the Nodes. You can view exactly how many entities responded to Notification ping in the CLI output. In the following sample output, all entities have replied, so result is displayed as Received 2 out of 2 replies.

C:\AMX342V18_Fresh\administrator\3.4\samples>ant -f enterprise_healthcheck_build.xml np hns
Buildfile: C:\AMX342V18_Fresh\administrator\3.4\samples\enterprise_healthcheck_build.xml
[echo] PID: N/A
[echo] Using TIBCO_HOME: C:\AMX342V18_Fresh
[echo] Using remote_props.properties: C:\AMX342V18_Fresh\administrator\3.4\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: np,hns
[echo] Specified Ant targets are in order hence proceeding with Enterprise Deployment Health Check.
-decide.should.we.upload.Sample.daa.or.not:
-noUpload:
notification.ping:
np:
-test.targets.order:
-upload.daa:
health.nodes:
[AMXAdminTask] WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
[AMXAdminTask] 04 Apr 2024 16:07:22 INFO - Initializing JSSE's crypto provider class com.sun.net.ssl.internal.ssl.Provider in default mode
[AMXAdminTask] 04 Apr 2024 16:07:22 INFO - Connecting to AMX Admin server at 'http://TIBCO-PG02TYVD:8120' as user 'root'.
[AMXAdminTask] 04 Apr 2024 16:07:24 INFO - Executing action 'checkDeploymentHealth' for 1 objects from data file 'C:\AMX342V18_Fresh\administrator\3.4\samples\enterprise_healthcheck_data.xml'
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Starting Enterprise Deployment Health Check (Invocation ID: root:healthcheck:2024-04-04-160725) CLI options in use: [ping,notificationPing]
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - XML report will be created in [C:\AMX342V18_Fresh\administrator\3.4\samples]
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - For ActiveMatrix Enterprise: amxadmin [access URL: http://TIBCO-PG02TYVD:8120]
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Running Ping for below Entities [Filtered based on NODE(s) specified in the data file enterprise_healthcheck_data.xml]
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - For Environment: [DevEnvironment]
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Host [SystemHost] manages:
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Node(s): DevNode
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO -
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Deployment Health Check is in progress, may take a few minutes ...
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Admin Information :
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Time taken to ping Admin: 0.01 seconds
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Host information: [Showing ping timings]
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Host: SystemHost
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Host Version: 3.4.2
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Host Ping Time: 0.001 seconds
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Node: DevNode
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Node Ping Time: 0.002 seconds
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Node Status: Initialized[AMXAdminTask] 04 Apr 2024 16:07:26 INFO -
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - Enterprise Notification ping initiated at - 04 Apr 2024 16:07:26
[AMXAdminTask] 04 Apr 2024 16:07:26 INFO - .
[AMXAdminTask] 04 Apr 2024 16:07:27 INFO - Enterprise Notification ping completed in 1 seconds
[AMXAdminTask] 04 Apr 2024 16:07:27 INFO - Received 2 out of 2 replies [1 Host(s) and 1 Node(s).]
[AMXAdminTask] 04 Apr 2024 16:07:33 INFO - ---------------------------------------------
[AMXAdminTask] 04 Apr 2024 16:07:33 INFO - Enterprise Deployment Health Check is now Complete with the status PASSED.
[AMXAdminTask] 04 Apr 2024 16:07:33 INFO - ---------------------------------------------
[AMXAdminTask] 04 Apr 2024 16:07:33 INFO - Publishing Health Check report to the [XML format] file: C:\AMX342V18_Fresh\administrator\3.4\samples\DeploymentHealthCheckReport_root_healthcheck_2024-04-04-160725.xml
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/C:/AMX342V18_Fresh/components/shared/1.0.0/plugins/com.tibco.tpcl.javax.system.exports_5.1.100.002/jaxb-impl-2.2.6.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[AMXAdminTask] 04 Apr 2024 16:07:34 INFO - Health Check report file was created successfully.
[AMXAdminTask] 04 Apr 2024 16:07:34 INFO - Action finished at 4/4/24, 4:07 PM in 8.544 seconds
hns:
BUILD SUCCESSFUL
Total time: 1 minute 28 seconds

The names of the Nodes 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>