创建用户和联系人Create Users and Contacts

 

上次修改的主题: 2013-02-22Topic Last Modified: 2013-02-22

您必须使用 Lync Server 2013 用户预配工具 ( # A0) 在准备压力和性能负载测试的过程中创建用户和联系人。You must use the Lync Server 2013 User Provisioning Tool (UserProvisioningTool.exe) to create users and contacts in preparation for stress and performance load testing.

下面是您在阅读本主题时可能会用到的术语和定义的列表。Here is a list of terms and definitions that you might find useful as you read through this topic.

  • 组织单位– Active Directory 域服务组织单位 (OU) 。Organizational Unit – The Active Directory Domain Services organizational unit (OU).

  • 联合/跨池–将启用的用户通过其他即时消息 (IM) 服务(如 Internet 服务的 MSN 网络、AOL®和 Yahoo®)与用户进行通信 ! 。Federated / Cross Pool – Users who will be enabled to communicate with users from other Instant Messaging (IM) services, such as MSN network of Internet services, AOL®, and Yahoo!®.

  • 通讯组列表–包含 Active Directory 域服务用户列表的 Active Directory 域服务中的对象,用于启动与一组用户的通信。Distribution Lists – The objects in Active Directory Domain Services that contain a list of Active Directory Domain Services users, used for launching communications with groups of people.

  • Location Info Service – Lync Server 2013 服务,在每个电话启用和配置该服务后,可以检索增强 9-1-1 (E9-1-1) 服务的物理位置。Location Info Service – The Lync Server 2013 service that, when enabled and configured per phone, enables retrieval of physical location for Enhanced 9-1-1 (E9-1-1) services.

  • 美国电话号码–分配给用户的电话号码,以及用于路由入站和出站呼叫和反向号码查找 (RNL) 的 SIP URI。U.S. Phone Numbers – The phone numbers that are assigned to users, in addition to the SIP URI that is used for routing inbound and outbound calls and reverse number lookup (RNL).

使用 UserProvisioningTool.exe 创建用户和联系人Create Users and Contacts by Using UserProvisioningTool.exe

必须使用 Lync Server 用户预配工具为负载模拟创建用户和联系人。You must use the Lync Server User Provisioning Tool to create users and contacts for load simulation. Lync Server 用户预配工具随 Lync Server 压力和性能工具包一起安装。The Lync Server User Provisioning Tool is installed with the Lync Server Stress and Performance Tool package. 请确保已在前端服务器或 Standard Edition server 上运行 ( # A0) 的程序包安装程序。Be sure that the package installer (CapacityPlanningTool.msi) has been run on the Front End Server or the Standard Edition server. 在 \ 前端服务器或 Standard Edition 服务器上运行文件 UserProvisioningTool.exe (位于% InstalledDirectory% LyncStressAndPerfTool LyncStress) ,启动 Lync Server 用户预配工具。Start the Lync Server User Provisioning Tool by running the file UserProvisioningTool.exe (located at %InstalledDirectory%LyncStressAndPerfTool\LyncStress) on the Front End Server or on the Standard Edition server.

重要

您必须以域管理员安全组成员的身份登录才能运行 UserProvisioningTool.exe。You must be logged on as a member of the Domain Admins security group in order to run UserProvisioningTool.exe. 由于 UserProvisioningTool.exe 将创建和配置新的 Active Directory 域服务用户,因此需要从该上下文运行此上下文。It is necessary to run from this context because UserProvisioningTool.exe will be creating and configuring new Active Directory Domain Services users.

备注

当您创建大量 (10000 或更多) 的用户时,请从高端计算机运行 UserProvisioningTool.exe。When you create a significant number of users (10,000 or more), run UserProvisioningTool.exe from a high-end computer. 请注意,在创建用户时,域控制器也会遇到负载较高的情况。Note that the domain controller will also experience high load while the users are being created.

当 Lync Server 用户预配工具打开时,单击 " 配置 ",然后选择 " 加载配置"。When the Lync Server User Provisioning Tool opens, click Configuration and select Load Configuration. 若要开始配置用户和联系人,请加载程序包中包含的默认文件 SampleData.xml。To begin configuring users and contacts, load the default file that is included in the package, SampleData.xml. 这将预填充包含您的系统需要修改的示例数据的字段。This will prepopulate the fields with example data that you'll need to revise for your system. 如果已预配置的 XML 文件已包含自定义设置,则改为加载该文件。If you have a preconfigured XML file that already contains customized settings, load that file instead. 填写 Lync Server 用户预配工具中的字段,如以下各节所述。Fill in the fields in the Lync Server User Provisioning Tool, as described in the following sections.

!["用户创建" 选项卡。](images/JJ945587.80d3c17b-7482-4818-8381-1eff8717d2fe(OCS.15).jpg ""用户创建" 选项卡。")User Creation tab.

若要配置服务器选项,请按照以下步骤操作。To configure server options, follow these steps.

  1. 在 " 前端池 FQDN" 中,键入要在其中承载用户的 Standard Edition Server 或前端池 (FQDN) 的完全限定的域名称。In Front End Pool FQDN, type the fully qualified domain name (FQDN) of the Standard Edition server or Front End pool where you want to host the users.

  2. 在 " 用户名前缀" 中,键入要用于出于测试目的生成用户名的前缀。In User Name Prefix, type a prefix that you want to use to build user names for testing purposes.

  3. 在 " 密码" 中,指定将应用于所有测试用户帐户的密码。In Password, specify a password that will be applied for all of the test user accounts.

  4. 在 " SIP 域" 中,键入要用于测试用户的 SIP Uri (统一资源标识符 ") 的域名。In SIP Domain, type the domain name to be used for test users’ SIP URIs (Uniform Resource Identifiers).

  5. 在 " 帐户域" 中,键入您要在其中创建测试用户的当前 Active Directory 域服务域的域名。In Account Domain, type the domain name of your current Active Directory Domain Services domain, under which you want to create the test users.

  6. 在 " 组织单位" 中,键入要在其中创建用户对象的 Active Directory 域服务 OU 的名称。In Organizational Unit, type the name of the Active Directory Domain Services OU where you want to create the User objects. 如果 OU 不存在,则会创建它。If the OU does not exist, it will be created.

  7. 在 " 电话区号" 中,键入将用于测试用户帐户的三位数区域代码。In Phone Area Code, type the three-digit area code that will be used for test user accounts. 确保电话区号不会与 Active Directory 域服务中的任何其他用户的区号发生冲突。Be sure that phone area code does not conflict with any other users’ area codes in Active Directory Domain Services.

  8. 如果要为测试用户启用企业语音,请选中 " 已启用语音 " 复选框。Select the Voice Enabled check box if you want to enable the test users for Enterprise Voice.

  9. 在 " 用户数" 中,指定要创建的测试用户的总数。In Number of Users, specify the total number of test users that you want to create.

  10. 在 " 起始索引" 中,指定将用作用户名前缀的后缀的起始编号。In Start Index, specify the starting number that will be used as suffix to the user name prefix.

"创建用户" 按钮Create Users Button

当您单击 "创建用户" 按钮时,它将验证所有输入参数。When you click on the Create Users button, it will validate all the input parameters.

  • 如果存在任何验证错误,它将提示您更正这些输入值。If there are any validation errors, it will prompt you to correct those input values.

  • 如果所有输入值都是正确的,则会开始在 Active Directory 域服务中创建用户。If all the input values are correct, it will start creating users in Active Directory Domain Services. 将在此窗体的底部显示一个进度栏。A progress bar will appear at the bottom of this form. 我们建议您不要在进度栏处于活动状态时关闭应用程序。We recommend that you do not close the application while the progress bar is active.

用户创建过程较慢。User Creation is a slow process. 可能需要几分钟的时间。It can take several minutes. 如果用户数量非常大,该过程甚至可能需要几个小时的时间。If the number of users is very large, the process could even take a few hours. 如果用户已存在,则会使用任何更改对其进行更新。If the users already exist, they are updated with any changes. 您可以通过登录为范围中的用户之一来验证用户是否已创建。You can validate that the users were created by logging on as one of the users in the range. 使用用户前缀、用户号和 @sipDomain 作为用户名 (例如,LyncUser10@contoso.net) ,以及指定的密码。Use the user prefix, user number, and @sipDomain as the user name (for example, LyncUser10@contoso.net), along with the specified password.

"删除用户" 按钮Delete Users Button

当您单击 "删除用户" 按钮时,它将验证所有输入参数。When you click on Delete Users button, it will validate all the input parameters.

  • 如果存在任何验证错误,它将提示您更正这些输入值。If there are any validation errors, it will prompt you to correct those input values.

  • 如果所有输入值都是正确的,它将在 Active Directory 域服务中开始禁用和删除用户。If all the input values are correct, it will start disabling and deleting users in Active Directory Domain Services. 将在此窗体的底部显示一个进度栏。A progress bar will appear at the bottom of this form. 我们建议您不要在进度栏处于活动状态时关闭应用程序。We recommend that you do not close the application while the progress bar is active.

备注

  1. 仅支持美国格式的电话号码。Only U.S.-formatted phone numbers are supported. 始终将电话号码分配给用户,并且由 UserProvisioningTool.exe 创建的所有用户均可为企业语音启用。Phone numbers are always assigned to users, and all users created by UserProvisioningTool.exe are enabled for Enterprise Voice. 任何使用电话号码的方案(如会议自动助理或 UC-PSTN 呼叫),都可以使用此电话号码正确路由呼叫。Any scenarios that use the phone number, such as Conferencing Auto Attendant or UC-PSTN calls, use this phone number to properly route calls. 因此,每个用户必须具有唯一的电话号码。For this reason, every user must have a unique phone number. 如果您必须创建两次用户,则该命令将失败,除非您使用不同的区号,或者以前的用户已通过使用 get-csuser cmdlet 禁用。If you have to create users twice, the command will fail unless you use a different area code, or if the previous users have been disabled by using the Disable-CsUser cmdlet.

  2. 在创建联系人之前,必须首先完成从 "用户" 选项卡执行的用户复制。如果你刚刚创建了用户,则必须等到 Lync Server 复制完成,并填充数据库中的用户帐户。Before you create contacts, you must first complete user replication, performed from the Users tab. If you have just created your users, you must wait until Lync Server replication completes and populates the user accounts in the database. 如果用户尚未完成复制,您将看到错误。If the users have not finished replicating, you will see an error. 如果安装了 Lync Server 2013 前端服务,或者在最后一个用户上成功运行 get-csuser cmdlet,您将知道用户何时完成复制。You will know when users have finished replicating if Lync Server 2013 Front End service has started, or by successfully running the Get-CsUser cmdlet on the last user.

联系人创建选项卡Contacts Creation Tab

通过 "联系人创建" 选项卡,可以指定用户联系人的详细信息。The Contacts Creation tab enables you to specify details for users’ contacts.

!["联系人创建" 选项卡。](images/JJ945587.7508726e-83e6-4878-8edd-114543d9af24(OCS.15).jpg ""联系人创建" 选项卡。")Contacts Creation tab.

若要配置用户的联系人,请执行以下步骤。To configure users’ contacts, follow these steps.

  1. 在 "每个用户的平均联系人" 中,指定要在联系人列表中为每个用户填充的平均联系人数。In Average Contacts per User, specify the average number of contacts to populate in contact lists for each of the users.

  2. 如果要为每个用户创建相等数量的联系人,请选中 "固定" 复选框。Select the Fixed check box if you want to create an equal number of contacts for every user. 如果要改变为用户创建的联系人数量,请清除该复选框。If you want to vary the number of contacts created for users, clear the check box.

  3. 在 "每个用户的平均联系人组" 中,指定每个用户的联系人组数。In Average Contact Groups per User, specify the number of contact groups per user. 此数字必须小于每个用户的平均联系人数。This number must be smaller than Average Contacts per User.

  4. 在 "联合/跨池联系人百分比" 中,指定一个介于0和100之间的数字。In Federated / Cross Pool Contacts Percentage, specify a number between 0 and 100. 将使用联合用户创建此联系人百分比。This percentage of contacts will be created with the federated users.

  5. 在 "联合/跨池用户前缀" 中,指定将添加到本地用户的联系人列表中的联盟用户的用户名。In Federated / Cross Pool User Prefix, specify the username for federated users that will be added to the contact lists of local users.

  6. 在联合/跨池用户 SIP 域中,指定联盟用户的 SIP 域名称。In Federated / Cross Pool User SIP Domain, specify the SIP Domain Name of the federated users.

    备注

    创建联系人时不应登录任何用户。None of the users should be signed in when creating contacts.

  7. 在 "用户创建" 选项卡中,验证参数是否正确。In User Creation tab, verify that the parameters are correct. 将为其创建联系人的用户的范围是从 "用户创建" 选项卡获取的。The range of users for which contacts will be created is obtained from the User Creation tab.

  8. 单击 "创建联系人" 以开始创建联系人。Click Create Contacts to begin the contact creation. 此过程可能需要几分钟时间。This process can take several minutes. 完成后,将显示一个对话框,其中包含 "操作已成功完成" 的消息。After it completes, a dialog box will appear with the message, "Operation Completed Successfully." 您可以通过以用户创建选项卡上创建的用户的登录方式来验证所创建的联系人。You can validate the contacts that were created by logging on as a user that was created from the User Creation tab.

    备注

    创建联系人后,此工具将重新启动目标池中的所有前端服务器。After the contacts are created, this tool will restart all the Front End Servers in the target pool. 它可能需要更长时间 (2 小时) 才能启动前端服务器,具体取决于此操作创建的联系人数量。It may take longer (up to 2 hours) for the Front End Servers to start, depending on how many contacts were created by this operation.

通讯组列表Distribution List

Lync Server 2013 压力和性能工具的功能之一是在 Lync 2013 中模拟通讯组列表 (DL) 扩展功能。One of the features of the Lync Server 2013 Stress and Performance Tool is to simulate the distribution list (DL) expansion feature in Lync 2013. 如果您不打算在 UserProvisioningTool 中启用 DL 扩展,则可以跳过此步骤。If you are not going to enable DL expansion in UserProvisioningTool, you can skip this step.

!["通讯组列表创建" 选项卡。](images/JJ945587.0a1d681b-2aea-4724-90d8-efa8a526f600(OCS.15).jpg ""通讯组列表创建" 选项卡。")Distribution List Creation tab.

通过 "通讯组列表" 选项卡,您可以创建压力和性能工具将用于通讯组列表扩展功能的 DLs。The Distribution List tab enables you to create DLs that the Stress and Performance Tool will use for Distribution List Expansion feature. 在创建 Dl 之前,必须已安装 Lync Server 2013。Prior to creating DLs, Lync Server 2013 must already be installed. 您必须已运行 Lync Server 2013 ForestPrep。You must have run Lync Server 2013 ForestPrep. 否则,在 Active Directory 域服务架构中不存在 DL 属性,并且该工具将无法创建 Dl。Otherwise, the DL attributes do not exist in the Active Directory Domain Services schema and the tool will not be able to create DLs.

若要配置通讯组列表,请执行以下步骤。To configure distribution lists, follow these steps.

  1. 在 "通讯组列表数" 中,指定要创建的 Dl 的总数。In Number of Distribution Lists, specify the total number of DLs that you want to create. (建议您从) 的用户数中启动两次。(We recommend that you start with twice the number of users). 它们的编号从0到 n-1。They are numbered from 0 to n-1.

  2. 在 "通讯组列表前缀" 中,指定 Dl 将具有的前缀。In Distribution List Prefix, specify the prefix that the DLs will have. 例如,如果您指定 100 Dl 和 testDL 的前缀,则 Dl 将通过 testDL99 命名为 testDL0、testDL1 等。For example if you specify 100 DLs and a prefix of testDL, the DLs will be named testDL0, testDL1, and so on, through testDL99.

  3. 在 Dist 的最小成员中,指定每个通讯组列表中要添加的最小用户数。In Minimum Members in a Dist. List, specify the minimum number of users to add in each Distribution List.

  4. 在 "Dist 的最大成员数" 列表中,指定每个通讯组列表中要添加的最大用户数。In Maximum Members in a Dist. List, specify the maximum number of users to add in each Distribution List.

"创建通讯组列表" 按钮Create Distribution Lists Button

当您单击 "创建通讯组列表" 按钮时,该工具会查询 Active Directory 域服务,以查看与已存在的前缀和号码相匹配的通讯组列表。When you click the Create Distribution Lists button, the tool queries Active Directory Domain Services to see if distribution lists matching the prefix and numbers already exist. 该工具将仅创建尚不存在的工具。The tool will create only the ones that do not already exist. 将成员添加到这些新创建的通讯组列表时,将从 "用户创建" 选项卡上指定的区域中选择用户。When adding members to these newly created Distribution Lists, it will pick the users from the range specified on the User Creation tab.

位置信息服务配置选项卡Location Info Service Config Tab

Lync Server 2013 压力和性能工具的功能之一是为 Location 信息服务生成虚拟配置文件。One of the features of the Lync Server 2013 Stress and Performance Tool is to generate dummy configuration files for the Location Information Service. 位置信息服务通常不会对服务器产生显著的性能影响。The Location Information Service typically does not have any significant performance impact on the servers.

Location Info Service Config 选项卡。Location Info Service Config tab.

如果选择测试此功能,则可以填写表单中提及的值,然后单击 "生成 IIS 配置文件" 按钮。If you choose to test this feature, you can fill in the values mentioned in the form and then click the Generate LIS Config Files button. 它将生成名为 .LIS _Subnet.csv、iis _Switches.csv、.Lis _Ports.csv 和 .LISWAP.csv _ 的 CSV 文件。It will generate CSV files called LIS_Subnet.csv, LIS_Switches.csv, LIS_Ports.csv, and LIS_WAP.csv. 然后,您可以分别使用 CsLisSubnet Cmdlet、 CsLisSwitch cmdlet、 CsLisPort CMDLET 和 CsWirelessAccessPoint CMDLET 将这些 CSV 文件导入到 .lis 数据库中。You can then import these CSV files into LIS database by using the Set-CsLisSubnet cmdlet, the Set-CsLisSwitch cmdlet, the Set-CsLisPort cmdlet, and the Set-CsWirelessAccessPoint cmdlet, respectively.