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

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.SetGObjectGroupName('GObjectName','GroupeName')

Description

Assign a Global Object to a Group. The Global Object must already exist. If the Group doesn't exist then it is created

Parameters

GObjectName - the name of the Global Object

GroupeName - the name of the Group

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

val=lp.SetGObjectGroupName('SWITCH_2','SWITCHES')
if val == 1 then
lp.Trace("Assignment to group successful\n")
else
lp.Trace("Assignment to group unsuccessful\n")
end

 


www.loriotpro.com