Adding NetScaler CPX Instances to NetScaler Console
ns-root-profile is the default profile for NetScaler instances. This profile is defined by the default ADC administrator credentials. If you have changed the default admin credentials of your instances, you can define custom instance profiles for those instances. If you change the credentials of an instance after the instance is discovered, you must edit the instance profile or create a profile, and then rediscover the instance.
Prerequisites
-
Installed the NetScaler Console software on Citrix XenServer. For more information, see NetScaler Console Documentation.
-
Installed the NetScaler CPX instances on a Docker host.
-
In a web browser, type the IP address of the NetScaler Application Delivery Management (for example,
http://192.168.100.1). -
In the User Name and Password fields, enter the administrator credentials. The default administrator credentials are nsroot and nsroot.
-
Navigate to Networks \> Instances > NetScaler and click CPX tab.
-
Click Add to add new CPX instances in NetScaler Console.
-
The Add NetScaler CPX page opens. Enter the values for the following parameters:
-
You can add CPX instances by providing either the reachable IP address of the CPX instance or the IP address of the Docker container where the CPX instance is hosted.
-
Select the profile of the CPX instance.
-
Select the site where the instances are to be deployed.
-
Select the agent.
-
As an option, you can enter the key-value pair to the instance. Adding a key-value pair makes it easy for you to search for the instance later.

-
-
Click OK.
Adding NetScaler CPX instances to NetScaler Console using environment variables
-
NS_MGMT_SERVER- ADM IP address/FQDN -
HOST- Node IP address -
NS_HTTP_PORT- Mapped HTTP port on node -
NS_HTTPS_PORT- Mapped HTTPS port on node -
NS_SSH_PORT- Mapped SSH port on node -
NS_SNMP_PORT- Mapped SNMP port on node -
NS_ROUTABLE- (NetScaler CPX pod IP address is not routable from outside.) -
NS_MGMT_USER– ADM username -
NS_MGMT_PASS– ADM password
docker run command for adding a NetScaler CPX instance to NetScaler Console.
docker run -dt --privileged=true -p 9080:9080 -p 9443:9443 -p 9022:22 -p 9161:161 -e EULA=yes -e NS_MGMT_SERVER=abc-mgmt-server.com -e HOST=10.1.1.1 -e NS_HTTP_PORT=9080 -e NS_HTTPS_PORT=9443 -e NS_SSH_PORT=9022 -e NS_SNMP_PORT=9161 -e NS_ROUTABLE=0 --ulimit core=-1 –name test cpx:latest
Adding NetScaler CPX instances to NetScaler Console using Kubernetes ConfigMaps
-
NS_HTTP_PORT- Specifies mapped HTTP port on node. -
NS_HTTPS_PORT- Specifies mapped HTTPS port on node. -
NS_SSH_PORT- Specifies mapped SSH port on node. -
NS_SNMP_PORT- Specifies mapped SNMP port on node.
…
env:
- name: "EULA"
value: "yes"
- name: "NS_HTTP_PORT"
value: "9080"
- name: "NS_HTTPS_PORT"
value: "9443"
- name: "NS_SSH_PORT"
value: "22"
- name: "NS_SNMP_PORT"
value: "161"
- name: "KUBERNETES_TASK_ID"
value: ""
…
volumeMounts:
…
- mountPath: /var/adminfo/server/
name: adm-agent-config
- mountPath: /var/adminfo/credentials/
name: adm-agent-user
…
volumes:
…
- name: adm-agent-config
configMap:
name: adm-agent-config
- name: adm-agent-user
secret:
secretName: adm-secret
adm-agent-config and a secret adm-agent-user are consumed. The following is an example for creating the required ConfigMap and Secret.
adm_reg_envs. The file requires the IP address or FQDN of the ADM agent in the following format:
NS_MGMT_SERVER=adm-agent
adm-agent is the FQDN of the ADM agent to which the NetScaler CPX instance needs to be registered.
kubectl create configmap adm-agent-config --from-file=adm_reg_envs
adm_reg_envs variable and it must be mounted to the path: /var/adminfo/server/.
user123 is the user name of the ADM agent and pass123 is the password.
kubectl create secret generic adm-secret --from-literal=NS_MGMT_USER=user123 --from-literal=NS_MGMT_PASS=pass123