Where are log files saved

12

Log files of a switch are saved in the syslogfile or logfile folder in the flash memory.

dir //Display all the files and folders in the flash memory.
Directory of flash:/

Idx Attr Size(Byte) Date Time FileName
0 -rw- 1,766 Dec 24 2040 03:37:54 private-data.txt
3 drw- - Dec 24 2040 03:40:12 syslogfile
4 drw- - Dec 24 2040 03:37:58 compatible
16 -rw- 10,571 Jan 04 2041 03:51:18 elabel-slot0.fls
...
cd logfile //Access the logfile folder.
dir
Directory of flash:/logfile/

Idx Attr Size(Byte) Date Time FileName
0 -rw- 10,824 Jan 24 2042 09:15:04 logfile-2042-01-24-09-15-03.zip
1 -rw- 15,334 Feb 03 2042 14:45:08 logfile-2042-02-03-14-45-08.zip

Other related questions:
Where are log files of a switch saved and how to view log files
A switch can save logs and alarms in log files. The log file saving method varies depending on product models and versions. All fixed switches running V200R002C00 or V200R003C00, and S5700SI, S5700EI, S5700HI, and S6700 running V200R005C00 or a later version: User logs are created after the switch restarts or the save logfile command is executed. These logs are saved in the syslogfile folder in standard zip format. The file name of a log file starts with syslogfile, followed by the time when the file is created, for example, syslogfile-2013-06-26-09-59-10.zip. Important information log files are created after a system restart and on 00:00 every day. These logs are saved in the resetinfo folder in standard zip format. The name of an important information log file created after a system restart starts with reset-sysinfo, for example, reset-sysinfo-2013-06-06-23-40-32.zip. The name of an important information log file automatically created on 00:00 starts with sysinfo, for example, sysinfo-2013-06-20-00-00-29.zip. S1720, S2720, S2750, S5700LI, S5700S-LI, S5710-X-LI, S5720SI, S5720S-SI, S5710EI, S5720EI, S5710HI, S5720HI, and S6720EI running V200R005C00 or a later version: The system periodically saves information in the log buffer to a user log file (log.log) and a diagnostic log file (log.dblg), which are saved in the logfile folder. When the two log files exceed the specified size, the system compresses them into zip packages and names the compressed files date time.log.zip and date time.dblg.zip, for example, 2013-08-14.04-55-23.log.zip and 2013-09-05.05-15-23.dblg.zip. Important information log files are created after a system restart and on 00:00 every day. These logs are saved in the resetinfo folder in standard zip format. The name of an important information log file created after a system restart starts with reset-sysinfo, for example, reset-sysinfo-2013-06-06-23-40-32.zip. The name of an important information log file automatically created on 00:00 starts with sysinfo, for example, sysinfo-2013-06-20-00-00-29.zip. Perform the following steps to obtain logs and alarms from log files: Run the save logfile command to save information in the log buffer to a log file. Upload all files in flash:/syslogfile/ (or flash:/logfile/ in V200R005C00 and later versions) and flash:/resetinfo/ to your computer through FTP or TFTP. NOTE: If a fault occurs in a stack, for example, the stack splits or restarts unexpectedly, collect log files on all the member switches.

How are log files saved
The log files are saved when a storage device such as a Flash memory, a USB flash drive or an SD card is available. In the user view, run the save logfile command to save log files.

USG6000 log saving
USG6000 log saving modes 1. Check whether the information center is enabled. The information center can record logs only after it is enabled. By default, it is enabled. [sysname] display info-center Information Center:enabled 2. Enable the information center. [sysname] info-center enable 3. Configure the IP address of the log server and the source interface for sending log information. [sysname] info-center loghost x.x.x.x [sysname] info-center loghost source GigabitEthernet 1/0/1 (Optional) Configure the log output in binary format. You also need to configure the eSight NMS server to resolve logs. a. Configure the IP address and port number of the eSight NMS server. [sysname] data-flow loghost 1 ip-address 10.1.1.2 port 9903 b. Configure the IP address and port number used by the device to send binary logs to the eSight NMS server. [sysname] data-flow loghost source ip-address 10.1.1.1 source-port 1617

Save the configuration of the S1728GWR-4P switch
Save the configuration of an S1728GWR-4P switch as follows: Choose System > File, select Config File from the Action drop-down list box, and save a configuration file. Perform the following steps: 1. Choose System > File. 2. Select Config File from the Action drop-down list box. 3. Select save the current configuration from the operation list. 4. Choose needs to be saved in the Save as file name, or rename files. 5. Click Apply.

How to upload the web file of a WLAN device
How to upload the web file of a WLAN device:
Upload the web file to the device through FTP:
1.  Configure the FTP function and FTP user information about the device.
[Huawei] ftp server enable //Enable the FTP service.
[Huawei] aaa
[Huawei-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789  //Create an FTP user with the user name admin1234 and password Helloworld@6789
[Huawei-aaa] local-user admin1234 privilege level 15
[Huawei-aaa] local-user admin1234 service-type ftp  //Configure the user service type to FTP.
[Huawei-aaa] local-user admin1234 ftp-directory flash:  //Configure the directories to which this FTP user has access.
[Huawei-aaa] quit
[Huawei] quit
<Huawei> save
2.  Connect to the device through FTP from the terminal PC, and enter the user name admin1234 and password Helloworld@6789. Then, upload the file in binary mode.
C:\Documents and Settings\Administrator> ftp 10.136.23.5  //IP address of the WLAN device used to interconnect to the PC.
Connected to 10.136.23.5.
220 FTP service ready.
User (10.136.23.5:(none)): admin1234             
331 Password required for admin1234.
Password:
230 User logged in.
ftp> binary
200 Type set to I.
ftp>
3.  Upload the web file to the device.
ftp> put web.zip  
200 Port command okay.
150 Opening BINARY mode data connection for devicesoft.cc
226 Transfer complete.
ftp:   76556  bytes,  3.35s  560.79 KB/s.
4.  Check the files and subdirectories in the current directory.
<Huawei> dir
Directory of flash:/
  Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -rw-          6,311  Feb 17 2012 14:05:04   backup.cfg
    1  -rw-         76,556  Mar 06 2012 17:20:10   web.zip
5.  Load the web file.
<Huawei> system-view
[Huawei] http server load web.zip      //Load the web file. If it has been loaded, ignore it.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top