Exchange/Powershell Monitoring script Database Copy Failover/Activation

Posted on 2013-09-12
Medium Priority
Last Modified: 2014-09-23
I'm asking to see if someone has written or has suggestions on how to write a powershell script to monitor/alert for the following action:

I would like to be notified (immediately) by email when a passive/standbye copy in my DAG becomes active.
Question by:KevinKhanMCITP
LVL 45

Assisted Solution

Amit earned 600 total points
ID: 39487773
LVL 53

Accepted Solution

Will Szymkowski earned 1400 total points
ID: 39487780
This link will show you everything requested. See near the bottom for "Building your own script".


Hope this helps

Author Closing Comment

ID: 39487997
Thank you for both providing these solutions. Since Spec01's solution only reports the failures, I can setup a scheduled task to run many times an hour, expecting only an email when there's a problem.

amitkulshrestha: You're solution provides great information that's good for a summary report once or twice a week.

Thanks again everyone!!

Expert Comment

by:Jeff Brown
ID: 40339341
You should monitor for event ID 322 (it's in the Microsoft\Exchange\HA\Operational log).  It is raised on the node that holds the DAG's PAM.  Unlike the SCOM Exchange 2010 management pack, this will raise only one event per database failover, so it won't contribute to noisy alerts.  My alerts show:  Active server for database database name changed from node1 to node2

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

The Exchange database may sometimes fail to mount owing to various technical reasons. A dismounted EDB file can be the source of many Exchange errors including mailbox inaccessibility for users. Resolving the root cause of mounting problems becomes …
If there is anything erroneous with Exchange Database, it causes a significant effect on email communication till the user remounts the database. Further, database crash directly affects Outlook users due to which they are unable to access their ema…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question