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

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.AckTrapFilter(‘uid’) 

Description

The LUA AckTrapFilter function performs an acknowledge (reset) of the counter of a trap.

Parameters

uid - the uid of the trap filter

Return Values

value : 1 if operation successful

Return nil if an error occurs

Example

You can select the uid of the filter counter to reset form the main menu of the LoriotPro.

Monitor/Traps Filter Counters

1

2

The trap uid are also visible in the trap log at the last right column.

3

Warning  ! if the value is zero, it mean that no filter exist for this type of trap. 

Warning ! All the trap filters with the specified uid will be acknoledged. In the case of a linkdown trap for example, all the linkdown trap will be acknowledged.

You can also select the uid of a trap filter from the meno of the LoriotPro script editor.

4

5

Example of the function set with an uid. When the function is launched, the snmp trap(s) with the corresponding uid are set in acknowledged state in the trap log, they are on a white background.

6


www.loriotpro.com