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

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.SetGObjectString('GObjectName','str')

Description

Set the String variable of Global Object

Parameters

GObjectName - the name of the Global Object

str - the value of the String field of a Global Object

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

val=lp.SetGObjectString('SERVER_1','This is a string')
if val then
str=lp.GetGObjectString('SERVER_1')
lp.Trace("String:",str,"\n")
end

 


www.loriotpro.com