Load balancing mailboxes across Exchange 2010 message stores using IDM policy rules



By: wferguson

January 25, 2012 2:28 pm

Reads: 320

Comments:1

Rating:0

Credits go to Father Ron at my work.

The following may look like a lot of xml code, but after pasting it into one of your creation policy rules on the Subscriber channel it is only 2 conditions and 2 actions, this is by far the easiest quickest way to load balance the creation of exchange accounts across the different homeMDBs.

We have 16 Exchange homeMDBs and we are using the xpath operation of mod and the variable of ($time (we are using the number of milliseconds) mod 16 + 1). So if you had 25 MDB’s then you would modify the below code to read ($time mod 25) + 1. You will also need to update the exchange rule in the command policy as well.

<rule>
		<description>default Exchange assignment</description>
		<comment>Provision Exchange mailbox</comment>
		<conditions>
			<and>
				<if-global-variable mode="nocase" name="drv.exchMailboxMethod" op="equal">policy</if-global-variable>
				<if-class-name op="equal">User</if-class-name>
			</and>
		</conditions>
		<actions>
			<do-set-local-variable name="time" scope="policy">
				<arg-string>
					<token-time format="!JTIME" tz="UTC"/>
				</arg-string>
			</do-set-local-variable>
			<do-set-dest-attr-value name="homeMDB">
				<arg-value type="string">
					<token-text xml:space="preserve">CN=DB</token-text>
					<token-xpath expression="$time mod 16 + 1"/>
					<token-text xml:space="preserve">,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=EXCHANGE,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=ad,DC=georgiahealth,DC=edu</token-text>
				</arg-value>
			</do-set-dest-attr-value>
		</actions>
	</rule>
</policy>
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: ,
Categories: Identity Manager, Technical Solutions

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

1 Comment

  1. By:bkynaston

    Thanks! This is a great tip on how to specify the target mail store. It is also possible to query the target mail stores and select a target mail store based on utilization or anti-affinity rules to distribute mail accounts evenly across multiple mail stores, and prevent all the members of a department from being allocated to the same store. We do this in our TriVir Exchange 2007/2010 driver (http://www.trivir.com/solutions/powershell). Once you get into the Powershell layer, you can create linked mailboxes, manage distribution lists and completely manage all aspects of Exchange configuration and data from IDM. — bkynaston@trivir.com

Comment