Via NATS Application (Preferred)
In the examples folder, there is an application calleddownload-logs.py that retrieves log files from the PPL controller
and stores them in a folder called logs on your local machine within the current directory. Follow the steps below:
Open a new terminal
Open a new terminal by clicking on Terminal in the top menu bar and selecting New Terminal. A terminal window
will open at the bottom of your screen.
Via SCP Command
Open a Terminal
On your local machine, open a terminal:
- Windows: use Command Prompt, PowerShell, or a terminal emulator like Git Bash.
- MacOS or Linux: open the default Terminal application.
- Alternatively, you can use the terminal in VS Code.
Use the SCP Command
To download a specific log file from the remote controller, use the
scp command:- Replace
ipAddresswith the IP address of the controller. - Replace
filenamewith the actual name of the log file you want to download- Filenames include: ppl.log, pplpy.log, livebit.log, natsdriver.log.
- Replace
/local/path/with the directory path on your local machine where you want to save the log file.
192.168.1.10, you want to download the pplpy.log file, and you want to save
it to your Desktop, the command would look like this:Via FileZilla
Download and Install FileZilla
- Go to the Website: Open your browser and visit FileZilla official website.
- Download FileZilla: Click on the Download FileZilla Client button and choose the appropriate version for your operating system (Windows, macOS, Linux).
- Install: Run the downloaded file and follow the installation prompts.
Connect to the Controller
- Open the FileZilla Interface: You’ll see fields at the top labeled
Host,Username,Password, andPort. - Enter Connection Details:
- Host: Enter the IP address of the controller (e.g.,
192.168.1.10). - Username: Enter the username for your controller (
admin). - Password: Enter the admin password for your controller.
- Port: Enter
22for SFTP (secure FTP).
- Host: Enter the IP address of the controller (e.g.,
- Click Quickconnect: Connect to the controller.
Navigate to the Logs Directory
- Remote Site: In the Remote site panel (right side), navigate to the
/opt/ppl/logdirectory where the logs are stored. - Select Logs: Click on the
/opt/ppl/log/folder to open it and view the log files.
Download the Logs
- Select Files: Click on the log files you want to download (you can select multiple files by
holding the
Ctrl(Windows) orCmd(macOS) key). - Download Files: Right-click on the selected files and choose Download or drag them to the Local site panel.
- Monitor Download: Check the download progress at the bottom of the FileZilla interface.