Configure the built-in agent to manage instances
12.1.48.13 and later and on NetScaler SDX instances running version 13.0 61.x and later and 12.1 58.x and later. You can initiate this agent on the NetScaler instance instead of installing a dedicated agent in your data center or public cloud. The built-in agent enables communication between the instance and NetScaler Console.
-
NetScaler MPX
-
NetScaler VPX
-
NetScaler SDX
-
NetScaler Gateway
-
Application dashboard
-
Web Insight
-
SSL insight
-
HDX™ insight
-
Gateway insight
-
Security insight
-
Advanced analytics
-
Pooled or Flexed licensing (file-based licensing)
Prerequisites
-
The NetScaler (MPX, VPX, or Gateway) instance is running on the version
12.1.48.13or later. The SDX instance is running version13.0.61.xand later. -
A DNS name server is added on the NetScaler instance.For more information, see Add a name server.
-
You have a Citrix Cloud account. For more information, see Sign up for Citrix Cloud.
Configure the built-in agent
-
Select the Built-in agent option as instructed in Getting Started.
-
Copy the Service URL and Activation code.The agent uses the service URL to locate the service and the activation code to register with the service. Skip step 7 if you are an MPX or a Gateway customer.
-
Initiate the built-in agent using an SSH client. Gateway users must skip this step.
-
Log on to your NetScaler instance. For more information, see Access a NetScaler.
-
Navigate to the
/var/mastools/scriptsdirectory and type the following command:On the SDX instanceRegistration with NetScaler profile Registration without NetScaler profile Prequisite Before registering, create a NetScaler profile. For more information, see How to create a NetScaler profile. Run this command ./mastools_init.sh <device-profile-name> <service-url> <activation-code> -sdx -profile./mastools_init.sh <user_name> <service-url> <activation-code> -sdxUser credential Enter nsrootin<device_profile_name>. Alternatively, you can use a user name that has the same access privileges as nsroot.Enter nsrootin<user_name>. Alternatively, you can use a user name that has the same access privileges as nsroot.Note:NetScaler Console discovers all VPX instances running on that SDX and you don't have to register the VPX instances individually.On VPX instances not running on an SDX appliance and MPX and Gateway instances:If the NetScaler image version is lower than 13.0 61.x or 12.1 57.x, you must check themastoolsversion by typing the commandcat /var/mastools/version.txt. If the output is0.0-0.0, it is the first time.Type one of the following commands depending on the software version.Note:Before registering with a NetScaler profile, you must create the profile. For more information, see How to create a NetScaler profile.NetScaler image version Is mastools_version 0.0-0.0?Command for registration with profile Command for registration without profile Lower than 13.0 61.xx and 12.1 57.xx Yes ./mastools_init.sh <device_profile_name> <service_url> "MAS;<activation_code>" -profile./mastools_init.sh <user_name> <pwd> <service_url> "MAS;<activation_code>"Lower than 13.0 61.xx and 12.1 57.xx No ./mastools_init.sh <device_profile_name> <service_url> <activation_code> -profile./mastools_init.sh <user_name> <pwd> <service_url> <activation_code>Higher than 13.0 61.x and 12.1 57.xx Not applicable ./mastools_init.sh <device_profile_name> <service_url> <activation_code> -profile./mastools_init.sh <user_name> <pwd> <service_url> <activation_code>
Note:-
In
<device_profile_name>or<user_name>, enternsroot. Alternatively, you can use a user name that has the same access privileges as nsroot. -
In an HA pair, complete the registration on the primary node. If you run the registration commands on the secondary node, the following message appears: Please run the registration command on the primary node.
-
-
Return to the NetScaler Console page and click Register Instance.
-
In Add Instances, view the instance where you initiated the built-in agent. Ensure that the instance is in the Up status and click Next.
-
Click Done.
-
Virtual server and analytics – Apply licenses to your virtual server to manage NetScaler instances. For more information, see Manage subscriptions.
-
Application dashboard – To view all applications in a holistic way. For more information, see Application management and dashboard.
-
Infrastructure analytics – This feature helps you to visualize the factors that resulted or might result in an issue on the instances. For more information, see Infrastructure Analytics.
Configure license server through NetScaler® built-in agent
add licenseserver 127.0.0.1 -port 27000
Troubleshooting
-
If registration fails, check logs in
/var/mastools/logs/mastools_reg.py.log -
If registration succeeds, but the built-in agent does not appear in the NetScaler Console GUI, check:
-
Mastools_upgrade logs in
/var/mastools/logs/mastools_upgrade.log -
Binary logs in
/var/log/mastoolsd.log.
-