Ratio Rule Type Example - Extreme Networks ExtremeWare XOS Guide Manual

Concepts guide
Hide thumbs Also See for ExtremeWare XOS Guide:
Table of Contents

Advertisement

snmptrap 123 "Traffic to 192.168.16.0/24 falls below rate limit";
qosprofile acl_rule1 QP1;
cli "configure qosprofile qp3 maxbw 100 ports all" ;
}
}

Ratio Rule Type Example

In this example, every 2 seconds the CLEARFlow agent will request the counter1 and counter2 statistics
from the hardware. After it receives the two counter values, it will then check each counter value
against its minimum valid threshold, which is 1000. If both of the counter values is greater then 1000, it
then calculates the ratio of counter1 and counter2. If the ratio is greater than 5, then the agent will
execute the actions in the
logging the syslog string, the agent will replace the
cflow_ratio_rule_example, the
keyword with a value of 5. If either of the counter values is below the minimum value
$ruleThreshold
of 1000, or the ratio is below the threshold of 5, the expression is false and no action is taken.
entry acl_rule1 {
if {
protocol udp;
} then {
count counter1;
}
}
entry acl_rule2 {
if {
protocol tcp;
} then {
count counter2;
}
}
entry cflow_ratio_rule_example
if
{ ratio counter1 counter2 > 5 ;
period 2;
min-value 1000;
}
then {
syslog "Rule $ruleName threshold ratio $ruleValue exceeds limit
$ruleThreshold";
}
}
ExtremeWare XOS 11.1 Concepts Guide
clause, which consists of logging a message to the syslog server. Before
then
keyword with the calculated ratio value, and the
$ruleValue
{
keyword with the string
$ruleName
CLEARFlow Rule Examples
263

Advertisement

Table of Contents
loading

This manual is also suitable for:

Extremeware xos 11.1

Table of Contents