Petals CLI 2.3.0-SNAPSHOT

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (26)

View Page History
petals-cli@host:port> topology-list
Domain: Domain 1
* Subdomain: SubDomain 1
** * Container: Node1 (Started)
*** information

** * Container: Node2 (Stopped)
*** information

* Subdomain: SubDomain 2
...
{code}
petals-cli@host:port> topology-list -p mypassphrase
Domain: Domain 1
* Subdomain: SubDomain 1
** * Container: Node1 (Started)
*** information including credentials
{code}

This command shows a set of Petals nodes, sorted by domain and sub-domains, each node having the following information:
* Container name,
* Container state (possible values are: {{Started}}, {{Stopped}}, {{Unknown}}),
petals-cli@host:port> topology-list -c Node1
Domain: Domain 1
* Subdomain: SubDomain 1
** * Container: Node1 (Started)
*** information of Node1
{code}

{tip}The auto-completion of the filter '{{-c}}' proposes the container names of the topology.{tip}

h3. Moving or attaching a container to another sub-domain

A running container can be moved to another sub-domain, using the command '_move-container_':
{code}
>./petals-cli.sh -C
petals-cli@host:port> move-container [--target-subdomain <subdomain-0> --target-name <container-0> [--target-host <localhost>] [--target-port <7700>] [--target-user <petals>] [--target-pwd <petals>] --target-pass-phrase <target-pass-phrase>]
Are you sure you want to move the current container ? (y/n)
{code}
where:
* the container to move is the container on which Petals CLI is connected
* *--target-subdomain*: the target sub-domain name, the one that will be joined,
* *--target-name*: the name of the container of the target sub-domain, used as entry point in the target sub-domain,
* *--target-host*: the host name of the container of the target sub-domain. Default value: {{localhost}},
* *--target-port*: the JMX port of the container of the target sub-domain. Default value: {{7700}},
* *--target-user*: the JMX username of the container of the target sub-domain. Default value: {{petals}},
* *--target-pwd*: the JMX password of the container of the target sub-domain. Default value: {{petals}},
* *--target-pass-phrase*: the security pass-phrase to access sensible information

Note that the domain and container names are only used to verify the consistency of the move: in the end, what matters is that the container will be moved to the same domain as the target container that is contacted using the JMX connection informations.

A confirmation is expected, except if the '_yes_' flag is set on the command line or as command argument, otherwise an error will occur.
A confirmation message is displayed in the console mode, except if the '_yes_' flag is set on the command line or as command argument.
{code}

h3. Detaching a container from sub-domain

h3. Detaching a container from domain

A running container can be detached from a sub-domain, using the command '_move-container_':
{code}
>./petals-cli.sh -C