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.GetNextBRC - Perform a SNMP GetNext within a VLAN context

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.




Perform a SNMP GET NEXT of a single object "oid" on the specified IP addresse in the specified VLAN number

This function is used in Cisco VLAN architecture to query object of a specific MIB instance


ip - This is a character string of the IP address x.x.x.x. This address should be imperatively defined in the LoriotPro directory

"oid" - This is a character string of the SNMP oid to query. This OID should be imperatively define in the LoriotPro MIB database (the MIB tree)

vlanid - The VLAN number

Return Values

value : A integer value is the snmp object is an integer a gauge a counter. It return 0 if the snmp object is an octetc string.

Return nil if an error occurs

buffer : Return the result of the snmp get as a character string

Return nil if an error occurs

OIDName : Provide the oid name of the next object to query

Return nil if an error occurs