4.20 MBS_ClientConnectivity

Use this Knowledge Script to monitor the connectivity of Mailbox server (MBS) services on Exchange Server 2013, 2016, and 2019: ActiveSync, Outlook Web services, and the Autodiscover service. This script raises an event when a connectivity test fails and when response time exceeds the threshold you set.

4.20.1 Running MBS_ClientConnectivity on a Mailbox Server

When you run the MBS_ClientConnectivity Knowledge Script on a Mailbox server, the script automatically creates a test user mailbox on each Mailbox server in the Exchange deployment if those mailboxes do not already exist.

You can also manually create the test user mailboxes on the Exchange 2013, 2016, and 2019 Mailbox Servers.

To create test user mailboxes on an Exchange 2013, 2016, or 2019 Mailbox Server:

  1. Login to one of the Exchange 2013, 2016, and 2019 Mailbox Servers and open the Exchange Management Shell.

  2. Change directories to the Scripts directory under the Microsoft Exchange installation directory.

  3. Run the following command: Get-MailboxServer | .\New-TestCasConnectivityUser.ps1.

  4. Follow the on-screen instructions to create the test user mailbox on each Mailbox server.

4.20.2 Resource Objects

  • Exchange2013_MailboxServer

  • Exchange2016_MailboxServer

  • Exchange2019_MailboxServer

4.20.3 Default Schedule

By default, this script runs every 30 minutes.

4.20.4 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

General Settings

Job failure event notification

Event severity when job fails

Set the severity level, from 1 to 40, to indicate the importance of an event in which the MBS_ClientConnectivity job fails. The default is 5.

Connectivity Test User Configuration

 

Use alternate test mailbox configured in Security Manager?

Select Yes to use the test mailbox that you have specified in the Security Manager. The defaut is No.

Create default test mailbox on Mailbox servers automatically?

Select Yes to create a default test mailbox automatically. The default is Yes.

Create non-existent test mailboxes every N job iterations (specify N)

Specify the number of job iterations for which the non-existent test mailboxes will be created on the Mailbox server. The default is 1.

Monitor ActiveSync Connectivity

ActiveSync URL to be used in connectivity test

Specify the URL for the ActiveSync that is used to monitor the connectivity in the following format: https://localhost:<port>/Microsoft-Server-ActiveSync.

Event Notification

Raise event if ActiveSync connectivity test fails?

Select Yes to raise an event if AppManager cannot check connectivity to ActiveSync. The default is Yes.

Event severity when ActiveSync connectivity test fails

Set the severity level, from 1 to 40, to indicate the importance of an event in which AppManager cannot check connectivity to ActiveSync. The default is 5.

Raise event if response time exceeds threshold?

Select Yes to raise an event if the amount of time it takes to connect to ActiveSync exceeds the threshold you set. The default is Yes.

Threshold - Maximum response time for connectivity test

Set how long AppManager should wait for connectivity with ActiveSync before raising an event. The default is 10000 milliseconds.

Event severity when response time exceeds threshold

Set the severity level, from 1 to 40, to indicate the importance of an event in which the time it takes to connect to ActiveSync exceeds the threshold that you set. The default is 15.

Data Collection

Collect data for ActiveSync response time?

Select Yes to collect data for charts and reports. When enabled, data collection returns the average response time for connecting to ActiveSync. The default is No.

Monitor Outlook Web Services Connectivity

Event Notification

Raise event if Outlook Web services connectivity test fails?

Select Yes to raise an event if AppManager cannot check connectivity to Outlook Web services. The default is Yes.

Event severity when Outlook Web services connectivity test fails

Set the severity level, from 1 to 40, to indicate the importance of an event in which AppManager cannot check connectivity to Outlook Web services. The default is 5.

Raise event if response time exceeds threshold?

Select Yes to raise an event if the amount of time it takes to connect to Outlook Web services exceeds the threshold you set. The default is Yes.

Threshold - Maximum response time for connectivity test

Set how long AppManager should wait to confirm connectivity with Outlook Web services before raising an event. The default is 10000 milliseconds.

Event severity when response time exceeds threshold

Set the severity level, from 1 to 40, to indicate the importance of an event in which the time taken for testing connectivity to Outlook Web services exceeds the threshold that you set. The default is 15.

Data Collection

Collect data for Outlook Web services response time?

Select Yes to collect data for charts and reports. When enabled, data collection returns the average response time for connecting to Outlook Web services. The default is No.

Monitor Autodiscover Service Connectivity

Event Notification

Raise event if Autodiscover service connectivity test fails?

Select Yes to raise an event if AppManager cannot check connectivity to the Autodiscover service. The default is Yes.

The Autodiscover service allows Outlook clients and mobile devices to be recognized when they connect to the Mailbox server.

Event severity when Autodiscover service connectivity test fails

Set the severity level, from 1 to 40, to indicate the importance of an event in which AppManager cannot check connectivity to the Autodiscover service. The default is 5.

Raise event if response time exceeds threshold?

Select Yes to raise an event if the amount of time it takes to connect to the Autodiscover service exceeds the threshold you set. The default is Yes.

Threshold - Maximum response time for connectivity test

Set how long AppManager should wait to confirm connectivity with the Autodiscover service before raising an event. The default is 10000 milliseconds.

Event severity when response time exceeds threshold

Set the severity level, from 1 to 40, to indicate the importance of an event in which the time taken for testing connectivity to the Autodiscover service exceeds the threshold that you set. The default is 15.

Data Collection

Collect data for Autodiscover service response time?

Select Yes to collect data for charts and reports. When enabled, data collection returns the average response time for connecting to the Autodiscover service. The default is No.