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 905<br />

}<br />

}<br />

rule forward_email_critical<br />

{<br />

if ($NormalizedSeverity = Critical )<br />

{<br />

forward_email();<br />

}<br />

}<br />

*/<br />

}<br />

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

// SMS through E Mail<br />

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

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

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

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

// where the SMS should be sent and the server should be changed to<br />

// SMTP server IP address of the Service provider and the notification<br />

// (as well as the references to it) should be uncommented.<br />

//<br />

// As there is a limit to the number of characters for SMS, two SMS<br />

// notifications may be sent for one alarm. The First SMS may contain<br />

// the other details whereas the second SMS may contain the operator<br />

// data.<br />

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

/*<br />

notification email my_sms<br />

{<br />

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

address:="14165551234@sms.serviceprovider.com";<br />

server:="47.45.8.4";<br />

}<br />

*/<br />

script SampleSMS<br />

{<br />

/*<br />

function forward_sms()<br />

{<br />

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

{<br />

send(my_sms,<br />

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

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

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

send(my_sms,<br />

"OperatorData: ",$OperatorData, ".");<br />

}<br />

}<br />

rule forward_sms_critical<br />

{<br />

if ($NormalizedSeverity = Critical )<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!