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.

634 Alarm management<br />

BUG1234)<br />

message<br />

Severity code descriptions<br />

This following script examines error codes generated by the Meridian 1 system and<br />

assigns descriptive text to them. This portion of the script uses the counter data type and<br />

the send alarm notification to send alarm notifications to a file and a pager. Note the use<br />

of rule and send syntax. Note the $Current... references to configuration file entries. See<br />

the examples on page 591.<br />

/* Provide variables to map M1 severity values into words */<br />

counter info:=0,minor:=1,major:=2,critical:=3,debug:=4;<br />

script SampleScript {<br />

counter bug3456:=0;<br />

/* This rule looks for critical M1 events */<br />

rule check_critical {<br />

if ($CurrentTrapDevice="Meridian1" and<br />

$CurrentAlarmSeverity=critical)<br />

The if statement ensures that only critical alarms from the Meridian 1 system are<br />

processed.<br />

{<br />

/* print event to console */<br />

send(con,"M1 alarm: ",<br />

$CurrentTrapSource," - " , // Name of this M1<br />

$CurrentAlarmErrorCode," - " , // M1 error code (i.e., BUG1234)<br />

$CurrentAlarmTime," - " , // Timestamp from M1<br />

$CurrentAlarmDescriptiveText," - ", // Text with error<br />

message<br />

$CurrentAlarmOperatorData);// More text with error message<br />

The script displays information about the Meridian 1 system alarm in the console pane,<br />

including the system where the alarm originated, the error code of the alarm, the time of<br />

the alarm, any descriptive text associated with the alarm, and other text associated with<br />

the error alarm.<br />

/* append event to log file */<br />

send(sample_file,"M1 alarm: ",<br />

$CurrentTrapSource," - " , // Name of this M1<br />

$CurrentAlarmErrorCode," - " , // M1 error code (i.e.,<br />

$CurrentAlarmTime," - " , // Timestamp from M1<br />

$CurrentAlarmDescriptiveText," - ", // Text with error message<br />

$CurrentAlarmOperatorData); // More text with error<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!