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.GetIPRTTData

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.GetIPRTTData('IP_Address','LUA_RTT_Table')

Description

This function retrieves in a LUA table the last 100 Round Trip Time values in millisecondes of the Ping/SNMP polling process.

The first value in the table is the most recent one, the last is the older one.

These values are visible in the RTT tab of the popup window attached to a host icon.

IP RTT Data

Parameters

IP Address : The IP address of the directory host

LUA_RTT_Table : A lua table

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

lp.GetIPRTTData('10.1.0.254','LUA_RTT_Table')
for key,value in ipairs(LUA_RTT_Table) do
lp.Print(key,'=',value,'\n')
end



www.loriotpro.com