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

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 = GetTrapCacheInformation("LUA-Table")

Description

Get technical information on the Trap receiver cache system

Parameters

LUA-Table - A lua table with the information ordered by name

Return Values

value : Return nil if an error occurs

event_busy_clock_max
="0";
event_counter_analyse
="9";
event_busy_clock_min
="-1";
event_counter_error
="0";
event_last_busy_timestamp
="0";
event_p_last_free
="10";
event_busy_timestamp_min
="-1";
event_status
="1";
event_max_cycle_timestamp
="0";
event_p_last_analyse
="9";
event_max_cycle
="0";
event_save_html
="1";
event_display_limit
="50";
event_busy
="0";
event_line
="15000";
event_last_timestamp
="0";
event_old_counter_analyse
="0";
event_flag_lock_display
="0";
event_last_clock
="0";
event_last_analysed_timestamp
="1372662991";
event_last_busy_clock
="0";
event_counter_busy
="0";
event_current_cycle
="0";
event_last_analysed_clock
="280297";
event_busy_timestamp_ma
x="0";
event_counter_in ="9";
   

 

Example

if lp.GetTrapCacheInformation("data") then
for key,value in pairs(data) do
lp.Print("event_",key,'="',value,'";\n')
end
end



www.loriotpro.com