How to collect logs on S series switches

The S series switches (except the S1700) support the storage of logs and alarms in log files.
You can run the dir command in the user view to view the log files, which are named syslogfile or logfile.
The syslogfile file is saved automatically every time the device restarts. The logfile file is automatically saved at regular intervals.
Run the save logfile command to save information in the log buffer to syslogfile or logfile.
In addition, if the system is faulty or under routine maintenance, you can run the display diagnostic-information [module-name] [ file-name ] command to view diagnosis information and check the running status of each module. In the command, file-name is the name of file that stores the diagnosis information.


You can perform the following steps to collect switch log files:
1. Run the save logfile command to save information in the log buffer to a log file.
2. Run the cd logfile command to access the directory where the log file is located.
3 Use FTP or TFTP to obtain the log.log and the log.dblg files from this directory.


For example, assume that the S series switch (192.168.0.1) functions as the FTP client, and the PC (192.168.0.2) functions as the FTP server. To upload the log.log and log.dblg files in the logfile directory of the switch to the PC, you must ensure that the switch and PC can communicate with each other and the FTP function is available.
Use FTP to access the PC from the S series switch:
cd logfile
ftp 192.168.0.2 //Enter the FTP user name and password
put log.log
put log.dblg

Other related questions:
How to collect logs of a CE series switch
If you have more questions, you can seek help from following ways:
To iKnow To Live Chat To Google
Scroll to top