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.

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

}<br />

// ---------------------------------------------------------------rule<br />

severity_conversion<br />

{<br />

if ($CurrentTrapDevice = "Meridian1"<br />

or $CurrentTrapDevice = "MMCS" or $CurrentTrapDevice = "CALL_SERVER")<br />

{<br />

convertit();<br />

}<br />

}<br />

}<br />

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

// Map severities from devices other than OTM, MDECT, Meridian1<br />

// and CALL_SERVER<br />

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

// 1 -> Critical; 2 -> Major; 3 -> Minor; 4 -> (CallPilot::Info, Warning); 5 -><br />

(CallPilot::Unknown, Cleared); x -> Undetermined<br />

script convertSeverities when ($CurrentTrapDevice != "OTM"<br />

and $CurrentTrapDevice != "Meridian1"<br />

and $CurrentTrapDevice != "MMCS"<br />

and $CurrentTrapDevice != "MDECT" and $CurrentTrapDevice != "CALL_SERVER"<br />

and $CurrentTrapDevice != "MDECT" and $CurrentTrapDevice != "SRG"<br />

and $CurrentTrapDevice != "BCM")<br />

{<br />

function convertit() {<br />

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

$NormalizedSeverity:=Critical;<br />

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

$NormalizedSeverity:=Major;<br />

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

$NormalizedSeverity:=Minor;<br />

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

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

$NormalizedSeverity:=Info;<br />

}else{<br />

$NormalizedSeverity:=Warning;<br />

}<br />

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

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

$NormalizedSeverity:=Info;<br />

}else{<br />

$NormalizedSeverity:=Cleared;<br />

}<br />

}else{<br />

$NormalizedSeverity:=Info;<br />

}}}}}<br />

}<br />

rule severity_conversion<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!