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

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

lp.GetGlobalInformation('data')

Description

Retrieve information about LoriotPro, Directory statistics, MIB database statistics and Time information ina LUA table

Parameters

data : A LUA table

Return Values

data : A LUA table

Return nil if an error occurs

table objects

Software and application information
product_name Name of the product (depending of the OEM status) Example: "LoriotPro";
company_url WEB site of the company. Example: "http://www.dvbmon.com";
registered_name Name of the license. Example: "#1377950247_LPBEtmp";
company_contact Name ot EMAIL of the company contact person. Example: "sales@LoriotPro.com";
company_version
Major Version of the product. Example: "V700";
company_number Unqiue number for the OEM company. Example: "1";
company_name
Company name. Example: "LUTEUS";
company_copyright Company Copyrights. Example: "(C) 2002-2013 LUTEUS SARL";
company_support Company support contact. Example: "support@LoriotPro.com";
start_time
Last start of the product. Example: "Fri Jun 28 09:16:13 2013";
system_ip Deafult IP address for the system. Example: "192.168.1.1";
uptime Uptime of the application. Example: "18338";
start_timestamp Start time stamp of the application. Example: "1372403773";
company_visual_manager
Example: "1";
product_id A unique number attached to this product license. Example: "100001";
node_licence_number Type of License. Example: "0";
Directory objects statistics
total_organisation Total number of organisation container in the LoriotPro directory.Example: "2";
total_orgunit Total number of organisation unit container in the LoriotPro directory. Example: "4";
total_country
Total number of country container in the LoriotPro directory. Example: "0";
total_host
Total number of host obejcts in the LoriotPro directory. Example: "26";
total_router
Total number of router objects in the LoriotPro directory. Example: "0";
total_network
Total number of network objects in the LoriotPro directory. Example: "4";
total_task Total number of task objects in the LoriotPro directory. Example: "5";
Directory objects status statistics
total_host0 The total number of host in the directory in level 0 status (purple). Example: "17";
total_host1 The total number of host in the directory in level 1 status (blue). Example: "4";
total_host2 The total number of host in the directory in level 2 status (green). Example: "1";
total_host3 The total number of host in the directory in level 3 status (yellow)
total_host4 The total number of host in the directory in level 4 status (red). Example: "4";
Current Time information
time_time_UTC Example: "12:21:51";
time_pm Example: "PM";
time_zone_2 Example: "Romance Standard Time";
time_year_1 Example: "13";
time_week_1 Example: "5";
time_minute Example: "21";
time_second Example: "51";
time_full_weekday Example: "Friday";
time_date_time_UTC Example: "06/28/13 12:21:51";
time_zone_1 Example: "Romance Standard Time";
time_hour_24_UTC Example: "12";
date_time Example: "Fri Jun 28 14:21:51 2013";
time_weekday Example: "Fri";
time_date Example: "06/28/13";
time_day_of_year Example: "179";
time_hour_12_UTC Example: "12";

time_week_of_year

Example: "25";
time_week_2 Example: "25";
time_month_name
Example: "Jun";
time_year_2 Example: "2013";
time_month Example: "06";
time_day_of_month Example: "28";
time_full_month_name Example: "June";
MIB objets
mib_object_in_tree Total number of object in the MIB tree. Example: "26437";
mib_object_orfelin_number Total number of orfelin object in the MIB tree. Example: "1";
mib_token_number Total number of token in the MIB tree. Example: "664";
mib_object_warning_number Total number of object in the MIB tree in warning. Example: "55";
mib_file_registered_number Total number of MIB file registered. Example: "624";
mib_object_number Total number of object. Example: "26440";
mib_object_error_number Total number of object in the MIB tree in error. Example: "0";

 

Example

if lp.GetGlobalInformation('info')~= nil then
lp.Print("company_contact: ",info.company_contact,"\n")
lp.Print("product_name: ",info.product_name,"\n")
lp.Print("company_url: ",info.company_url,"\n")
lp.Print("registered_name: ",info.registered_name,"\n")
lp.Print("company_contact: ",info.company_contact,"\n")
lp.Print("company_version: ",info.company_version,"\n")
lp.Print("company_number: ",info.company_number,"\n")
lp.Print("company_name: ",info.company_name,"\n")
lp.Print("company_copyright: ",info.company_copyright,"\n")
lp.Print("company_support: ",info.company_support,"\n")
lp.Print("start_time: ",info.start_time,"\n")
lp.Print("system_ip: ",info.system_ip,"\n")
lp.Print("start_timestamp: ",info.start_timestamp,"\n")
lp.Print("company_visual_manager: ",info.company_visual_manager,"\n")
lp.Print("product_id: ",info.product_id,"\n")
lp.Print("node_licence_number:" ,info.node_licence_number,"\n")
end

example of returned values

company_contact: sales@LoriotPro.com
product_name: LoriotPro
company_url: http://www.dvbmon.com
registered_name: #1377950247_LPBEtmp
company_contact: sales@LoriotPro.com
company_version: V700
company_number: 1
company_name: LUTEUS
company_copyright: (C) 2002-2013 LUTEUS SARL
company_support: support@LoriotPro.com
start_time: Fri Jun 28 09:16:13 2013
system_ip: 192.168.1.1
start_timestamp: 1372403773
company_visual_manager: 1
product_id: 100001
node_licence_number:0


www.loriotpro.com