Product Documentation

Enabling Data Collection for Monitoring NetScaler ADCs Deployed in LAN User Mode

May 04, 2017

After you add the NetScaler appliance to the NetScaler Insight Center inventory, you must enable AppFlow for data collection.

Note:
  • You cannot enable data collection on a NetScaler ADC deployed in LAN User mode by using the NetScaler Insight Center configuration utility.
  • For detailed information about the commands and their usage, see Command Reference.
  • For information on policy expressions, see Policies and Expressions.

To configure data collection on a NetScaler appliance by using the command line interface

At the command prompt, do the following:

  1. Log on to an appliance.
  2. Add a forward proxy cache redirection virtual server with the proxy IP and port, and specify the service type as HDX.

    add cr vserver <name> <servicetype> [<ipaddress> <port>] [-cacheType <cachetype>] [ - cltTimeout <secs>]

    Example
    add cr vserver cr1 HDX 10.12.2.2 443 –cacheType FORWARD –cltTimeout 180
    Note: If you are accessing the LAN network by using a NetScaler Gateway appliance, add an action to be applied by a policy that matches the VPN traffic.

    add vpn trafficAction <name> <qual> [-HDX ( ON | OFF )]

    add vpn trafficPolicy <name> <rule> <action

    Example
    add vpn trafficAction act1 tcp -HDX ON 
     >
    add vpn trafficPolicy pol1 "REQ.IP.DESTIP == 10.102.69.17" act1
  3. Add NetScaler Insight Center as an appflow collector on the NetScaler appliance.

    add appflow collector <name> -IPAddress <ip_addr>

    Example:
    add appflow collector MyInsight -IPAddress 192.168.1.101
    Note: A NetScaler appliance supports a maximum four Appflow collectors. If there are already four Appflow collectors configured, you cannot add another AppFlow collector (in this case, NetScaler Insight Center) to the NetScaler appliance. Delete an existing Appflow collector to add a new collector. To view the appflow collectors configured on the NetScaler appliance, use the show appflow collector command.
  4. Create an appflow action and associate the collector with the action.

    add appflow action <name> -collectors <string> ...

    Example:
    add appflow action act -collectors MyInsight
  5. Create an appflow policy to specify the rule for generating the traffic.

    add appflow policy <policyname> <rule> <action>

    Example:
    add appflow policy pol true act
  6. Bind the appflow policy to a global bind point.

    bind appflow global <policyname> <priority> -type <type>

    Example:
    bind appflow global pol 1 -type ICA_REQ_DEFAULT
    Note: The value of type should be ICA_REQ_OVERRIDE or ICA_REQ_DEFAULT in order to apply to ICA traffic.
  7. Set the value of the flowRecordInterval parameter for Appflow to 60 seconds.

    set appflow param -flowRecordInterval 60

    Example:
    set appflow param -flowRecordInterval 60
  8. Save the configuration. save ns config