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

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.SetGObjectParam2('GObjectName','param2')

Description

Set the content of the Param2 of a Global Object. Param2 is a variable (argument) that can be passed to the LUA function attached to the Global Object

Parameters

GObjectName - the name of the Global Object

param2 - the value of param 1 (string)

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

val=lp.SetGObjectParam2('SERVER_1','ArgumentX')
param2=lp.GetGObjectParam2('SERVER_1')
lp.Trace(param2,"\n")

 


www.loriotpro.com