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

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.GetServicePluginList('array',index)

Description

This LoriotPro LUA function retrieve in a LUA array a list of the UID of the LoriotPro Service Plugin

Parameters

array - a LUA table of the UID of the service plugin

index - index

Return Values

value : 1 if succeeded

array : the list of UID

Return nil if an error occurs

Example

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

 


www.loriotpro.com