Compellent PSCS One-Liner Coding: Tip #1

By: Justin Braun
Posted on: September 23, 2010

The Compellent Storage Center provides in-depth reporting, alerting, and monitoring as part of the platform.  It’s very important for Storage Administrators to monitor and review the alerts (informational or otherwise) that might be generated on their Storage Center.

By design, alerts in the Storage Center will change the “stop-light” status from green to red, especially critical alerts where, for example, a component is malfunctioning or a path between the controllers and disk are down.  It is also by design that these alerts have to be acknowledged one-by-one in the Storage Center interface.

That being said, there are times when you might be performing some configuration changes or maintenance that could trigger alerts.  Having to acknowledge 10 alerts is one thing, but lets say you replaced a switch, and lets say there are now 50 alerts.  How can I acknowledge those quickly and easily using the Compellent Storage Center PowerShell Command Set?

Like this:

Get-SCAlert -ConnectionName SC12 | foreach {Acknowledge-SCAlert -Index $_.Index -ConnectionName SC12}

This will get a list of alerts from the connection I have previously saved using the Get-SCConnection cmdlet.  We then pipe that to the Acknowledge-SCAlert cmdlet which then acknowledges the alert on the Storage Center.  I just cleared my 50 alerts in less than a minute!

NOTE: It really is important to review the alerts that your system might be generating.  Use all script examples with caution.

Related Articles

Using Excerpts in WordPress

I was working on making some adjustments to a new theme in WordPress tonight and was looking for a w

WLW Plugin Update: Amazon Book Lookup Plugin

You can find information about my original post topic here.

Discovering Stale Computer Accounts with PowerShell

We all know that most test domains are the perfect breeding ground for non-standard practices.