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.SetNetworkOption - Change the parameters of a network object

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

result = lp.SetNetworkOption('net','mask',param_type,'value'); 

Description

The lp.SetNetworkOption LUA function allows the change of the parameters of a network object of the directory.

Parameters

‘net’                   The network IP address. 

‘mask’               The network mask.

param_type       The name of the parameter as defined in the file bin/config/script/ loriotinit.lua.

The file should be added at the beginning of the script with the command:

dofile(lp.GetPath().."/config/script/loriotinit.lua");

List of parameter

Parameter

 

Description

LP_LUA_NET_DESCRIPTION=35

String

The description of the network object

LP_LUA_NET_NAME=36

 

The name of the network object

LP_LUA_NET_IPSCANNER=34

 

‘0’ disable, ‘1’ enable the IPExpert to scan this network.

LP_LUA_NET_STRATEGY=37

 

The strategy used for this network by the IP Scanner.

LP_LUA_NET_IPSCANNER_INTERVAL=38

 

The minimum time between two IPExpert audit process launches.

LP_LUA_FLAG_IPSCANNER_NOCONFIG=40

 

‘0’ disable, ‘1’ enable the IPExpert to modify the settings of this network.

LP_LUA_IPSCANNER_EVENT=41

 

The Event number used by the IPExpert process for sending an alarm

LP_LUA_IPSCANNER_EVENT_LEVEL=42

 

The level (severity and color) of this event (0 à 10)

 

value - The new value to assign.

Return Values

result =1 or nil if an error occurs

Example

lua logoLoriotPro WEB site Documentation scripting LoriotPro
Extensions du language LUA

Table des matières    Liste de fonctions

Imprimer la page en cours Mail this  link UTUBE Channel

The netwok properties dialog showing the various parameters

network option

 

 


www.loriotpro.com