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.

622 Alarm management<br />

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

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

Server<br />

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

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

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

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

$CurrentTrapDevice!="Meridian1"<br />

and $CurrentTrapDevice!="CALL_SERVER") {<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:=Unknown;<br />

}else{<br />

$NormalizedSeverity:=Cleared;<br />

}<br />

}else{<br />

$NormalizedSeverity:=Undetermined;<br />

}}}}}<br />

}<br />

rule severity_conversion {<br />

if ($CurrentTrapDevice!="OTM" and<br />

$CurrentTrapDevice!="Meridian1"<br />

and $CurrentTrapDevice!="CALL_SERVER") {<br />

convertit();<br />

}<br />

}<br />

}<br />

//<br />

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

*******<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!