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.

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

Sample Alarm Wizard script file<br />

/*<br />

The content of the file sample_wizard_script.txt appears below:<br />

This script file was generated using the OTM-M script wizard<br />

WARNING : DO NOT EDIT THIS FILE MANUALY, THE WIZARD WOULD<br />

NOT BE ABLE TO HANDLE IT ANY MORE.<br />

*/<br />

///start<br />

/* Global Severity levels definition based on Meridian1 alarms */<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 />

/* $NormalizedSeverity is a global severity value that is normalized to OTM<br />

severity values.<br />

It represents the unified value across different devices. */<br />

counter $NormalizedSeverity := 0;<br />

/* This script assign the global variable $NormalizedSeverity<br />

with the value of $AlarmServerity when current trap device<br />

is of OTM type. */<br />

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

{<br />

function assignit()<br />

{<br />

//send(con, "$AlarmServerity=", $AlarmSeverity);<br />

if ($Severity=Critical)<br />

{<br />

$NormalizedSeverity:=Critical;<br />

}<br />

else<br />

{<br />

if ($Severity=Major)<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!