dev@glassfish.java.net

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

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Mon, 30 Mar 2009 06:11:40 -0700

Yep, that's what I'm using as well and find it confusing.

-Arun

Homer Yau wrote:
> Hi Arun,
>
> That's a very good question.
> For now, I just follow the help command synopsis way to use those option
> to set those value or name/value.
> Maybe Admin CLI team member could give us more detail.
>
> Thanks,
> Homer
>
> asadmin> help create-node-agent
>
> Administration Commands create-node-agent(1)
>
> NAME
> create-node-agent - creates a node agent
>
> SYNOPSIS
> create-node-agent
> [--terse={true|false}][ --echo={true|false} ]
> [ --interactive={true|false} ] [ --host host]
> [--port port] [--secure| -s ] [ --user admin_user]
> [--passwordfile filename] [--help]
> [ --agentdir nodeagent_path] [--agentport port_number]
> [--agentproperties (name=value)[:name=value]*]
> [--savemasterpassword={true|false}] [nodeagent_name]
>
> ------------------------------------------------------------------------------
>
> asadmin> help create-domain
>
> Administration Commands create-domain(1)
>
> NAME
> create-domain - creates a domain.
>
> SYNOPSIS
> create-domain [--user user] [--passwordfile passwordfile]
> [(--adminport port_number | --portbase portbase)]
> [(--profile developer | cluster ] --template domain_template)]
> [--domaindir domain_directory/domains]
> [--instanceport port_number] [--savemasterpassword=false]
> [--domainproperties (name=value)[:name=value]*
> ]
> [--savelogin=false] [--terse=false]
> [--echo=false] [--interactive=true]
> domain_name
>
>
> Arun Gupta wrote:
>> Ok, that was the missing property and now it's starting correctly.
>>
>> Any idea on when/why "=" or " " is used as separator for name/value of
>> an option ?
>>
>> -Arun
>>
>> Homer Yau wrote:
>>> 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
>>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta