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

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.ListAllLocatedGObject('ip','array')

Description

List by name in a LUA table the GLOBAL OBJECTS located on the specified LoriotPro server (ip)

Parameters

'ip' - The IP address of the LoriotPro server where GLOBAL OBJECTS are managed

'array' - an indexed table with the Globat Object names

Return Values

value : val

Return nil if an error occurs

Example

val=lp.ListAllLocatedGObject('127.0.0.1','array')
if val~= nil then
for k,v in ipairs(array) do
lp.Trace(k," ",v,"\n")
end
end

 


www.loriotpro.com