How can command operation logs be displayed in the log buffer of an AR

27

By default, only warning logs are displayed in the log buffer. Command operation logs are at the notifications level, which is lower than warning. Therefore, command operation logs will not be displayed in the log buffer.
To view command line operation logs in the log buffer, perform the following operations:
1. Run the system-view command to enter the system view.
2. Run the info-center source default channel logbuffer log level notifications command to allow logs of the notifications level to be displayed in the log buffer.

Other related questions:
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.

Are all logs recorded in the log buffer
Only some logs are recorded in the log buffer. Logs that can be recorded in the log buffer are restricted. -By default, only logs at levels lower than the warning logs (level 4) are recorded in the log buffer. Therefore, logs at levels 0 to 4 are recorded to the log buffer and logs at levels 5 and 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 set the levels of logs that can be recorded to the log buffer. -The log buffer space is limited. If the number of logs in the log buffer reaches the maximum value, new logs will replace the existing logs that are placed earlier in the log buffer until all the new logs are stored. By default, the log buffer can hold a maximum of 512 logs. You can run the info-center logbuffer size size command to set the maximum number to 1024.

How to use logs to view operation records on S series switches
To record operation commands in logs on S series switches (except the S1700), run the following command: info-center source SHELL channel logbuffer log level debugging state on You can then run the display logbuffer command to view the commands executed after you log in to the device.

Methods of outputting logs to log files on S series switches
The S series switches (except the S1700) support the storage of logs and alarms in the log files. You can run the dir command in the user view to view the log files, which are named syslogfile or logfile. Perform the following steps to obtain logs and alarms from log files: 1. Run the save logfile command to save information in the log buffer to syslogfile or logfile. Remarks: The device automatically saves logs at regular intervals. The syslogfile file is saved automatically every time the device restarts. The logfile file is automatically saved at regular intervals. 2. After running the save logfile command, you can transfer log files to the terminal (PC) through FTP or TFTP.

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