BesidesAppStatusCheck, how to check the application status by using the Linux or Windows command.

BesidesAppStatusCheck, how to check the application status by using the Linux or Windows command.

book

Article ID: KB0089417

calendar_today

Updated On:

Products Versions
TIBCO Hawk -
Not Applicable -

Description

Description:
Beginning with TIBCO Runtime Agent 5.8.0, there is a bundled tool called AppStatusCheck. It allows users to check the application status by command. However TIBCO Hawk software provides another way to get the status of applications, which is the Hawk Console API. You may create a Java program to connect to a specific hawkagent and invoke any method. This has been shown to be more efficient.

Issue/Introduction

BesidesAppStatusCheck, how to check the application status by using the Linux or Windows command.

Resolution

Refer to the Java code and the readme file in the attachment (Filename: ConsoleAppCheck.java.zip).


1). This code is based on Hawk 4.9.1 with JRE 1.7.0.


2). There are two Java files, one for the RV domain and another for the EMS domain.


3). Trusted mode is not supported in this code. If you want to enable trusted mode, refer to the Hawk document about console API and security.


4). In this code, we use <hawk_domain>.<agent_domain>.<agent_name> to initialize the console application in order to connect to a specific hawkagent. Any periods (".") in <hawk_domain>, <agent_domain> or <agent_name> should be replaced with an underscore ("_").


5). If you encounter a problem obtaining the application status, try to invoke the same method in the Hawk Display or Hawk Console of Administrator GUI and make sure the Deployment and Instance names are correct.

Additional Information

Hawk documentation.

Attachments

BesidesAppStatusCheck, how to check the application status by using the Linux or Windows command. get_app