StoreVirtual Storage

Re: A question about StoreVirtual 3200 RAM polling via SNMP

 
SOLVED
Go to solution
Ulfandu
Collector

A question about StoreVirtual 3200 RAM polling via SNMP

Hello everybody!

I've been dabbling with a bash script that would check the RAM status for both storage controllers on a HPE StoreVirtual 3200 SAN. I'm using SNMP to fetch the values.

However, I'm unsure about what the total amount of RAM should be when finding it out via SNMP. Here's the SNMP values for a single controller:

 

 

HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
---
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 1024 Bytes
---
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 6649216
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 10843456
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 6649216
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 687360
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 9088

 

 

Which memory value or values should be used for my script? To my knowlege, the SV3200 has two controllers and each have 8 GB of RAM. But when looking at the Physical Memory (hrStorageSize.1) it reports as 6649216 bytes which is  6.34 GB. Am I totally on the wrong tracks?

As I already mentioned, I'm using SNMP to poll the RAM values, here's an excerpt of my script to give you an idea of what I'm doing:

 

 

# read Physical Memory
RamTotal=$(/usr/local/nagios/libexec/check_snmp -P 2c -H $1 -C corpsnmp -o HOST-RESOURCES-MIB::hrStorageSize.1|cut -d" " -f4)

# read Used Memory
RamUsed=$(/usr/local/nagios/libexec/check_snmp -P 2c -H $1 -C corpsnmp -o HOST-RESOURCES-MIB::hrStorageUsed.1|cut -d" " -f4)

# convert KB --> MB
RamTotal=$(echo "$RamTotal / 1024" | bc)
RamUsed=$(echo "$RamUsed / 1024" | bc)
RamAvail=$(echo "$RamTotal - $RamUsed" |bc)

# convert MB --> GB
RamTotal=$(echo "$RamTotal / 1024" | bc)
RamUsed=$(echo "$RamUsed / 1024" | bc)
RamAvail=$(echo "$RamTotal - $RamUsed" |bc)

# calculate the percentage of available RAM
percentfree=$(echo "scale=2; $RamAvail/$RamTotal " |bc)
percentfree=$(echo "$percentfree*100" | bc)

 

 

 

 I would greatly appreciate any help on this matter.

1 REPLY 1
Venkat-V
HPE Pro
Solution

Re: A question about StoreVirtual 3200 RAM polling via SNMP

Hello Ulfandu,

As you said each controller has 8GB of RAM, but some of that is reserved for disk cache, and not available to the OS.

As per the hardware log file, below is the memory size,

        [Memory]
                Total      6.39 GB   <<<<<
                 Free      5.16 GB

So you can consider 6.39GB.

I am an HPE Employee

Accept or Kudo