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

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.SetGObjectStatus('GObjectName','status')

Description

Set the status flag of a Global Object

Parameters

GObjectName - the name of the Global Object

0/1 - a status number as an integer

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

val=lp.SetGObjectStatus('SERVER_1',1)
if val then
status=lp.GetGObjectStatus('SERVER_1')
lp.Trace("GObject status:",status,"\n")
end

 


www.loriotpro.com