Configure NetScaler CPX
You can configure a NetScaler CPX instance by accessing the CLI prompt through the Linux Docker host, or by using NetScaler NITRO APIs.
Configure a NetScaler CPX instance by using the Command Line Interface (CLI)
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 NetScaler 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.
Configure a NetScaler CPX instance by using the NITRO API
You can use the NetScaler NITRO API to configure NetScaler CPX instances.
To configure NetScaler 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 NetScaler CPX, use
CPX IP address:port where
netscaler-ip-address is mentioned.
Configure a NetScaler CPX instance by using jobs
You can configure NetScaler 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 NetScaler CPX instance.
After you select the configuration, you must:
Select the NetScaler CPX instances on which you want to load the configuration
Specify the variable values
Execute the job
To configure NetScaler 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 one or more NetScaler CPX instances on which you want to run the configuration and click Next.
Specify the execution settings and click Finish to run the commands on the NetScaler CPX instance. If you want to save the configuration and run it later, click Save and Exit.
Configure log Streaming on a NetScaler CPX instance
You can configure log streaming on a NetScaler CPX instance to collect:
Webpage performance data
Flow and user-session level information
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 NetScaler CPX instance, you must first enable the AppFlow feature and the ulfd daemon on the NetScaler CPX instance. After 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. 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 NetScaler CPX instance, or by using the Jobs feature in NetScaler MAS.
Before you can monitor the records, you must add the NetScaler CPX instance to NetScaler MAS. For more information about adding a NetScaler CPX instance to NetScaler MAS, see Installing a NetScaler CPX Instance by Using NetScaler Management and Analytics System.
To configure log streaming on a NetScaler CPX instance:
Enable the AppFlow feature by running the following command:
enable ns feature AppFlow
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>]