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.
router_id = lp.GetFirstRouter();
Read the directory and find the first router ID. A router ID is one of its IP address. This function is useful to search for routers in the directory.
Nil if no router found
router_id - The router ID in a IP address format
This is not the first visible router object that is returned but the first router object loaded in memory
lp_value = 0;
if router_id~=nil then