- Community Home
- >
- Storage
- >
- Midrange and Enterprise Storage
- >
- StoreVirtual Storage
- >
- Re: A question about StoreVirtual 3200 RAM polling...
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-24-2020 06:06 AM - edited 08-25-2020 02:29 AM
08-24-2020 06:06 AM - edited 08-25-2020 02:29 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-25-2020 09:08 AM
08-25-2020 09:08 AM
SolutionHello 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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP