Reference Guide
FTOS Service Agent | 519
Examples
In this next example, the configuration is to subtract the bit rate that was found in the second sample
from the bit rate found in the first sample. If the difference is at least 10Mb, then any associated action
list will be invoked.
Here are other examples of test-condition configuration statements.
Related
Commands
test-condition (comparison to a value)
c e
Configure an action to collect a sample of a designated statistic and then use the designated Boolean
comparator to compare it to the designated value. When this configuration is associated with an action
list, a result outside of the acceptable limit will trigger the action list.
Syntax
test-condition statistic operator number {cpu | rpm-any} value
FTOS(conf-call-home-testlist-test)#test-condition cpu-1-min increase number ?
<0-100> Enter the boolean comparision value
FTOS(conf-call-home-testlist-test)#test-condition cpu-1-min increase number 80
sample 5
FTOS(conf-callhome-testlist-test)#test-condition cpu-5-min decrease ?
<0-100> Enter the boolean comparision value
FTOS(conf-callhome-testlist-test)#test-condition cpu-5-min decrease 10
FTOS(conf-callhome-testlist-test)#test-condition interface-bit-rate ?
input Input interface
output Output interface
FTOS(conf-callhome-testlist-test)#test-condition interface-bit-rate input ?
<0-3> Slot number
FTOS(conf-callhome-testlist-test)#test-condition interface-bit-rate input 1
decrease ?
<0-10000> Enter the boolean comparision value in mbits/sec
FTOS(conf-callhome-testlist-test)#test-condition interface-bit-rate input 1
decrease 10 ?
sample The time interval to check the condition
<cr>
FTOS(conf-callhome-testlist-test)#test-condition interface-bit-rate input 1
decrease 10 sample ?
<2-100> Enter the sample value (default = 2)
FTOS(conf-callhome-testlist-test)#test-condition interface-bit-rate input 1
decrease 10 sample 2
FTOS(conf-call-home-testlist-test)#test-condition interface-crc 1 decrease number 90
sample 5
FTOS(conf-call-home-testlist-test)#test-condition memory-free-percent no-change
sample 4
dampen Set a delay before sampling for a test condition again after it has been matched.
test-limit Set the number of times that the test list that should be executed.
test-condition
(comparing samples)
Collect multiple samples of a statistic and compare them using the specified
comparator and hurdle value.
test-condition
(comparison to a value)
Collect a sample of a designated statistic and then compare it to the designated
number.