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

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

status=lp.GetGObjectStatus('GObjectName')

Description

Retrieve the current status of a Global Object. Status is an integer value that is used in the LUA function attached to the Global Object to define a working status.

Parameters

GObjectName - the name of the Global Object

Return Values

value : status as an integer.

Return nil if an error occurs

Example

status=lp.GetGObjectStatus('SERVER_1')
lp.Trace(status)

 


www.loriotpro.com