Hi Arun,
Have you try this?
more ./password
AS_ADMIN_ADMINPASSWORD=adminadmin
AS_ADMIN_PASSWORD=adminadmin
AS_ADMIN_MASTERPASSWORD=changeit <---------(default changeit or else
the one you pick)
Thanks,
Homer
Arun Gupta wrote:
> Thanks!
>
> Filed: https://glassfish.dev.java.net/issues/show_bug.cgi?id=7463
>
> for tracking purpose.
>
> Tried the following command ...
>
> ~/demos/glassfish >./bin/asadmin start-node-agent --user admin
> --interactive=false --syncinstances=true --passwordfile ./password
> cloud-node-agent
> CLI152 masterpassword is a required option.
> CLI137 Command start-node-agent failed.
> ~/demos/glassfish >more password
> AS_ADMIN_ADMINPASSWORD=adminadmin
> AS_ADMIN_PASSWORD=adminadmin
>
> What am I still missing ?
>
> Another question ...
>
> The command help is:
>
> Usage: start-node-agent [--terse=false] [--echo=false]
> [--interactive=true] [--user admin_user] [--passwordfile file_name]
> [--agentdir nodeagent_path] [--startinstances=true]
> [--syncinstances=false] [--monitorinterval=5] [--verbose=false]
> [nodeagent_name]
>
> What is the criteria behind using "=" or " " between option name/value
> ? Can we not stick to one of them only to keep it simple ?
>
> -Arun
>
> Kedar Mhaswade wrote:
>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>