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

Step 4 - Data treatment

Now that we have the value we can proceed to the data treatment

(hrstorageused.2 / hrstoragesize.2) *100 = Utilzation in %

With the collected value:

If we want to know the amonut of free space, we need to collect the snmp variable hrstorageallocationunits.2 and times it by (hrstoragesize.2 - hrstorageused.2).

hrstorageallocationunits.2 * (hrstoragesize.2 - hrstorageused.2) =

4096 * (19454707 - 18284132 ) = 4794675200 octets

That we can convert in Giga octets :

1024(kilo)*1024(mega)*1024(giga) = 1073741824

(4794675200)/1073741824 = 4,4653 GigaOctets

Let's go to the next step


www.loriotpro.com