Petals CLI SNAPSHOT

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

Changes (2)

View Page History
h3. Shutdowning the container

The container can be shut-downed by using the command '_stop_' and the parameter '_\--shutdown_'.
{code}
> ./petals-cli.sh -C
{code}

h3. Moving a container to another sub-domain

A running container can be move to another sub-domain, using the command '_move-container_':
{code}
>./petals-cli.sh -C
petals-cli@host:port> move-container --target-container-subdomain <subdomain-0> --target-container-name <container-0> [--target-container-host <localhost>] [--target-container-port <7700>] [--target-container-user <petals>] [--target-container-pwd <petals>]
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-container-subdomain*: the target sub-domain name, the one that will be joined,
* *--target-container-name*: the name of the container of the target sub-domain, used as entry point in the target sub-domain,
* *--target-container-host*: the host name of the container of the target sub-domain,
* *--target-container-port*: the JMX port of the container of the target sub-domain,
* *--target-container-user*: the JMX username of the container of the target sub-domain,
* *--target-container-pwd*: the JMX password of the container of the target sub-domain,

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}
> ./petals-cli.sh -y -c -- move-container ...
> ./petals-cli.sh -c -- move-container -y ...
> ./petals-cli.sh -c -- move-container
ERROR on command 'move-container': A confirmation is required. Use option: : '-y'
{code}

h3. Getting the topology