Export/Download technical support files from UTM firewall using SSH
03/26/2020 45 12011
In order to aid the support engineer`s investigation into the root cause of a customer reported issue, a few files are required from the Dell SonicWall UTM firewall. Below is a list of files which would be needed to troubleshoot and validate the probable causes of the issue:
1. Tech Support Report (TSR).
2. Configuration Settings (exp extension/cli).
3. Firewall Logs (CSV or TXT format).
4. Trace logs(Current, Last, All).
5. Packet Capture(Better with both Html and Libpcap).
This article will demonstrate how to export technical support files from the firewall command line interface(CLI) using SSH session in three operation systems, which are Windows, Linux and MacOS.
To export technical files from CLI using SSH, firstly enable the SSH management on the firewall:
1. Login to the SonicWall Management Interface.
2. Select Network | Interfaces.
3. Click the Edit icon for an interface (e.g. WAN / X1 interface)
4. Select SSH in the supported Management protocol(s) section.
You will also need an available FTP server.
To export technical files from CLI using SSH on windows, following below steps:
Step 1. Launch SecureCRT.
Step 2. In the Quick Connect window, configure the following:
NOTE: Be sure the port is 22.
Step 3. Click "Connect", and then for the first time there will be a pop-up window to ask if accept the host key or not. Click "Accept&Save"
Step 4. Enter the user name of the firewall. and then click "OK".
Step 5. The command line interface will be displayed. Input the password and press enter to the CLI prompt.
Step 6. To export TSR, issue the command "export tech-support-report ftp ftp://username:password@ftpserver/tsr_3600.wri".
Step 7. To export the configuration settings, issue the command "export current-config exp ftp ftp://sonicwall:firstname.lastname@example.org/3600conf.exp" for the import purpose, or issue the command "export current-config cli ftp ftp://sonicwall:email@example.com/3600conf" for configuration review purpose.
Step 8. To export the packet capture file, issue the command "export capture html ftp ftp://sonicwall:firstname.lastname@example.org/net.html", or "export capture libpcap ftp ftp://sonicwall:email@example.com/net.pcap".
Step 9. To export firewall logs and trace logs, firstly enable the session log on SecureCRT, following steps below.
1. Click on the File menu
2. Select Log Session
3. In the Select Log File window, select a location and enter a name for the log file.
4. Click on Save
STEP 10. Then issue the command "show log view", "diag show trace current", "diag show trace last" and "diag show trace". And all the returns will be saved in the session log file.
To export technical files from CLI using SSH on Linux and MacOS , is quite same with the CLI commands part. The difference is about how to connect to the firewall via SSH and how to save the session log.
Step 1. Navigate to Applications | System Tool | Terminal and click, or on the desktop right click then chose "Open In Terminal", and then will use the command line.
Step 2. Issue the command "ssh admin@firewall_ip" to logon the firewall via ssh session.
Step 3. Issue the commands mentioned above. And then on the terminal window, navigate to File | Save contents to save the log as a file.
Step 1. Navigate to Launchpad | other | Terminal and click, and then will use the command line.
Step 2. Issue the command "ssh admin@firewall_ip" to login the firewall via ssh session.
Step 3. Issue the commands mentioned above. And then navigate to Shell | Export Text As to save the log as a file.