PowerShell Script: Check Hub Transport Servers for Back Pressure Events

I’ve recently been exploring the challenge of detecting back pressure on Hub Transport servers without the assistance of any monitoring system in an Exchange Server environment.

Because back pressure is reported by a Transport server in the Application event log it is possible to automate checking for the events using PowerShell.

The objective is to make it possible to check Hub Transport servers reasonably quickly for their current state to discover whether the back pressure events are occurring.

I’ve written a basic script to perform this check, which I’ll share here in its current form.

Download the script file here: Test-TransportServerBP.ps1 (downloaded 1964 times so far)

Running the Script

This script is still in development so has the following dependencies:

  • PowerShell 2.0 on the server running the script
  • Exchange 2010 Management Tools on the server running the script
  • PS Remoting enabled on the Hub Transport servers being checked (will error if not)
  • You may need to modify your PowerShell execution policy to run this script file

When running the script please also be aware that:

  • If your servers have no back pressure issues at all then the results won’t be very interesting :)
  • If your servers experienced a back pressure condition and you cycled the Transport service as part of your corrective action then the last event log entry may not reflect the true current state of the server

Checking a single Hub Transport server:

PS C:\Scripts> .\Test-TransportServerBP.ps1 ho-ex2010-mb1

HO-EX2010-MB1 has no back pressure events found.

Checking all Hub Transport servers:

PS C:\Scripts\> .\Test-TransportServerBP.ps1

HO-EX2010-MB1 has no back pressure events found.
HO-EX2010-MB2 is Critical (Diskspace) as of 44 hours ago
BR-EX2010-MB has no back pressure events found.
HO-EX2007-MB1 is Critical (Diskspace) as of 44 hours ago

Download the script file here: Test-TransportServerBP.ps1 (downloaded 1964 times so far)

If you are experiencing back pressure issues on your Hub Transport servers please read this guide to back pressure in Exchange Server.

About Paul Cunningham

Paul is a Microsoft Exchange Server MVP and publisher of Exchange Server Pro. He also holds several Microsoft certifications including for Exchange Server 2007, 2010 and 2013. Connect with Paul on Twitter and Google+.

Comments

  1. Lars Bornich says:

    Servers need to have WinRM enabled for Remote Management for this to work. Run the following from an elevated powershell window:

    Enable-PSRemoting -Force

Leave a Comment

*

We are an Authorized DigiCert™ SSL Partner.