A Way to Retrieve List of Deployed BW And Adapter Instances Programmatically?

I'm looking for a way to retrieve the list of deployed (and un-deployed) BW and adapter instances of a TIBCO Domain programmatically?
Is there an API (e.g. in HAWK) to retrieve this kind of information?

You may use the Hawk Console API (see related PDF documentation under Hawk installation folder).

In this case, you may call the methods getDeploymentStatus() and getComponentInstanceStatus() from microagent "COM.TIBCO.admin.TRA" to retrieve the information you need (such as version, deployment timestamp,
state, host, etc.). However, those methods require the deployment name as an input.

You may also use the methods getProcess(), getInstanceCountByCommand() and OnNewStatusOrCmd() from microagent "COM.TIBCO.hawk.hma.Process" to retrieve some similar information without having to know the deployment name beforehand.

Briac

Help the community by fixing grammatical or spelling errors, summarizing or clarifying the solution, and adding supporting information or resources. Always respect the original author.

One simple way to get list of deployed application in domain is to execute
Unix command to get the list of files type ".ear"

I am not sure whether is API is there or not, but to create any process
to findout for Undeployed or deployed applications, we can create a small
bw process which takes input of* Administrator.log* file in
TIBCO_HOME\tra\domian\domain_name\logs\administrat or.log,
in this file we can get list by fetching the line which contains *[MANAGE
APPLICATIONS]* *

*lines which contains manage applications will action performed on the
application like Deployed,undeployed and Installed i.e save/uploaded but
not deployed.

Hey Kiran,
Many thanks for your reply! We use a DB as domain repository and thus do not store any EAR files on the server.
For the hint in regards to the administrator log, would you have an idea on when this [MANAGE APPLICATIONS] log entry would be created? I assume there are special event required for that (e.g. new deployment or start of admin server). Some of our applications are deployed for quite some time and I'm afraid that this information might no longer be available in the logs.

Hi Vijay,
Many thanks for your reply!
I did try to avoid using AppManage. There is another tool that would be even better "AppStatusCheck" which would allow to get the desired information in an XML format, but I want to avoid shell-outs from my application. I was envisioning something like an API that I could use or a direct access to the domain repository.

First of all, there is api for sure. But that's internal thing which I don't think expose to client. The good thing is there is a utility you can use but you have to get it from TIBCO support.

At 2012-11-08 22:01:27,kiranjavvadi email@removed wrote:

| Reply from kiranjavvadi on Nov 8 at 8:57 AM
| Hi Markus,

One simple way to get list of deployed application in domain is to execute
Unix command to get the list of files type ".ear"

I am not sure whether is API is there or not, but to create any process
to findout for Undeployed or deployed applications, we can create a small
bw process which takes input of* Administrator.log* file in
TIBCO_HOME\tra\domian\domain_name\logs\administrat or.log,
in this file we can get list by fetching the line which contains *[MANAGE
APPLICATIONS]* *

*lines which contains manage applications will action performed on the
application like Deployed,undeployed and Installed i.e save/uploaded but
not deployed.

Actually, that reminds me there is a Hawk microagent you can use to get the app list but it's return a xml format and you can use the Hawk console api to get it and interpret yourself.

At 2012-11-08 00:39:57,stuelpm email@removed wrote:

| Question from stuelpm on Nov 7 at 11:31 AM
| Hi,

I'm looking for a way to retrieve the list of deployed (and un-deployed) BW and adapter instances of a TIBCO Domain programmatically?
Is there an API (e.g. in HAWK) to retrieve this kind of information?

You may use the Hawk Console API (see related PDF documentation under Hawk installation folder).

In this case, you may call the methods getDeploymentStatus() and getComponentInstanceStatus() from microagent "COM.TIBCO.admin.TRA" to retrieve the information you need (such as version, deployment timestamp,
state, host, etc.). However, those methods require the deployment name as an input.

You may also use the methods getProcess(), getInstanceCountByCommand() and OnNewStatusOrCmd() from microagent "COM.TIBCO.hawk.hma.Process" to retrieve some similar information without having to know the deployment name beforehand.