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

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.GetGObjectLock('GObjectName')

Description

Allows to know if a Global Object is in a locked status. An Object become locked when accesses to this Object are performed concurently or when it has not being freed by a process.

Parameters

GObjectName - The name of a Global Object

Return Values

value : 0 for unlocked, 1 for locked

Return nil if an error occurs

Example

lock=lp.GetGObjectLock('SERVER_2')
if lock == 0 then ...


www.loriotpro.com