beautypg.com

Log-rate-limit nsm – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 306

background image

Logging Commands

Software Reference for x310 Series Switches

10.34

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

log-rate-limit nsm

This command limits the number of log messages generated by the switch for a given
interval.

Use the no variant of this command to revert to the default number of log messages
generated by the switch of up to 200 log messages per second.

Syntax

log-rate-limit nsm messages <message-limit> interval <time-interval>

no log-rate-limit nsm

Default

By default, the switch will allow 200 log messages to be generated per second.

Mode

Global Configuration

Usage

Previously, if the switch received a continuous stream of IGMP packets with errors, such as
when a packet storm occurs because of a network loop, then the switch generates a lot of
log messages using more and more memory, which may ultimately cause the switch to
shutdown. This log rate limiting feature constrains the rate that log messages are
generated by the switch.

Note that if within the given time interval, the number of log messages exceeds the limit,
then any excess log messages are discarded. At the end of the time interval, a single log
message is generated indicating that log messages were discarded due to the log rate
limit being exceeded.

Thus if the expectation is that there will be a lot of discarded log messages due to log rate
limiting, then it is advisable to set the time interval to no less than 100, which means that
there would only be one log message, indicating log excessive log messages have been
discarded.

Examples

To limit the switch to generate up to 300 log messages per second, use the following
commands:

To return the switch the default setting, to generate up to 200 log messages per second,
use the following commands:

Parameter

Description

<message-limit>

<1-65535>
The number of log messages generated by the switch.

<time-interval>

<0-65535>
The time period for log message generation in 1/100 seconds.
If an interval of 0 is specified then no log message rate limiting
is applied.

awplus#

configure terminal

awplus(config)#

log-rate-limit nsm messages 300 interval 100

awplus#

configure terminal

awplus(config)#

no log-rate-limit nsm