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:
1
Open Visual Studio Code
Open Visual Studio Code.
2
Open repository
Open the folder containing the
dep-ppl-app repository.3
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.
4
Run the command
Run the following command in the terminal:The files will be stored in the
logs folder on your local machine and current directory.Via SCP Command
1
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.
2
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:3
Enter the Password
After running the command, you’ll be prompted to enter the password for the
admin user. Once you provide the correct
password, the log file will be copied to your specified local directory.Here are some useful tips for downloading log files using the SCP command:
Via FileZilla
1
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.
2
Launch FileZilla
- After installation, open FileZilla from your Start Menu or Applications folder.
3
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.
4
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.
5
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.
6
Disconnect from the Controller
- Once the download is complete, you can disconnect by clicking on the Disconnect button (red “X” icon) in the toolbar or simply close the FileZilla application.