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.GetsBRC - Perform a SNMP Get on multiple OID 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.


responsenumber =lp.GetsBRC(“ip”,"oid1,oid2,…",”arrayname”,vlanid);


The lp.GetsBRC funtion realize a SNMP GET with multiple SNMP object ID on a specific IP address. and in a VLAN specific instance.
Cette fonction permet de collecter des informations dans les instances de MIB par Vlan de Cisco.


ip - The IP address as a character string ( or a variable

The IP address should exist in the directory

"oid,oid,..." - A set of snmp object ID, a maximum of 15 SNMP OID can be collected by this way.

This is a character string of a set of SNMP oids. These OID should be imperatively defined in the LoriotPro MIB database (the MIB tree) and should pertain to the same snmp table object. You can't use oid in doted notation.

Vlanid - le numero de VLAN a qui s’adresse votre requete

Return Values

responsenumber: The number of retreived objects else 0

Return nil if an error occurs

arrayname : Provide an array of all the requested SNMP OID.

If the syntax is : lp.Gets(lp_host, « sysname.0,syslocation.0 », « myarray ») ;

The array contains two values


Return nil if an error occurs