![]() ![]() |
LoriotPro
scripting documentation |
![]() ![]() ![]() |
![]() |
LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.
Syntax
value = lp.SetEventFilterDisable(event_number,flag)
Description
The lp.SetEventFilterDisable LUA function enable or disable all the filter/actions of an event filter.
Parameters
‘uid’ The UID of the Directory object
flag A boolean value
0 enable
1 disable
Return Values
value : value 1 if the filter is modified
Return nil if an error occurs.
Warning : The check box of the filter windows is not autoamtically refreshed after this change.
Example
![]() ![]() |
Documentation scripting LoriotPro Extensions du language LUA |
![]() ![]() ![]() |
![]() |
In the following example we will disable all the filters/actions attached to the event with reference 100.
The Wizard of the script editor allows us to select the UID
The LUA code :
value = lp.SetEventFilterDisable('100', 1);
lp.Print("result :", value,"\n");
If we do a refresh of the filter tree.
The check box of the event is unchecked, no action will be performed on matched filters, even if checkbox are still visible at the action level.
![]() |
|