dev@glassfish.java.net

Re: --password option for create-domain/start-node-agent

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Sat, 28 Mar 2009 17:40:21 -0700

Agree. It's confusing. Passwordfile should have
a format like
AS_ADMIN_ADMINPASSWORD=<admin-password>
AS_ADMIN_PASSWORD=<password-same-as-above>

.asadminpass is in a different format and is used
by asadmin differently.

Yes, this is kinda confusing.

-Kedar

Arun Gupta wrote:
> Trying to create a domain as ...
>
> >./bin/asadmin create-domain --interactive=false --user admin
> --passwordfile $HOME/.asadminpass --portbase 5000 --profile cluster wines
>
> And got the error as ...
>
> Usage: create-domain [--user admin] [--adminport port_number]
> [--terse=false] [--echo=false] [--interactive=true] [--domaindir
> domain_directory] [--profile profile_name] [--template domain_template]
> [--passwordfile filename ] [--instanceport port_number]
> [--savemasterpassword=false] [--domainproperties
> (name=value)[:name=value]*] [--portbase portbase] [--savelogin=false]
> [--checkports=true] domain_name
> CLI152 password is a required option.
>
> --password is not listed as an option and yet the error message expects
> it to be present.
>
> Specifying --password says:
>
> CLI193 Password option "password" is not allowed on the command line.
> Please use --passwordfile option or asadmin login command.
>
> Another one ...
>
> ~/demos/glassfish >./bin/asadmin start-node-agent --interactive=false
> --syncinstances=true --passwordfile=/Users/arungupta/.asadminpass
> cloud-node-agent
> CLI152 masterpassword is a required option.
> CLI137 Command start-node-agent failed.
>
> and --masterpassword is not a valid option.
>
> Confusing ?
>
> -Arun
>