NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Looking for a PS script to monitor and alert on spare drive count

NTAP_PSLRNR
2,672 Views

Hi,

I just started learning PS and I am looking for a NetApp powershell script that can monitor and alert on the spare drive count.Does anybody has a script to check the spare drives on filers on a weekly basis and tthat triggers out alert if the spare drive count is less than atleast 2 ? I could able to write a basic script that checks for spare drive count and measure it, but I don't know how to write a script to setup the alerting based on the count.

Thanks for your help in advance.

1 REPLY 1

tbatchel
2,672 Views

Check out this thread:

https://communities.netapp.com/thread/19816

The user was looking to count spares by controller

Public