RE: Question on "logging rate-limit" command

From: Shine Joseph (shinepjoseph@iprimus.com.au)
Date: Wed Mar 12 2008 - 10:55:17 ARST


Emil,

When the command logging rate-limit is used, it doesn't include the
debugging logs in the rate-limiting process. But the command logging
rate-limit all includes the rate-limiting of debug logs as well.

Please see below the outputs: To test this I have turned on the just ip icmp
debugging. See the difference in debug outputs with the two commands.
Initially, the rate-limit 1 is turned on. For testing the second command
rate-limit all 1 is used.

R1(config)#do debug ip icmp
ICMP packet debugging is on
R1(config)#logging rate-limit 1
R1(config)#do ping 172.16.12.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
R1(config)#
*Sep 28 05:50:39.523: ICMP: echo reply sent, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.523: ICMP: echo reply rcvd, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.527: ICMP: echo reply sent, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.531: ICMP: echo reply rcvd, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.531: ICMP: echo reply sent, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.535: ICMP: echo reply rcvd, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.535: ICMP: echo reply sent, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.539: ICMP: echo reply rcvd, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.539: ICMP: echo reply sent, src 172.16.12.1, dst
172.16.12.1
*Sep 28 05:50:39.543: ICMP: echo reply rcvd, src 172.16.12.1, dst
172.16.12.1
R1(config)#
R1(config)#logging rate-limit all 1
R1(config)#do ping 172.16.12.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R1(config)#
*Sep 28 05:50:58.347: ICMP: echo reply sent, src 172.16.12.1, dst
172.16.12.1

HTH,
Shine

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
YourPal
Sent: Wednesday, 12 March 2008 10:28 PM
To: Cisco certification
Subject: Question on "logging rate-limit" command

Hi Group,

Excuse me for posting this such a trivial question. It's bothering me and I
wish to seek clarification.

A router has the following config:

!
service timestamps debug datetime msec localtime show-timezone
logging trap debugging
logging 173.1.8.100
!

The task asks to configure the router to limit the number of syslog messages
to 10 per second.

Which one of the following commands answers the task accurately?

logging rate-limit 10
logging rate-limit all 10

I don't quite understand their difference. Please shed some light.

Thank you.

BR,
Emil



This archive was generated by hypermail 2.1.4 : Tue Apr 01 2008 - 07:53:53 ART