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

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

lp.TriggerGObjectLock('GObjectName')

Description

Set a Global Object in locked state

Parameters

GObjectName - the name of the Global Object

Return Values

value : -1 already locked, 1 locked

Return nil if an error occurs

Example

val=lp.TriggerGObjectLock('SERVER_1')
if val == -1 then
lp.Trace('SERVER_1 already locked')
elseif val == 1 then
lp.Trace('SERVER_1 locked')
else
lp.Trace('SERVER_1 error')
end

 


www.loriotpro.com