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


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.


value,buffer,OID,name = lp.GetV1('ip','community','oid')


Perform a SNMP GET in version 1 on the specified IP, for the specified MIB object (oid) with the specified SNMP community string.


ip - The IP address of the Host

community - The SNMP community

oid - The MIB object

Return Values

value : the returned status

buffer : the returned value for that MIB object

OID: The object id

name: The MIB object name

Return nil if an error occurs


value,buffer,oid,name = lp.GetV1("","public","sysname.0")

Return: 0/router26683A/