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

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

dbl=lp.GetGObjectDouble('GObjectName')

Description

Retrieve the current double type value of a Global Object. dbl is an LUA double type value that is used in the LUA function attached to the Global Object used to define returned value.

See lp.SetGObjectDouble to define the value

Parameters

GObjectName - the name of the Global Object

Return Values

dbl : a double type value

Return nil if an error occurs

Example

val=lp.SetGObjectDouble('SERVER_1',500.45)
dbl=lp.GetGObjectDouble('SERVER_1')
lp.Trace("double:",dbl,"\n")

 


www.loriotpro.com