No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Device Management

S1720, S2700, S5700, and S6720 V200R011C10

This document describes the principles and configurations of the Device Management features, and provides configuration examples of these features.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
(Optional) Disabling the Log Counter Function

(Optional) Disabling the Log Counter Function

Context

Logs generated on the Switch contain sequence numbers. That is, the log counter function is enabled by default. For example, you can run the display logbuffer command to view the sequence numbers of logs.

<HUAWEI> display logbuffer
Logging buffer configuration and contents : enabled                             
Allowed max buffer size : 1024                                                  
Actual buffer size : 512                                                        
Channel number : 4 , Channel name : logbuffer                                   
Dropped messages : 0                                                            
Overwritten messages : 5                                                        
Current messages : 512                                                          
                                                                                
Jul 17 2012 14:49:32 HUAWEI %%01IFPDT/4/IF_STATE(l)[0]:Interface Ether
net5/0/23 has turned into UP state.                                             
Jul 17 2012 14:49:30 HUAWEI %%01IFPDT/4/IF_STATE(l)[1]:Interface Ether
net5/0/23 has turned into DOWN state.                                           
Jul 17 2012 14:44:22 HUAWEI %%01IFPDT/4/IF_STATE(l)[2]:Interface Ether
net5/0/23 has turned into UP state.                                             
Jul 17 2012 14:14:02 HUAWEI %%01SHELL/4/LOGINFAILED(l)[3]:Failed to lo
gin. (Ip=10.138.123.123, UserName=**, Times=1, AccessType=TELNET)               
Jul 17 2012 11:15:03 HUAWEI %%01INFO/4/RST_LOGB(l)[4]:When deciding wh
ether to reset the logbuffer, the user chose N.                                 
……

If the Switch has been running for a long time, many logs may be generated.

  • To enable the Switch not to encapsulate sequence numbers in logs sent to the log buffer, log file, console, or terminal, disable the log counter function.
  • To re-collect statistics about logs sent to the log buffer, log file, console, or terminal, disable the log counter function, disable the log counter function, and then enable the log counter function.
  • To view logs sent to the log buffer, log file, console, or terminal, disable the log counter function, enable the log counter function so that logs contain sequence numbers in ascending order.
NOTE:
  • If logs are sent to the console, log file, or terminal, logs are counted independently and sequence numbers in the logs are in ascending order. That is, the sequence number of the log that was generated first is 0 and the log that is generated later has a larger sequence number.

  • If logs are sent to the log buffer, sequence numbers in logs are in descending order. That is, the sequence number in the log that is generated recently is 0 and the log that was generated earlier has a larger sequence number.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run info-center local log-counter disable

    The log counter function is disabled.

    By default, the log counter function is enabled.

Translation
Download
Updated: 2019-03-28

Document ID: EDOC1000178167

Views: 196936

Downloads: 944

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next