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.SetEventFilterActionDisable - Enable/disable the action 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.SetEventFilterActionDisable(‘uid’, flag) ;

Description

The lp.SetEventFilterActionDisable LUA function enable or disable the action 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 the action attached to the event with reference 100.

Disable event filter action with LUA

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

Disable event filter action with LUA

Disable event filter action with LUA

The LUA code :

value = lp.SetEventFilterActionDisable('4849963996486303749', 0);

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

The result of the execution 

Disable event filter action with LUA

 If we do a refresh of the filter tree.

 Disable event filter action with LUA

Disable event filter action with LUA

 

 

 


www.loriotpro.com