|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (8)
View Page History - exit: Exit this shell.
- help: Display this help message or help for a specific command.
- help: Display this help message or help for a specific command.
- list-artefacts: List JBI artifacts name and current status.
- list-registry: List the entries of the registry.
- load: Load properties from files.
- load: Load properties from files.
h3. Interacting with several Petals node without exiting Petals CLI
In interactive mode or script mode, we should be able to close a connection and open another one without leaving Petals CLI. This is done by commands '*{{close}}*' and '*{{open}}*'. If no arguments are set on command 'open', default values (localhost:7700, login=petals, pwd=petals) are used:
{code}
> ./petals-cli.sh -C
> ./petals-cli.sh -C
By default (if no argument or option is set):
- In mode 'console', the connexion is establish on command '*{{open}}*' to localhost:7700 with credentials 'petals/petals',
{code}
> ./petals-cli.sh -C
> ./petals-cli.sh -C
h4. Installation/Deployment and start in mass
To deploy several artifact in one command, just put them in a local directory and execute the command '*{{deploy}}*':
{code}
> ./petals-cli.sh -y -f - << EOF
> ./petals-cli.sh -y -f - << EOF
h4. Uninstallation/Undeployment and stop in mass
To undeploy several artifact in one command, just put them in a local directory and execute the command '*{{undeploy}}*':
{code}
> ./petals-cli.sh -y -f - << EOF
> ./petals-cli.sh -y -f - << EOF
h4. Exit the mode 'console'
To exit the mode 'console', use the command '*{{exit}}*'. If a number is set as argument, it is used as return code otherwise, the return code 0 is used:
{code}
> ./petals-cli.sh -C
> ./petals-cli.sh -C
h4. Interrupt a flow of commands
A flow of commands can be interrupted using the command '*{{exit}}*'. If a number is set as argument, it is used as return code. The argument '{{lastErrorCode}}' is used as return code value of the last executed command. Otherwise the return code 0 is returned to the shell:
{code}
> ./petals-cli.sh -y -f - << EOF
> ./petals-cli.sh -y -f - << EOF
0
{code}
{code}
h3. Showing what is installed
h4. Showing installed JBI artefacts
All installed JBI artefacts can be listed using the command '*{{list [<artifact-pattern>]}}*':
{code}
> ./petals-cli.sh -c list "petals-bc-*"
petals-bc-soap Started Component
petals-bc-soap-provide Started Service-Assembly
{code}
where {{<artifact-pattern>}} is an optional RegExp pattern to filter the content of the returned list. All JBI artifact returned must have a JBI identifier matching the pattern. If not pattern is defined, all installed artifacts are returned.
The command isplayed for each artifact:
- its JBI identifier
- its current status,
- its type (SL, Component, SA)