Solace CLI Configuration

This section shows you how to go about Accessing Solace CLI from Software Event Broker Hosts and Configuring Solace CLI Users for Software Event Broker Containers.

Accessing Solace CLI from Software Event Broker Hosts

To run Solace CLI in a software event broker Docker container, use the following Docker command.

>docker exec -it <container_name> /usr/sw/loads/currentload/bin/cli -A

You can also access the bash shell in the software event broker Docker container with a Docker command. However, this is only recommended for debugging purposes.

>docker exec -it <container_name> /bin/bash --login

Configuring Solace CLI Users for Software Event Broker Containers

Solace CLI users are permitted to connect to an event broker for purposes of configuration, management and monitoring.

By default, no Solace CLI users are defined in a software event broker Docker Container.

You can configure Solace CLI users through the Solace CLI or SEMP processes, or through configuration keys in the docker create command that are used on first start-up .

For more general information on CLI users, see Management User Authentication/Authorization.

Configuring Solace CLI Users Using the CLI

To create Solace CLI users through the Solace CLI, do the following: 

  1. Enter the following Docker EXEC command to enter the Solace CLI:

    >docker exec -it <container_name> /usr/sw/loads/currentload/bin/cli -A

  2. In the Solace CLI, enter the following commands to create the admin user:

    solace> enable
    solace# configure
    solace(configure)# create username admin

  3. Enter the following commands to set the global access level for the admin user:

    solace> enable
    solace# configure
    solace(configure)# username admin
    solace(configure/username)# global-access-level <access-level>

  4. Enter the following commands to set the password for the admin user:

    solace> enable
    solace# configure
    solace(configure)# username admin
    solace(configure/username)# change-password <password>

    For detailed information on how to configure and manage CLI users through the Solace CLI, see Management & Shell Users.

Configuring CLI Users Through Configuration Keys

To create Solace CLI users through configuration keys, see Configuration Key Usage.