Avaya Media Processing Server Series System (Software Release 2.1) Manual de usuario Pagina 209

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 306
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 208
Common Configuration
# P0602477 Ver: 3.1.11 Page 209
Logical Conditions
Filters can use the following functions to specify logical conditions:
Function Description
intext("str") Returns a value of true if "str" is a substring of the text of the
alarm.
inText("str") Same basic rules as above, but the substring search is case
sensitive.
frequency(n,
secs)
Returns a value of
true only if at least the number of alarms
indicated by n arrive in the time span (in seconds) indicated by
secs. This function should always be used as the second part of a
conditional expression: only the alarms that satisfy the first part of
the expression are counted against the frequency. For example:
(producer == "vmm" && frequency(5, 10) ) ?
print() : discard ()
prints the current alarm after receiving the fifth vmm alarm within 10 seconds. Since the
print() action also returns true, the alarm is sent to connected viewers as well.
previous() Returns the number of seconds since the previous alarm passed
the filter. This function can be used to prevent repeating actions
caused by a flow of alarms. For instance, the filter:
(severity > 8 && frequency(10,3) && previous() > 300) ?
email("Flood of alarms", "sysadmin"): 0
sends an e-mail to address sysadmin only when 10 alarms of severity greater than eight
have arrived within three seconds and the time since the previous e-mail is greater than five
minutes (300 seconds). Without the use of this function the filter would have generated one
e-mail for each new alarm as long as they met the other criteria.
count() Returns the number of alarms which passed the filter (normally
used as part of an expression). For example:
(producer == "vmm" && (count() % 10) == 1 ) ?
print() : discard ()
prints and sends to connected viewers each 10th alarm produced by vmm.
Vista de pagina 208
1 2 ... 204 205 206 207 208 209 210 211 212 213 214 ... 305 306

Comentarios a estos manuales

Sin comentarios