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

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.SetGObjectIntervalType('GObjectName','0/1')

Description

Define the unit of the time interval (see lp.SetGObjectInterval) , in second or milliseconds or user defined

Parameters

GObjectName - the name of the Global Object

0/1 - 0 in seconds, 1 in milliseconds, other user defined

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

lp.SetGObjectIntervalType('SERVER_1',0)
val=lp.SetGObjectInterval('SERVER_1',10)
if val == 1 then
lp.Trace("Execution interval set successful\n")
else
lp.Trace("Execution interval set unsuccessful\n")
end

 


www.loriotpro.com