This should be working in v3. The code is there in
ProgramOptions.java. If the port isn't specified on the command line,
it looks for the AS_ADMIN_PORT environment variable.
Also should work for HOST, USER, PASSWORDFILE and most other string
values, e.g., TERSE
Here's an example of this working:
$ AS_ADMIN_PORT=4849 asadmin list-instances
Remote server does not listen for requests on [localhost:4849]. Is the
server up?
No such local command, list-instances. To run remote commands, start the
application server (e.g. 'asadmin start-domain').
Command list-instances failed.
(I didn't have a DAS running on port 4849).
Tom
On 11/17/2010 6:58 AM, Jane Young wrote:
> Hi,
>
> In v2, you can override the default option value by setting the
> environment variable AS_ADMIN_<OPTION>.
> For example you can override the default port number 4848 by setting
> AS_ADMIN_PORT=<number> in the OS environment.
> Looks like this no longer works in v3. Are we planning to support
> this feature in v3?
>
> Jane
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>