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

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

ip_address = lp.SetLocalIP("IP-Address")

Description

Set the IP V4 internal reference for Global object management.

The LocalIP is used by the Global Object management process to identify the host where a specific Global Object is managed by default.

Parameters

IP-Address : The new IP V4 address

Return Values

ip_address : The IP V4 address of the first network interface of the LoriotPro system

Return nil if an error occurs

Example

lp.SetLocalIP("192.168.45.2")
ip_local = lp.GetLocalIP()
lp.Print(ip_local)

 

Result:

192.168.45.2

 



www.loriotpro.com