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

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

value = lp.EnableDirectoryObject('uid');

Description

Perform a refresh of the directory and select the object that become the current default object.

Parameters

‘uid’          A unique identifier (unsigned 64bits) within a character string identifying the object in the Directory.

Return Values

value : value 1 if no error

Return nil if an error occurs

Example

In the following example the Wizard is first use to get the UID of the object.

enable directory object lua

enable directory object lua

Example of code


value = lp.EnableDirectoryObject('5114491169685897241');

lp.Print(value , " Result\n");

enable directory object lua

 

 


www.loriotpro.com