|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (41)
View Page History{code}
h3. Moving a container to another sub-domain
h3. Getting the server properties
A running container can be move to another sub-domain, using the command '_move-container_':
When connected to a container, it is possible to get all the values defined in its *server.properties* file.
{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>] --target-pass-phrase <target-pass-phrase>
Are you sure you want to move the current container ? (y/n)
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>] --target-pass-phrase <target-pass-phrase>
Are you sure you want to move the current container ? (y/n)
petals-cli@host:port> properties-list
Key1: value1
Key2: value2
...
Key1: value1
Key2: value2
...
{code}
where "keyN" and "valueN" are the keys and values defined in the *server.properties* file of this container.
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,
* *--target-pass-phrase*: the security pass-phrase to access sensible information
* 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,
* *--target-pass-phrase*: the security pass-phrase to access sensible information
h3. Changing logger levels
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.
A confirmation message is displayed in the console mode, except if the '_yes_' flag is set on the command line or as command argument.
On a container, it is possible to change the level of a logger.
{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'
> ./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'
petals-cli@host:port> logger-set -n <logger-name> -l <level>
The log level was succesfully changed.
The log level was succesfully changed.
{code}
In case of error, the error message is "The log level could not be changed.", followed by a detailed message (e.g. "WARN is not a valid log level").
\\
To get all the available loggers with their level, use the command {{loggers}} without any argument.
{code}
petals-cli@host:port> loggers
<logger-name-1> <level>
<logger-name-2> <level>
...
{code}
\\
You can also use a regular expression to filter the candidate results.
{code}
petals-cli@host:port> loggers -p <regular expression>
<logger-name-1> <level>
<logger-name-2> <level>
...
{code}
{tip}Auto-completion is available on logger names and log levels.{tip}
h2. Working with the Topology
\\
To get all the available loggers with their level, use the command {{loggers}} without any argument.
{code}
petals-cli@host:port> loggers
<logger-name-1> <level>
<logger-name-2> <level>
...
{code}
\\
You can also use a regular expression to filter the candidate results.
{code}
petals-cli@host:port> loggers -p <regular expression>
<logger-name-1> <level>
<logger-name-2> <level>
...
{code}
{tip}Auto-completion is available on logger names and log levels.{tip}
h2. Working with the Topology
h3. Getting the topology
{tip}The auto-completion of the filter '{{-c}}' proposes the container names of the topology.{tip}
h3. Getting the server properties
h3. Moving or attaching a container to another sub-domain
When connected to a container, it is possible to get all the values defined in its *server.properties* file.
A running container can be move to another sub-domain, using the command '_move-container_':
{code}
petals-cli@host:port> properties-list
Key1: value1
Key2: value2
...
Key1: value1
Key2: value2
...
>./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>] --target-pass-phrase <target-pass-phrase>]
Are you sure you want to move the current container ? (y/n)
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>] --target-pass-phrase <target-pass-phrase>]
Are you sure you want to move the current container ? (y/n)
{code}
where "keyN" and "valueN" are the keys and values defined in the *server.properties* file of this container.
h3. Changing logger levels
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. Default value: {{localhost}},
* *--target-container-port*: the JMX port of the container of the target sub-domain. Default value: {{7700}},
* *--target-container-user*: the JMX username of the container of the target sub-domain. Default value: {{petals}},
* *--target-container-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
* 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. Default value: {{localhost}},
* *--target-container-port*: the JMX port of the container of the target sub-domain. Default value: {{7700}},
* *--target-container-user*: the JMX username of the container of the target sub-domain. Default value: {{petals}},
* *--target-container-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
On a container, it is possible to change the level of a logger.
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.
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@host:port> logger-set -n <logger-name> -l <level>
The log level was succesfully changed.
The log level was succesfully changed.
> ./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'
> ./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}
In case of error, the error message is "The log level could not be changed.", followed by a detailed message (e.g. "WARN is not a valid log level").
h3. Detaching a container from sub-domain
\\
To get all the available loggers with their level, use the command {{loggers}} without any argument.
To get all the available loggers with their level, use the command {{loggers}} without any argument.
A running container can be detached from a sub-domain, using the command '_move-container_':
{code}
>./petals-cli.sh -C
petals-cli@host:port> loggers move-container
<logger-name-1> <level>
<logger-name-2> <level>
...
<logger-name-2> <level>
...
Are you sure you want to detach the current container ? (y/n)
{code}
\\ where:
You can also use a regular expression to filter the candidate results.
* the container to detach is the container on which Petals CLI is connected
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.
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@host:port> loggers -p <regular expression>
<logger-name-1> <level>
<logger-name-2> <level>
...
<logger-name-1> <level>
<logger-name-2> <level>
...
> ./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'
> ./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}
{tip}Auto-completion is available on logger names and log levels.{tip}
h2. Working with the Service Registry