How to collect logs on S series switches

Created: May 31, 2019 08:16:06Latest reply: May 31, 2019 08:17:22 32 1 0 0
  Rewarded Hi-coins: 0 (problem resolved)

How to collect logs on S series switches

  • x
  • convention:

Featured Answers
Official Created May 31, 2019 08:17:22 Helpful(0) Helpful(0)

Hello there!

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 the 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
  • x
  • convention:

All Answers
All_About_Switch Official Created May 31, 2019 08:17:22 Helpful(0) Helpful(0)

Hello there!

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 the 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
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top