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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

620 Alarm management<br />

A portion of the sample Alarm Notification script file sample_an_script.txt follows.<br />

You should add your scripts after the following sections of the file:<br />

//<br />

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

*******<br />

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

severity list.<br />

//<br />

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

counter Unknown := 7;<br />

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

// Map OTM severities<br />

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

//<br />

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

ned<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=Unknown) {<br />

$NormalizedSeverity:=Unknown;<br />

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

$NormalizedSeverity:=Warning;<br />

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

$NormalizedSeverity:=Cleared;<br />

}else{<br />

$NormalizedSeverity:=Undetermined;<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!