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

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

 'buffer',value,'name' = lp.ascii_GetNextBRCui64('ip','oid',vlanid);

Description

The LUA function lp.ascii_GetBRCui64 perfoms a sigle SNMP GET NEXT of on a single objet ID on the selected IP address and for the specified VLAN.

This function is designed for handling only SNMP V2 unsigned 64 bits object. This LUA language doesn't support by default this type of value this is why Loriotpro provides a set of function that manipulate this type of value by the mean of charcater string.

Warning  ! This function is only valid on Cisco devices or on devices that support VLAN adressing

Parameters

ip - The adresse IP as a character string

Warning ! This adress should exist in the Loriotpro directory

"oid" - a snmp object ID as a character string

Warning ! the oid should exist in the MIB tree (MIB compiled) is the short name is used instead of the numerical value

Vlanid - The VLAN number

Return Values

value : The numerical value if the SNMP object is an integer a gauge or a counter else it is a 0 for any SNMP octet string value

buffer : The returned value as a character string

Return nil if an error occurs

Example

None

 


www.loriotpro.com