| Hi Kings, Yes, but that is the rate-limit that specifies the max amount of log messages per time. This interval sets the time between the logging. If I've understood it correctly, setting logging rate-limit means you set the maximum rate-limit for _all_ messages (as it is a global config), so also debug messages, and other events that need be logged. But with the logging interval, you can specify the time between the logging messags, so if you would specify logging interval 500 it means that log messges can only be generated for each half a second. This is a config example from the IOS guide: Configuring Global Control Plane Logging for Dropped and Permitted Packets: ExampleThe following example shows how to configure a global control-plane logging service policy to log all dropped and permitted packets that hit the control-plane host feature path only, regardless of the interface from which the packets enter the router. Also, the router rate-limits the log messages to one every 5 seconds. ! Define a class map of type logging to specify what packets will be logged. Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# class-map type logging match-any cpplog-host-map Router(config-cmap)# match packets dropped Router(config-cmap)# match packets permitted Router(config-cmap)# exit ! Define a policy map of type logging using your logging class map and rate-limit log messages to one every 5 seconds. Router(config)# policy-map type logging cpplog-host-policy Router(config-pmap)# class cpplog-host-map Router(config-pmap-c)# log interval 5000 Router(config-pmap-c)# exit Router(config-pmap)# exit ! Apply the new logging policy map to the control-plane host feature path interface. Router(config)# control-plane host Router(config-cp)# service-policy type logging input cpplog-host-policy Router(config-cp)# end Router# Aug 8 17:57:57.359: %SYS-5-CONFIG_I: Configured from console by cisco on console Router# The following output displays the logging policy map that was just added to the control-plane host feature path interface: Router# show policy-map type logging control-plane host Control Plane Host Service-policy logging input: cpplog-host-policy Class-map: cpplog-host-map (match-any) 0 packets, 0 bytes 5 minute offered rate 0 bps, drop rate 0 bps Match: packets dropped 0 packets, 0 bytes 5 minute rate 0 bps Match: packets permitted 0 packets, 0 bytes 5 minute rate 0 bps log interval 5000 Class-map: class-default (match-any) 0 packets, 0 bytes 5 minute offered rate 0 bps, drop rate 0 bps Match: any On 14 mei 2010, at 08:42, Kingsley Charles wrote:
--- Nefkens Advies Enk 26 4214 DD Vuren The Netherlands Tel: +31 183 634730 Fax: +31 183 690113 Cell: +31 654 323221 Email: [email protected] |
_______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com
