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

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.ListAllGObjectForGroup('groupname','array')

Description

List in a LUA table all the GLOBAL OBJECTS that pertain to a group of Global Object

Parameters

'groupname' - The name of the group

"array" - a LUA table with all the Global Object name retrieved

Return Values

value : i if succeeded

Return nil if an error occurs

Example

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

 


www.loriotpro.com