检查会话录制功能的成功率

您可以检查录制成功率,以了解是否所有与活动录制策略匹配的会话都已录制。录制成功率的计算方法如下:

会话录制成功率 = 已成功完成录制的会话数量 / 与当前生效的录制策略相匹配的会话总数

先决条件

  • 此功能要求会话录制服务器的最低版本为 2203。

  • To obtain site configuration and session data for accurate calculation, you must install the Broker PowerShell Snap-in (Broker_PowerShellSnapIn_x64.msi). You can locate the snap-in on the Citrix Virtual Apps and Desktops ISO (\x64\Citrix Desktop Delivery Controller) and follow the instructions to install it.

  • 对于本地部署的交付控制器,请安装并使用 Citrix Virtual Apps and Desktops™ PowerShell SDK。对于 Citrix Cloud 中的交付控制器,请安装并使用 Citrix DaaS Remote PowerShell SDK。为了确定应安装和使用哪个 SDK,请注意您在配置录制策略时指定的交付控制器。

步骤

为了检查您的部署中的录制成功率,请完成以下步骤:

  1. 使用具有适当权限的域用户帐户登录到安装了会话录制服务器的计算机。

  2. Start PowerShell and change the current drive to the <Session Recording server installation path>\Bin folder.

  3. 根据您的部署类型运行相应的命令:

    • 对于本地 Delivery Controller™,根据需要运行以下任一命令:
      • If the FQDN of the Session Recording server is the same with the FQDN in the certificate bound to the Session Recording server, run SsRecUtils.exe -CalcRecSuccessRate <Delivery Controller address>.

      • If you have specified a custom domain name with the certificate binding, run SsRecUtils.exe -CalcRecSuccessRate <Delivery Controller address> - SRBrokerURL <custom domain name>.

    • 对于 Citrix Cloud™ 中的交付控制器,请按顺序运行以下命令:

      • Add-PSSnapin Citrix.Broker.Admin.V2

      • Set-XDCredentials -CustomerId “<Citrix Cloud customer ID>” -SecureClientFile “<path to secure client file>” -ProfileType CloudApi -StoreAs default

      • get-xdauthentication

      • SsRecUtils.exe -CalcRecSuccessRate CloudDDC

  4. 检查录制成功率。如果所有与当前活动录制策略匹配的会话都已录制,则录制成功率为 100%。否则,录制成功率将低于 100%,系统会提示您检查提供会话详细信息的文件中的失败录制。例如:

    100% 录制成功率 100% 录制成功率

    50% 录制成功率 50% 录制成功率

检查会话录制功能的成功率