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.GetEventFilterActionInformation

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.GetEventFilterActionInformation(‘uid’,’Array’))

Description

Provide the setup information of an event filter action.

Parameters

uid - A 64 bits value in a character string format that identify the father object in the directory tree

"array" - A name assigned to the array that will collect the returned values

Return Values

value : The number of value in the array

"array" - the array that will collect the returned values

Return nil if an error occurs

Array index

Description

Array.ref

The event reference number

Array.ip

The IP address

Array.mask

The IP mask

Array.search_string0 

A character string used with the search_condition variable to look for.

Array.search_condition0

 Reserved

Array.search_string1

idem

Array.search_condition1

idem

Array.action_type

--[[

#define ACTIONTYPE_WINRUN 1

#define ACTIONTYPE_WAVE 2

#define ACTIONTYPE_SMTP 4

#define ACTIONTYPE_MAPI 8

#define ACTIONTYPE_DOSRUN 16

#define ACTIONTYPE_SYSLOG 32

#define ACTIONTYPE_TRAP 64

#define ACTIONTYPE_CUSTOM 65

#define ACTIONTYPE_SEARCH 66

#define ACTIONTYPE_NULL 67

#define ACTIONTYPE_ROUTE_EVENT 68

//v4

#define ACTIONTYPE_EVENT 69

//v5

#define ACTIONTYPE_EVENT_CORRELATOR 70

#define ACTIONTYPE_EVENT_SCRIPTER 71

#define ACTIONTYPE_EVENT_TTS 72

#define ACTIONTYPE_EVENT_SMS 73

#define ACTIONTYPE_EVENT_DELAY 74

#define ACTIONTYPE_EVENT_ACK_DELAYED 75

--]]

 

Array.string

A character string with the action parameter

Array.counter

Array.last

Array.first

Array.first_since

Array.number_total

Array.number_ack

Array.number_delete

Array.number_auto_delete

Array.number_since_clear

Array.number_not_displayed

Array.number_displayed

Array.max_display

Array.number_between_action

Array.action_threshold

Array.action_mode

Array.in_time

Array.clock

Array.disable

 

Voir : lp.GetEventFilterInformation

A wizard is avaiblable in the LoriotPro script editor to help you to select the UID of a event filter action.

event action lua

event action lua

event action lua

 

Example

See the function lp.GetEventList(‘array’);

 


www.loriotpro.com