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.

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

*/<br />

script Pagers {<br />

/*<br />

function forward_apager() {<br />

if ($CurrentTrapSource = "SCCS" or $CurrentTrapSource = "CALL_PILOT") {<br />

send( sample_alpha_pager, $CurrentTrapSource,":", $AlarmCode, "!" );<br />

}<br />

else {<br />

send( sample_alpha_pager, $CurrentTrapSource,":", $ErrorCode, "!" );<br />

}<br />

}<br />

}<br />

*/<br />

}<br />

rule forward_apager_critical {<br />

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

forward_apager();<br />

}<br />

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

// E Mail<br />

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

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

// This is a sample definition for sending E.Mail Notification.<br />

// To use, the address should be change to E.Mail address where the mail<br />

// should be sent and the server should be changed to SMTP server IP<br />

// address and the notification (as well as the references to it) should<br />

// be uncommented.<br />

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

/*<br />

notification email my_email<br />

{<br />

from:="OTM_AlarmNotification@company.com";<br />

address:="name@company.com";<br />

server:="47.45.8.4";<br />

}<br />

*/<br />

script SampleEMail<br />

{<br />

/*<br />

function forward_email()<br />

{<br />

if ($CurrentTrapSource = "CALL_SERVER")<br />

{<br />

// send an email message<br />

send(my_email,<br />

$DeviceTime,": Device ",$CurrentTrapSource,<br />

" generated a ",$CurrentTrapMajor,".",$CurrentTrapMinor,<br />

" trap with critical severity "," ErrorCode: ", $ErrorCode,<br />

", OperatorData: ",$OperatorData, ".");<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!