Configuring Citrix ADC CPX
You can configure a Citrix ADC CPX instance by accessing the CLI prompt through the Linux Docker host, or by using NetScaler Nitro APIs.
Configuring a Citrix ADC CPX Instance by Using the Command Line Interface
Access the Docker host and log on to the SSH prompt of the instance as shown in the following figure. The default administrator credentials to log on to a Citrix ADC CPX instance are root/linux.
Type the following command to use the command line prompt of the instance to run CLI commands: cli_script.sh “<command>”
To log out of the instance prompt, type log out.
Configuring a Citrix ADC CPX Instance by Using the Nitro API
You can use the NetScaler Nitro API to configure Citrix ADC CPX instances.
To configure Citrix ADC CPX instances by using the Nitro API, in a web browser, type:
To retrieve statistics by using the Nitro API, in a web browser, type:
For more information about using the Nitro API, see REST Web Services. For Citrix ADC CPX, use
CPX IP address:port where
netscaler-ip-address is mentioned.
Configuring a Citrix ADC CPX Instance by Using Jobs
You can configure Citrix ADC CPX instances by creating and executing jobs in NetScaler MAS. You can use the configurations from configuration templates, extract configurations available on other devices, and use configurations saved in text files. You can also record configurations done by using the configuration utility of another instances. NetScaler MAS then displays the corresponding CLI commands for you to use on your Citrix ADC CPX instance. After you select the configuration, you must then select the Citrix ADC CPX instances on which you want to load the configuration, specify the variable values, and execute the job.
To configure Citrix ADC CPX instances by using Jobs:
Log on to NetScaler MAS by using the administrative credentials.
Navigate to Networks > Configuration Jobs, and then click Create Job.
Specify the required values, and select the configuration source. You can also type the commands you want to run.
Select the Citrix ADC CPX instance(s) on which you want to run the configuration and click Next.
Specify the execution settings and click Finish to run the commands on the Citrix ADC CPX instance. If you want to save the configuration and run it at a later time, click Save and Exit.
Configuring Log Streaming on a Citrix ADC CPX Instance
You can configure log streaming on a Citrix ADC CPX instance to collect web page performance data, flow and user-session level information, and database information required for application performance monitoring and analytics. These data records are sent to NetScaler MAS where you can view real-time and historical reports for all your applications.
To configure log streaming on a Citrix ADC CPX instance, you must first enable the AppFlow feature and the ulfd daemon on the Citrix ADC CPX instance. When you enable the ulfd daemon, you must specify the IP address of NetScaler MAS where you want to monitor the real-time and historical reports. You must then configure an AppFlow collector, action, policy, and bind the AppFlow policy globally.
The ulfd daemon sends all the flow records to NetScaler MAS in a single unified logging format.
You can configure log streaming either by using the command line interface of a Citrix ADC CPX instance, or by using the Jobs feature in NetScaler MAS.
Before you can monitor the records, you must add the Citrix ADC CPX instance to NetScaler MAS. For more information about adding a Citrix ADC CPX instance to NetScaler MAS, see Installing a Citrix ADC CPX Instance by Using NetScaler Management and Analytics System.
To configure log streaming on a Citrix ADC CPX Instance:
Enable the AppFlow feature by running the following command:
enable ns feature AppFlow
Enable the ulfd daemon by using the following command:
set ns param -ulfd ENABLED -loggerip <NUMS_IP_Address>
Run the following commands to configure an AppFlow collector, action, and policy, and to bind the policy globally:
add appflow collector <name> -IPAddress <ipaddress>` set appflow param -templateRefresh 3600 -httpUrl ENABLED -httpCookie ENABLED -httpReferer ENABLED -httpMethod ENABLED -httpHost ENABLED -httpUserAgent ENABLED -httpContentType ENABLED -httpAuthorization ENABLED -httpVia ENABLED -httpXForwardedFor ENABLED -httpLocation ENABLED -httpSetCookie ENABLED -httpSetCookie2 ENABLED -connectionChaining ENABLED -httpDomain Enabled add appflow action <name> --collectors <string> ... [-clientSideMeasurements (Enabled|Disabled) ] add appflow policy <name> true <action> bind appflow global <policyName> <priority> [<gotoPriorityExpression [-type <type>]
Note: You must configure the AppFlow collector with a dummy IP address.