In-depth explanation of speed limits in Cisco router logs

Source: Internet
Author: User

First, familiarize yourself with the date and timestamp in the Cisco router logs, which are useful when they occur. In the following content, we will detail the expertise in serial numbers and speed limits.

1. Date and timestamp. The default message does not include the date and timestamp, which is useful when determining the log time:

Hostname (config) # service timestamps {debug | log} uptime, hostname (config) # service timestamps {debug | log} datetime [msec] [localtime] [show-timezone] [year] Two timestamps can be added to log messages. When the uptime parameter is used, the time since the device was started will be added for the log information, as shown below: 2w1d: % SYS-5-CONFIGJ: Configured from console by console. indicates that when the log is sent, the router starts for 2 weeks and 1 day.

When the datetime parameter is used, the date and time in UTC format are added to the Cisco router log message. The standard format is mmm dd hh: MM: SS. There are other parameters in the datetime option. The msec parameter makes the log information time contain milliseconds, and the local-time indicates the time in the log information to use the local time of the router, show-timezone indicates that the time zone message is displayed in the log information, and year indicates that the year information is displayed in the log information. The following example uses these parameters: Feb 4 2009 11:11:24 UTC: % SYS-5-CONFIGJ: Configured from console by console.

2. Serial number

In addition to adding a timestamp tag to the Cisco router log message, you can also add a serial number to the log information. Run the following command: hostname (config) # service sequence-numbers. the following is an example of log information opened at both the timestamp and serial number: 000121 :. feb 4 2009 11:11:24 UTC: % SYS-5-CONFIGJ: Configured from console by console. in this example, if the serial number is 121, it indicates that this is the 121 message to be logged.

3. Speed Limit

We can use the logging rate-limit command to limit the log record speed in seconds: hostname (config) # logging rate-limit {number | all number | console number} [cannot t severity] by default, no restrictions are configured on the vro. You can specify a number to limit the number of logs recorded per second. The all keyword enables the speed limit command to act on log information and debugging information. The console parameter limits the rate at which the Cisco router log information is sent to the console. The expires t parameter creates an exception for a specified message severity level or higher level.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.