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

Compellent Disk Management with PowerShell: Windows Server 2008 Disks

I was provisioning some Compellent storage today for a a series of tests that I am working on that r

Writing to the Event Log in C #

When I'm writing code, I don't like to spend a lot of time fumbling around the framework.  Like

Discovering Stale User Accounts with PowerShell

Back in December I wrote a posting on “Discovering Stale Computer Accounts with PowerShell”.&#16