Getting Diagnostics Data from Virtual Appliance
Collecting diagnostics data is a crucial part of Speech Platform 4
troubleshooting and maintenance.
This article outlines methods for retrieving diagnostics data from the virtual
appliance via GUI or command line interface.
The diagnostic data contain:
- CPU, RAM and disk usage.
- System logs, application logs and event history.
- Information about kubernetes objects.
- GUI
- Command line
- Open Settings and then go to Diagnostic data section. If the system asks for a password, enter the password and click on Show diagnostic data button.
- Select the time range for which the diagnostic data should be collected.
The default is last 1 day, but you might want to select longer period, depending on how long ago the issue you are tracking down happened. - Click on Generate button and wait while the system collects the diagnostic data and generates the report.
- When the process is finished, the diagnostic data archive is ready for
download.
The file is namedva-report-YYYY-MM-DD_hh-mm-ss.zip, whereYYYY-MM-DD_hh-mm-ssis the date and time of report creation. - Then click on the Download button to download the report ZIP file.
Alternatively, click on the File Browser button to open the reports storage in File Browser and download the ZIP file from there (the reports storage may contain previously created reports, so make sure to select the correct one to download).
Create the diagnostics report
- Connect to the virtual appliance :
$ ssh phonexia@<virtual-appliance-ip>
- Run diagnostics script:
$ sudo /home/phonexia/scripts/run-diag-report.sh
The script collects all the information and creates a report ZIP archive
/data/reports/va-report-YYYY-MM-DD_hh-mm-ss.zip,
where YYYY-MM-DD_hh-mm-ss is the date and time of report creation.
Now, when the report ZIP archive is created, there are two ways of obtaining it - via command line terminal or via File Browser.
Transfer the diagnostics report to local machine
-
via command line terminal
- Use SCP in the terminal on your local machine (not on the Speech
Platform terminal!) to transfer the report ZIP archive to your local
machine:
wherescp phonexia@<virtual-appliance-ip>:/data/reports/va-report-YYYY-MM-DD_hh-mm-ss.zip "<target-drirectory>"
va-report-YYYY-MM-DD_hh-mm-ss.zipis the name of the created ZIP file"<target-directory>>"is the desired local directory where you want to save the ZIP archive
- Use SCP in the terminal on your local machine (not on the Speech
Platform terminal!) to transfer the report ZIP archive to your local
machine:
-
via File Browser
- Open web browser and navigate to
http://<virtual-appliance-ip>/filebrowser/files - In the File Browser, go to
reportsfolder and select the report ZIP archive (the reports storage may contain previously created reports, so make sure to select the correct one to download) - Start downloading by clicking the highlighted 'down pointing arrow' button in the upper right part of the screen.
- Depending on your browser settings, the ZIP file will either download directly to your downloads folder, or the browser will ask you to specify where to save the ZIP archive.
- Open web browser and navigate to
Verify downloaded file
Check that the va-report-YYYY-MM-DD_hh-mm-ss.zip file has been successfully
downloaded and can be opened.