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

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

val=lp.ListAllGObject('array')

Description

Fill a LUA array with all the GLOBAL OBJECTS

Parameters

array - an array with all the Global Object and the current Sting value.

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

val=lp.ListAllGObject('array')
if val ~= nil then
for k,v in pairs(array) do
lp.Trace("Global Object:",k," ",v,"\n")
end
end

return example:

Global Object:SWITCH_2 0
Global Object:SWITCH_1 0
Global Object:Thread_5946441521925455902 SERVERS Schedule Group : [SERVERS] OK
Global Object:SERVER_1 This is a string


www.loriotpro.com