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.GetFirstIP - Get the first IP address of the directory

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

ip = lp.GetFirstIP();

Description

Read the first IP address of the first host of the LoriotPro directory. The LoriotPro directory is a chained list of IP addresses.

Parameters

No parameters

Return Values

An IP address in character string format or nil

Example

lp_value=0;
lp_buffer="ok";
a=lp.GetFirstIP();
if a~= nil then
while a~= nil do
lp.Trace(a);
a=lp.GetNextIP(a);
end
end


www.loriotpro.com