users@glassfish.java.net

Re: command to get the network details for a target

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Tue, 05 Jul 2011 10:30:01 -0500

On 7/1/2011 3:32 PM, Vince Kraemer wrote:
> Is there a command that will get the network details for a target?
AFAIK, no.

It would be nice if there was a "-l" option for the
list-network-listeners command.

Tom
>
> I guess it would look something like this...
>
> asadmin get-listener-details [--listenername=NAME] [target]
>
> here is some sample usages
>
> > asadmin get-listener-details
> http-listener-1 localhost:8080
> http-listener-2 localhost:8181
> admin-listener localhost:4848
>
> > asadmin get-listener-details localInstance
> http-listener-1 localhost:28080
> http-listener-2 localhost:28181
> admin-listener localhost:4848
>
> > asadmin get-listener-details twoInstanceCluster
> http-listener-1 localhost:28080 otherhost:28080
> http-listener-2 localhost:28181 otherhost:28181
> admin-listener localhost:4848 localhost:4848
>
> > asadmin get-listener-details --listenername=http-listener-1
> twoInstanceCluster
> http-listener-1 localhost:28080 otherhost:28080
>
> OR... do I have to use asadmin get to conjure this data out of the raw
> domain data?
>
> Thanks,
> vbk
>