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.GetNextRouter - Get the next router from 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

router_id = lp.GetNextRouter();

Description

Get the next router in the directory after the current selected router.

Warning: this function return the first router by their order in memory but not from the top of the directory tree.

Parameters

none

Return Values

Nil if no other router in the directory behind the current one

router_id - The IP address use to identify this router

Example


lp_value = 0;
lp_buffer ="error";

router_id=lp.GetFirstRouter();

if router_id~=nil then
lp.Trace(router_id);
lp_buffer="ok";
end



www.loriotpro.com