Disk utilization calculation on SNMP mode

Disk utilization calculation on SNMP mode

OID's used for the disk utilization:

hrStorageDescr  1.3.6.1.2.1.25.2.3.1.3 --> this will give you the description of the disk
hrStorageAllocationUnits  1.3.6.1.2.1.25.2.3.1.4 --> this will describe the allocation unit (in bytes)
hrStorageSize  1.3.6.1.2.1.25.2.3.1.5 --> total storage space
hrStorageUsed  1.3.6.1.2.1.25.2.3.1.6 --> Storage used


Run snmp walk  and get the output, based on the output . we are calculating the utilization

1.3.6.1.2.1.25.2.3.1.3.38 --> /mnt/data-store-a (where .38 is pointed for the partition /mnt/data-store-a)
1.3.6.1.2.1.25.2.3.1.4.38 --> 4096
1.3.6.1.2.1.25.2.3.1.5.38 --> 132111790
1.3.6.1.2.1.25.2.3.1.6.38 --> 98597246


Total Size in MB= (total*allocation unit)/1024*1024
                     = (132111790*4096)/1024*1024 ~= 516061 (MB)

Used Storage in MB = (Used*allocation unit)/1024*1024
                           =  (98597246*4096)/1024*1024 ~= 385145 (MB)

Free space in MB = Total - Used = 516061 - 385145 = 130916 (MB)

Used % = Used/total *100 = 385145/516061 *100 ~= 74%

Free % = 100-Used = 26%

                New to ADManager Plus?

                  New to ADSelfService Plus?