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.

596 Alarm management<br />

Timer<br />

Timers are counters that are automatically incremented when the time changes. Default<br />

timers increment once every minute. You may define specific update intervals other<br />

than the default increment. Timers cannot be defined in a function; they must be used<br />

globally in a script.<br />

Syntax:<br />

timer variable_name;<br />

Example:<br />

script SampleScript {<br />

/*Notification Counters definition*/<br />

counter count_ns_Meridian1:=0;<br />

/*Notification Timer definition*/<br />

timer time_Meridian1;<br />

..........<br />

if(time_Meridian1>3) /*i.e. after 3 minutes*/<br />

{<br />

.../*Send notification*/<br />

}<br />

}<br />

String<br />

Strings contain arbitrary alphanumeric data. A default string contains up to 80<br />

characters. If more data is placed in a string than the string definition allows, the<br />

application truncates the entry.<br />

Syntax:<br />

string variable_name;<br />

Example:<br />

string severity;<br />

if(severity="critical")<br />

{<br />

.../*Send notification*/<br />

}<br />

Longer or shorter strings may be explicitly specified and initialized as follows:<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!