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.GetFirstNetwork - Get the first network container in the LoriotPro 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

net,mask = lp.GetFirstNetwork();

Description

Read the first network address and network mask in the LoriotPro directory.

Parameters

nothing

Remark

This is not the first visible network object that is returned but the first object loaded in memory

Return Values

Nil if no network found

net - The IP network address in dotted format
mask - the network mask in a dotted format

Example

lp_value = 0;
lp_buffer ="error";
net,mask=lp.GetFirstNetwork();
lp.Trace("Network ",net,mask);



www.loriotpro.com