LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.SetEventFilterDisable - Enable or disable all the filter/actions of an event filter

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

lua logoLoriotPro WEB site Documentation scripting LoriotPro
Extensions du language LUA

Table des matières    Liste de fonctions

Imprimer la page en cours Mail this  link UTUBE Channel

In the following example we will disable all the filters/actions attached to the event with reference 100.

enable event filter with lua

The Wizard of the script editor allows us to select the UID

enable event filter with lua

enable event filter with lua

The LUA code :

value = lp.SetEventFilterDisable('100', 1);

lp.Print("result :", value,"\n");

enable event filter with lua

 If we do a refresh of the filter tree.

enable event filter with lua

enable event filter with lua

 

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.

 

 

 


www.loriotpro.com