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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 306
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 212
Common Configuration
# P0602477 Ver: 3.1.11 Page 213
Filtering Examples
Several examples illustrating the concepts discussed earlier are included below. While
providing a sense of the capabilities available with alarm filtering, they are by no
means comprehensive. The flexibility inherent in the programming model allows you
to develop filtering as simple or complex as required to suit your needs.
In this example, two separate filters are combined into one filter set to log CCM
and VMM alarms into separate files and send only those alarms to the viewers:
(producer == "ccm") ? log("ccm.log") : false;
(producer == "vmm") ? log("vmm.log") : false
When an alarm arrives, it is compared to the filters in the set, in order. If the
process producing the alarm is CCM, the first part of the first filter is satisfied, the
alarm written to its respective file, and the value returned as true (resulting in
the alarm being sent on to the viewers). If the alarm is not from the CCM process,
it fails the first part of the filter and is assigned a value of false by the second
part. However, because a function of discard() has not been assigned,
checking continues through the second filter, for the process VMM, in the same
fashion as the first. If the alarm fails this check it is again assigned a value of
false and is not sent to the viewers, and no further checking is performed. The
two filters are separated by a semicolon (;).
The following filter e-mails (internal) user peri and helpd[email protected]
with nriod alarms, but does not send them on to the viewers because neither
filter returns a value of true (even though an alarm may satisfy the producer
portion of the filter, the filter itself assigns a value of false through the &&
false expression). Any alarm not produced by either process is also kept from
being sent to the viewers due to the secondary false statement. The flow from
filter-to-filter occurs in the same manner as that in the previous example.
(producer == "mxvmt") ?
(email("MXVMT alarm", "peri")&& false):false;
(producer == "nriod") ?
(email("nriod alarm", "helpdesk@nni.com")&&
false):false
In this instance, all commgr alarms are logged to a file located in /home/user,
but not sent to the viewers or checked further due to the discard() function.
All other alarms, however, are sent to the viewers because the second portion of
the filter always returns a value of true.
(producer == "commgr") ?
(log("/home/user/commgr.log") && discard()) : true
Vista de pagina 212
1 2 ... 208 209 210 211 212 213 214 215 216 217 218 ... 305 306

Comentarios a estos manuales

Sin comentarios