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

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,buffer=lp.GetServicePluginInformation('uid','array')

Description

This LUA function retrieves information about a LoriotPro Service Plugin.

Parameters

'uid'  :  The UID of the Directory object

'array' : A LUA table with the plugin information

Return Values

value : 1 if succeeded

array : A lua table with the plugin information

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")
    lp.GetServicePluginInformation(v,'PIarray')
    for k1,v1 in pairs(PIarray) do
      lp.Trace("\tPlugin:",k1," ",v1,"\n")
    end
  end
end

example of return

Plugin:1 5947503143351746561
  Plugin:file plug-in/SmtpEventScheduler.sp
  Plugin:version 4000
  Plugin:name EMAIL Event Scheduler V7.01
Plugin:2 5947503143351746560
  Plugin:file plug-in/CHttpV3.sp
  Plugin:version 4000
  Plugin:name HTTP ISAPI Server V7.00

 


www.loriotpro.com