Previous Topic: LDAP TestsNext Topic: NIS/NIS+ Tests


MAPI Tests

The MAPI test monitors the amount of time required to log into a user account and either send or retrieve mail from a MAPI server.

Note: MAPI is a proprietary Microsoft protocol. The MAPI test uses the Microsoft Extended MAPI protocol. For this reason, MAPI tests must originate from a Windows server that is running Microsoft Exchange or Microsoft Outlook. (Outlook Express is not sufficient because it does not install the correct APIs.) The MAPI test requires the MAPI server to specify a default message store and address book provider.

Options and Arguments

MAPI tests require the following specific options and arguments:

Specify these options and arguments when you create or modify tests.

To specify Log In as a Service privileges

  1. Open the Administrative Tools Control Panel.
  2. Double-click Local Security Policies, Local Policies, User Rights Assignment.

    A list of policies displays in the right pane.

  3. Double-click Log in as a service.

    The Log in as a service dialog appears.

  4. Click Add.

    The Select Users or Groups dialog appears.

  5. Select the name to which you want to add this policy, click Add, and then click OK.

    Note: The test must run on the same domain to which the user belongs.

Example 1  

Use this example to create a test that downloads the first message in the MAPI user account at mapiserver.yourdomain once every 120 seconds and deletes it after downloading it. The test waits up to 10 seconds for a successful response and calculates response time and availability statistics over the last 3600 seconds (1 hour).

To create a new test in a policy

  1. Click + (New) on the Test Monitors toolbar.

    The New test pane appears.

  2. In the Operation field, select Send.
  3. From the Test Type list, select MAPI.
  4. In the Description field, specify MAPI-Test.
  5. In the Test Name field, specify MAPI-Test.
  6. In the Test Interval field, specify 120.
  7. In the Test Timeout field, specify 10.
  8. In the Samples Per Interval field, specify 1.
  9. In the Statistics Window field, specify 3600.
  10. In the MAPI Server field, enter mapiserver.yourdomain.com.
  11. In the User Name field, specify MAPIuser.
  12. In the Password field, specify MAPI123.
  13. In the Verify Password field, specify MAPI123.
  14. In the User Domain field, specify myDomain.
  15. In the Mail Recipient field, specify congo@yourdomain.com.
  16. Accept the default mail body size (256 bytes).
  17. Accept defaults for all other fields.
  18. Click Save Test.

When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:

{ 
index=71 
type=mapi
desc="MAPI-Test" 
dest="mapiserver.yourdomain.com" 
username="MAPIuser" 
encoded=yes 
password="xlrpm6v" 
args="domain=myDomain&op=send&to=congo@yourdomain.com&size=256" 
interval=120 
samples=1 
timeout=10 
window=3600 
tos=0 
limit=0 
status=active 
name="MAPI-Test"
class=""
context=""
flags="1"
loglevel=1
}

Example 2

Use this example to create a test that retrieves the first message from a known MAPI user account at mapiserver.yourdomain.com once every 120 seconds and deletes it after downloading it. The test waits up to 10 seconds for a successful response and calculates response time and availability statistics over the last 3600 seconds (1 hour).

To create a new test in a policy

  1. Click + (New) on the Test Monitors toolbar.

    The New test pane appears.

  2. In the Operation field, select Retrieve.
  3. From the Test Type list, select MAPI.
  4. In the Description field, specify MAPI_Retrieve_Test.
  5. In the Test Name field, specify MAPI Retrieve Test.
  6. In the Test Interval field, specify 120.
  7. In the Test Timeout field, specify 10.
  8. In the Samples Per Interval field, specify 1.
  9. In the Statistics Window field, specify 3600.
  10. In the MAPI Server field, enter mapiserver.yourdomain.com.
  11. In the User Name field, specify MAPIuser.
  12. In the Password field, specify MAPI123.
  13. In the Verify Password field, specify MAPI123.
  14. In the User Domain field, specify myDomain.
  15. Select Delete Downloaded Messages.
  16. Click Save Test.

When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:

{ 
index=31 
type=mapi
desc="MAPI_Retrieve_Test" 
dest="mapiserver.yourdomain.com" 
username="MAPIuser" 
encoded=yes 
password="bufwate2" 
args="domain=myDomain&op=recv&download=first&delete=yes" 
interval=60 
samples=1 
timeout=30 
window=300 
tos=0 
limit=0 
status=active 
name="MAPI Retrieve Test"
class=""
context=""
flags="1"
loglevel=1
}

For information about errors you may encounter when running MAPI tests, see MAPI Test Error Codes.