How to change the information storage capacity of the log buffer on S series switches

43

For S series switches (except the S1700), run the following commands in the system view to change the storage capacity of the log buffer:
-Run the info-center logbuffer size command to configure the maximum number of logs in the log buffer.
-Run the info-center trapbuffer size command to configure the maximum number of traps in the trap buffer.

Other related questions:
Does the log buffer of S series switches record all logs
The log buffer only records some logs. For S series switches (except the S1700), two factors determine the logs recorded by log buffer. - By default, the log buffer only records logs at levels lower than the warning level (level 4); therefore, logs at levels 0 to 4 are recorded in the log buffer, whereas logs at levels 5 to 7 are not recorded. You can run the info-center source { module-name | default } channel { channel-number | channel-name } log { state { off | on } | level severity } * command to configure the levels of logs that can be recorded in the log buffer. - The space of the log buffer is limited. If the number of logs in the log buffer reaches the maximum, new logs will replace the earliest logs in the log buffer. By default, the log buffer can hold a maximum of 512 logs. You can run the info-center logbuffer size size command to configure the maximum number as 1024.

The difference between the log buffer and trap buffer on S series switches
For S series switches (except the S1700): -The log buffer stores logs. When the device is running, the log module of the host software records operations and events on the device. The recorded operations and events are logs. -The trap buffer stores traps, which can be considered as alarms. If a device is faulty or the device environment does not meet operation requirements, the system cannot work normally and therefore generates alarms depending on the fault type. Each alarm has an ID.

How to send information based on log severity on S series switches
For S series switches (except the S1700), run the following commands in the system view to configure an information channel to send only logs with a specified log severity: - Log: info-center source (specifies the module) channel (specifies the channel) log level (specifies the severity of output logs) - Trap: info-center source (specifies the module) channel (specifies the channel) trap level (specifies the severity of output traps) - Debug: info-center source (specifies the module) channel (specifies the channel) debug level (specifies the severity of output debug messages)

How can I clear logs on a WLAN device
Logs generated on a WLAN device are saved in the log buffer. After the number of logs reaches the specified threshold, the logs are saved to the syslogfile or logfile folder in the device's flash memory. When the WLAN device has been running for a long time, it generates a large number of logs. In this case, you can run the info-center max-logfile-number command to set the maximum number of logs to be saved on the device. You can clear all logs in the buffer and the flash memory. 1. Clear logs in the log buffer or trap buffer. - Run the reset logbuffer command in the user view to clear logs in the log buffer. - Run the reset trapbuffer command in the user view to clear traps in the trap buffer. 2. Clear log files in the flash memory. Run the delete command in the user view to delete log files in the flash memory. To delete logs in the logfile folder, perform the following operations: - delete flash:/logfile/xxx //Delete a log record. xxx specifies the log file name saved in the flash memory. - delete /unreserved flash:/logfile/xxx //Permanently delete a log record, which cannot be restored. - reset recycle-bin //Empty the recycle bin.

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