Session Recording

检查会话录制的成功率

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

录制成功率 = 已录制会话数 / 与当前活动录制策略匹配的会话数

先决条件

  • 此功能需要会话录制服务器的最低版本为 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.

  • For an on-premises Delivery Controller, install and use the Citrix Virtual Apps and Desktops™ PowerShell SDK. For a Delivery Controller in Citrix Cloud, install and use the Citrix DaaS Remote PowerShell SDK. To determine which SDK to install and use, be aware of the Delivery Controller that you specified when you configured your recording policy.

步骤

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

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

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

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

    • For an on-premises Delivery Controller™, run either of the following commands as needed:
      • 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% 录制成功率

检查会话录制的成功率