检查会话录制成功率

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

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

先决条件

  • 此功能要求 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. 使用具有适当权限的域用户帐户登录到安装了 Session Recording 服务器的计算机。

  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

      • 获取-xd认证

      • SsRecUtils.exe -CalcRecSuccessRate CloudDDC

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

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

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

检查会话录制成功率