Transferring Diagnostic Logs from the Software Event Broker

Diagnostic files and debug logs are sometimes required to determine the root cause of operational issues. To access the compressed files and move them to a local directory you can use a third-party application, such as Filezilla or WinSCP, or command-line utilities such as SCP or FTP. A file transfer user account is required to transfer files out of a software event broker.

Creating a File Transfer User Account

To create a new file transfer user account, enter the following commands in the CLI:

solace> enable solace# configure solace(configure)# create username <name> password <password> file-transfer

For more information about creating or editing file transfer user accounts, see Configuring File Transfer User Accounts

Transferring Diagnostic Files Using a Third-Party Application

To transfer files from the software event broker CLI to your computer, perform the following steps:

  1. On the software event broker CLI, create a File Transfer User Account. For more information, see Configuring File Transfer User Accounts.
  2. If you have not already done so, create the log file by using the gather-diagnostics command. For more information, see Gathering Diagnostics from Software Event Broker Containers.
  3. In a third-party application, such as WinSCP or Filezilla, connect to the event broker using port 2222.
  4. Log in with the username and password you configured for your file transfer user account.
  5. Navigate to the logs directory and transfer the file to your computer.

Copying Diagnostic Files Using the Copy Command

To copy files from the CLI to a remote server using SCP or SFTP, enter the following commands in the CLI:

solace> enable solace# copy /logs/<file> [scp|sftp]://<username>@<ip-addr>/<directory>/

Where:

<file> is the name of the diagnostic file that you want to transfer.

<username> is the username for the remote server or computer.

<ip-addr> is the ip-address of the remote server or computer. Port 2222 must be available for the remote server or computer.

<directory> is the directory where the file you want to copy is located.

For example, to use the SCP with the copy command:

copy /logs/gather-diagnostics.tgz scp://filetransferuser@192.168.1.100/tmp