Link to home
Start Free TrialLog in
Avatar of Blue Berry
Blue Berry

asked on

Netapp storage usages

Hi experts

I am looking for a script that will pull out  storage usage
Which is above 80% .



Thanks in advance
Avatar of arnold
arnold
Flag of United States of America image

Please clarify what usage and depth you are looking for.

You could use
Find . -type d  -depth 3 | while read a; do
echo $a
du -ks "$a"
done

You can employ this at any point of interest to you, type d looks at directories only.


Which netapp which ontap version?
Avatar of Blue Berry
Blue Berry

ASKER

We are using 3.1 what I am looking for is the percentage of disk used which is above 80%
As it UNIX based i would expect
df 

Open in new window

to give you the answer. Not exactly per disk, more per mounted volume, which often is equivalent.
Not sure what you are asking for.
If you are looking for monitoring notifications, using SNMP to monitor and notify ....

are you looking for this >80% notification of total storage, allocated storage to individual systems?
Yes that is what I am looking any storage that is above 80 % that I can export or excel
How is the netapp Sara presented to individual systems?
1) on the netapp you Dan monitor the total usage of available storage. Meaning when total space used on the netapp by all systems rises above 80% you will get a netapp notification.
2) monitoring utilization of allocated space has to be done on the individual system.
I.e you have space allocated as NFS shares. Iscsi and/or FC LUNs, each system to which one or multiple and have each report on the use of the space allocated to it.

Why excel?
Does your environment include SNMP polling options/setup.
Using SNMP polling from different hosts you can assemble the data in any format.
If all your systems are Windows, look at powershell scripts using the wmic interface to collect storage space use.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.