Microsoft Virtualization Discussions

Powershell Healthchecck

Joe_Bailey
11,023 Views

Hey Team,

 

I'm trying to put together a powershell script to run a healthcheck on a NetApp Environment and output a document, similar to the way NetAppDOCS works.

 

I'm new to PS and frankly have no idea where to start, any suggestions on how to get going?

 

I want to check things like capacity, efficiency, etc.  My goal is to generate a report from a system that doesn't have ASUP turned on that i could hand to a customer so show them the state of their environment...

1 ACCEPTED SOLUTION

DS3Sharp
7,398 Views

Joe,

 

I am working on a script to check our systems health daily.

 

https://github.com/ds3sharp/NetappHealthCheck

 

Feel free to use any / all parts.

-hth

 

View solution in original post

9 REPLIES 9

cole
10,994 Views

Hi Joe.  I'm the developer of NetAppDocs and I'd be interested in seeing the type of output you are looking to produce. Does NetAppDocs not cover what you are wanting to report on now? Feel free to contact me directly if you want to discuss further.

 

Thanks,

 

Jason

Joe_Bailey
10,988 Views

Hi Jason,

 

I am looking for something more oriented as an overall system health report.  Something that reports on the storage efficiency, capacity and could be used as an actionable reference for improving the overall health and efficiency of the user.

 

I do a lot of public sector work that puts me in front of both 7M and CDOT clusters that are secure and unable to send autosupports which already provide that functionality and this type of report is something I get asked for quite often so I was hoping to automate it.

 

I'd like to be able to show space savings on volumes that already have some form of efficiency enabled, estimated savings on volumes that don't, current used / available capacity and perhaps a bit of a performance timelime all dumped into a .doc or .xls I could just hand to a customer.

 

NetAppDocs is great (seriously, thank you for that!) so I was hoping I could use the PowershellToolkit to build a similar script that gathered that data and dumped into a similar output.

asulliva
10,885 Views

Hello @Joe_Bailey,

 

I think this is a fantastic idea, I've been pondering something like this for a number of years and simply haven't had time to get started.  The VMware comunity has something that might make for a great framework in the vCheck tool by the one and only Alan Renouf.

 

I would be happy to contribute checks if you're willing to open source the project and make it available via GitHub.  Off the top of my head there are a number of things that might be useful:

 

  • Node
    • Aggregates
      • Capacity used/free
      • Aggr snapshots
    • Disks
      • Broken
      • Spare
      • Unused
      • Unassigned
    • Port health
  • Cluster
    • Cluster health
    • Licenses
  • SVM
    • Volume
      • Capacity used/free
      • inodes available
      • Dedupication status / last job result
      • Feature matrix
      • Snap reserve used/free/exceeded
      • Snapshots exceeding X days old
      • Snap size chart
    • Share / Export / LUN properties
    • LIF health

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Henke
10,727 Views

Interesting, I'll follow and if I can contribute.

 

//Henke

MGregM
7,586 Views

Was there any traction on this process? Just wondering...I've been working with the PS module in attempts to address issues w/o having to work through the web or CLI and would like to see about achieving a health check process on the systems that I am monitoring. 

 

Thanks.

DS3Sharp
7,399 Views

Joe,

 

I am working on a script to check our systems health daily.

 

https://github.com/ds3sharp/NetappHealthCheck

 

Feel free to use any / all parts.

-hth

 

Joe_Bailey
7,389 Views

Excellent, I will give this a look, seems like exactly what I was looking for!

WillFulmer
7,300 Views

Great stuff @DS3Sharp ! Will be testing this week!

KEVINSNOOK
5,649 Views

I have uploaded some HealthCheck scripts (there is one for NetApp):

https://github.com/ksnook/Healthscripts

Public