14.12.2012 Views

Optivity Telephony Manager: System Administration - BT Business

Optivity Telephony Manager: System Administration - BT Business

Optivity Telephony Manager: System Administration - BT Business

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Alarm management 601<br />

Example:<br />

counter n;<br />

if(<br />

(($CurrentTrapSource="164.164.8.99") or<br />

($CurrentTrapSource="164.164.8.98"))<br />

and ($CurrentTrapDevice="Meridian1") and<br />

(($NormalizedSeverity=Critical))<br />

){<br />

n:=n+1;<br />

if(n=3)<br />

{<br />

.../*Send notification*/<br />

}<br />

}<br />

For additional examples of how these operators are used, see “Sample alarm notification<br />

scripts” on page 633, and "Script file summary".”<br />

Conditional expressions<br />

The following section describes the conditional expressions that are available for use in<br />

Alarm Notification scripts.<br />

if / else<br />

The if and else expressions can be used with both arithmetic and logical operators.<br />

Syntax:<br />

.<br />

.<br />

if (condition A){<br />

...<br />

}<br />

else<br />

}<br />

.<br />

.<br />

Example:<br />

if($CurrentTrapDevice=”Meridian1” or<br />

$CurrentTrapDevice=”Communication Service”){<br />

convertit(); //Any function<br />

}<br />

<strong>Optivity</strong> <strong>Telephony</strong> <strong>Manager</strong> <strong>System</strong> <strong>Administration</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!