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.

894 Appendix B: Control files included with alarm notification<br />

Sample Alarm Notification script file<br />

This section shows the content of the sample_an_script.txt included with the OTM<br />

application.<br />

// ***************************************************************************************<br />

//<br />

// Alarm Notification Scripts<br />

//<br />

// ***************************************************************************************<br />

// ***************************************************************************************<br />

// Map severities from the various traps that OTM receives into a standard severity list.<br />

// ***************************************************************************************<br />

counter $NormalizedSeverity := 0;<br />

counter Undetermined := 0;<br />

counter Critical := 1;<br />

counter Major := 2;<br />

counter Minor := 3;<br />

counter Warning := 4;<br />

counter Info := 5;<br />

counter Cleared := 6;<br />

// ==========================================================================<br />

// Map OTM severities<br />

// ==========================================================================<br />

// 1 -> Critical; 2 -> Major; 3 -> Minor; 4 -> Warning; 5 -> Info; 6 -> Cleared;x -> Info<br />

script AssignOTMSeverities when ( $CurrentTrapDevice = "OTM" ) {<br />

function assignit() {<br />

if ($Severity=Critical) {<br />

$NormalizedSeverity:=Critical;<br />

}else{ if ($Severity=Major) {<br />

$NormalizedSeverity:=Major;<br />

}else{ if ($Severity=Minor) {<br />

$NormalizedSeverity:=Minor;<br />

}else{ if ($Severity=Info) {<br />

$NormalizedSeverity:=Info;<br />

}else{ if ($Severity=Warning) {<br />

$NormalizedSeverity:=Warning;<br />

}else{ if ($Severity=Cleared){<br />

$NormalizedSeverity:=Cleared;<br />

}else{<br />

$NormalizedSeverity:=Info;<br />

}}}}}}<br />

}<br />

rule assign_severity {<br />

if ($CurrentTrapDevice="OTM") {<br />

553-3001-330 Standard 3.00 August 2005

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

Saved successfully!

Ooh no, something went wrong!