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.

Alarm management 615<br />

The script identifies the value of each variable in the generated trap, whether an integer<br />

or an octet string.<br />

Log file<br />

The log file notification type writes a message that the application saves to a text file.<br />

You specify the storage location of this text file in the script. If no path name is specified,<br />

the file is saved in the same directory as the Alarm Notification application. If the file<br />

already exists, the new message is appended to the existing file. If the file does not exist,<br />

it is created.<br />

Mandatory parameters are:<br />

filename:=”c:\Normat\sample_log”;<br />

Full path name and filename.<br />

Example:<br />

// define a file notification<br />

notification file sample_file {<br />

filename := "c:\eventlog.txt";<br />

}<br />

.<br />

.<br />

.<br />

// send a file notification<br />

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

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

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

BUG1234)<br />

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

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

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

message<br />

The preceding script defines a log file notification named sample_file having an<br />

associated path name defining a storage location on the drive C. The stored file is named<br />

eventlog.txt. Note the use of the named file notification sample_file with the send syntax<br />

in the script.<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!