Configuring NetScaler CPX
Apr 28, 2017
You can configure a NetScaler CPX instance by accessing the CLI prompt through the Linux Docker host, or by using NetScaler Nitro APIs.
Configuring a NetScaler 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 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.
Configuring 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.
Configuring 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 then select the NetScaler CPX instances on which you want to load the configuration, specify the variable values, and execute the job.
To configure NetScaler CPX instances by using Jobs:
Log on to NetScaler MAS by using the administrative credentials.
Navigate to Infrastructure > 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 NetScaler 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 NetScaler 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 NetScaler CPX Instance
You can configure log streaming on a NetScaler 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 NetScaler CPX instance, you must first enable the AppFlow feature and the ulfd daemon on the NetScaler 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 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
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.