Unfortunately, there isn't a simple way to do this.
Given an instance "i1", one would need to do this:
asadmin get servers.server.i1.node-ref
This returns the name of the node. Parse that out (assume the value is
"mynode"). Then do:
asadmin get nodes.node.mynode.node-host
and this will be the host value for that instance.
Another simpler way to get this value is:
asadmin --terse list-instances -l i1
and grep for the line starting with i1 and take the HOST value is in the
second column.
But this causes a query for the status of the instances which may be a
performance issue.
Tom
On 7/9/2011 8:29 PM, vince kraemer wrote:
> I am working on some cluster and instance support for the NB
> integration and have to get this info to support Run->Run Project for
> web app projects and ear projects that have web app interfaces.
>
> Thanks,
> vbk