Application Delivery Management

operations

操作是样书中的一个可选部分。在本节中,您可以配置 Citrix Application Delivery Management (ADM) 分析,以收集有关所有或部分流量事务的 AppFlow 记录。使用样书在 Citrix ADC 实例上创建的虚拟服务器处理这些流量事务。在本节中,您还可以将 Citrix ADM 配置为在虚拟服务器上满足某些流量条件时触发警报。

您可以通过样书配置 Citrix ADM,从各种 Citrix ADM Insights 中收集流量统计信息,如下所示:

  • Web Insight
  • Security Insight
  • HDX Insight
  • Citrix Gateway Insight。

支持的虚拟服务器包括负载平衡、内容交换和 VPN 虚拟服务器。

启用 Web Insight 和 Security Insight 或其中之一,以便在负载平衡或内容交换虚拟服务器上进行分析。但是,对于 VPN 虚拟服务器,您必须同时启用 HDX Insight 和 Citrix Gateway Insight 或其中一个。

通过样本在 Citrix ADC 实例上启用的任何 Citrix ADM Insight 都使用 IPFIX 协议 (AppFlow) 将数据从实例发送到 Citrix ADC。

此外,启用 Web Insight 时,在负载平衡和内容交换虚拟服务器上启用“客户端测量”。

示例 1

以下示例说明如何在样书中编写操作部分,以便在 VPN 虚拟服务器上同时启用 HDX Insight 和 Citrix Gateway Insight:


name: simple-vpn-ops
namespace: com.example.stylebooks
schema-version: "1.0"
version: "0.1"
description: Test StyleBook to enable hdxinsight and gatewayinsight on a VPN vserver
import-stylebooks:
  -
    namespace: netscaler.nitro.config
    version: "10.5"
    prefix: ns
components:
    -
        name: vpnvserver-comp
        type: ns::vpnvserver
        properties:
            name: str("vpn-") + str($current-target.ip)
            servicetype: SSL
            ipv46: 1.1.21.37
            port: 443
operations:
    analytics:
        -
            name: comp-ops
            properties:
                target: $components.vpnvserver-comp
                filter: "true"
                insights:
                  -
                 type: hdxinsight**
                  -
                    type: gatewayinsight
outputs:
  -
    name: myvpns
    value: $components.vpnvserver-comp
<!--NeedCopy-->

示例 2

以下示例显示如何在样书中编写操作部分,以便在负载平衡虚拟服务器上启用 Web Insight 和 Security Insight:


name: simple-lb-ops
namespace: com.example.stylebooks
schema-version: "1.0"
version: "0.1"
description: Test StyleBook to enable webinsight and securityinsight on LB vserver
import-stylebooks:
  -
    namespace: netscaler.nitro.config
    version: "10.5"
    prefix: ns
components:
    -
        name: lbvserver-comp
        type: ns::lbvserver
        properties:
            name: str("lb-") + str($current-target.ip)
            servicetype: HTTP
            ipv46: 1.1.21.37
            port: 80
operations:
    analytics:
        -
            name: comp-ops
            properties:
                target: $components.lbvserver-comp
                filter: "true"
                 insights:
                 -
                  type: webinsight
                   -
                  type: securityinsight
outputs:
  -
    name: mylbs
    value: $components.lbvserver-comp
<!--NeedCopy-->
operations