lp.GetIPDoubles

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.GetIPDoubles("ip-address","LUA-Table");

Description

The GetIPDoubles function retrieves in a table, 100 variables of type "double" attached to a directory host object. This function require the use of the SetIPDouble function to initialy store a value in one of the 100 available entries of the table.

Parameters

ip-address - The IP adress of the host in the directory (the host should be define in the directory)

LUA-Table - the name of the LUA table

Return Values

value : Return nil if an error occurs

Example

lp.SetIPDouble("10.1.0.254",5,0.100);
lp.SetIPDouble("10.1.0.254",8,456200);
lp.SetIPDouble("10.1.0.254",80,78.21);
lp.GetIPDoubles("10.1.0.254","tableOfDoubles");
i=0
for key,value in ipairs(tableOfDoubles) do
lp.Print(key,'=',value,'/')
i=i+1
if i == 10 then i=0 lp.Print('\n') end
end