Setting the resource selection policy

You can manage the resource selection policies for each Unify service using BindingPolicy.exe.

To run BindingPolicy.exe:

  1. Log in to the CP server as domain administrator.

  2. Open a command window and go to the <cp_install_dir>\bin directory, where <cp_install_dir> is the name of the directory on your CP server where the files are installed. If the default settings were used during the platform installation, the path is C:\Program Files\Ensim\Ensim Unify\cp\bin.

  3. Run BindingPolicy.exe with the following parameters:

BindingPolicy.exe /username:<service_provider_user_name> /password:<service_provider_user_name> <parameter>

where:

List of parameters used with BindingPolicy.exe

Usage:

BindingPolicy.exe /username:admin@example.net /password:abc123 /listservices

Output:

Domain Name System 3.0.0: [1] Default

Windows Web Hosting 3.1.0: [2] Default

Usage:

BindingPolicy.exe /username:admin@example.net /password:abc123 /listpolicies

Output:

Ensim.ResourceManager2.FirstFitBindingPolicy: First Fit Policy

Ensim.ResourceManager2.RoundRobinBindingPolicy: Round Robin Policy

Ensim.ResourceManager2.LeastSoldKeyQuotaBindingPolicy: Least Sold Key Quota Policy

Usage:

BindingPolicy.exe /username:admin@example.net /password:abc123 /listproperties:Ensim.ResourceManager2.LeastSoldKeyQuotaBindingPolicy

Output:

KeyQuotaType (QuotaType(integer)) Mandatory The quota type used to find the least sold value.

Usage:

BindingPolicy.exe /username:admin@example.net /password:abc123 /listquotatypes:1

Output:

Microsoft DNS

  2 Number of DNS Zones ()

  1 Number of Installations ()

DNS Log

  3 Number of Installations ()

Usage:

BindingPolicy.exe /username:admin@example.net /password:abc123 /getpolicy:1

Output:

Policy: Ensim.ResourceManager2.LeastSoldKeyQuotaBindingPolicy "Least Sold Key Quota Policy"

KeyQuotaType: 2

Usage:

BindingPolicy.exe /username:admin@example.net /password:abc123 /setpolicy:1 Ensim.ResourceManager2.LeastSoldKeyQuotaBindingPolicy KeyQuotaType=2

Usage:

BindingPolicy.exe /username:admin@example.net /password:abc123 /getdefaultpolicy

Output:

Policy: Ensim.ResourceManager2.FirstFitBindingPolicy "First Fit Policy"

Usage:

BindingPolicy.exe /username:admin@example.net /password:abc123 /setdefaultpolicy Ensim.ResourceManager2.LeastSoldKeyQuotaBindingPolicy KeyQuotaType=2