![]() ![]() |
LoriotPro
scripting documentation |
![]() ![]() ![]() |
![]() |
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.SetGObjectFunctionName('GObjectName','function_name')
Description
Define the name of the LUA function attached to this Global Object.
functions are store by default in /bin/script/global/functions/
Parameters
GObjectName - the name of the Global Object
function_name- the function name, must be unique
Return Values
value : 1 if succeeded
Return nil if an error occurs
Example
val=lp.SetGObjectFunctionName('SERVER_1','Server1_fn')
if val == 1 then
lp.Trace("Function name set successful\n")
else
lp.Trace("Function name set unsuccessful\n")
end
![]() |
|