How to update your Citrix NetScaler firmware
I'm doing some firmware updates on Citrix Netscaler appliances today and thought I would give you guys a quick guide on how to do this. This applies to all legacy appliances, MPX appliances, and VPX appliances. You use the same procedure for both Classic and nCore firmware packages. It is very easy to do. :)
-
Login to MyCitrix at http://citrix.com/English/mycitrix/index.asp and download the firmware .tgz package. Make sure to check compatability with your appliance before downloading.
-
Use WinSCP to transfer the package to the /var/nsinstall directory on your appliance.
-
SSH into your appliance using Putty and type "shell" to enter the shell
-
Type cd /var/nsinstall
-
Type ls to list the contents of the directory and verify your newly uploaded firmware package is there
-
Now type "tar -zxvf build-xxxxxxxx.tgz" to unzip the package
-
Then type "installns" to begin the install. Should take about 30 seconds to copy to flash and install.
-
Reboot the appliance once prompted for it (just type Y).
-
Login via the web GUI and verify the firmware version in the top right corner is the same as the package you were trying to apply.

Jason Samuel
Product leader, advisor, and international speaker with 27+ years in enterprise end-user computing, security, and cloud. Has deployed infrastructure at Fortune 500 scale across 34 countries. 1 of 3 people globally to hold Citrix CTP + VMware vExpert + VMware EUC Champion concurrently. 200+ articles, 1,000+ reader discussions.
Previous Comments (14)
set node -hastatus STAYSECONDARY
To put the node in STAY PRIMARY:
set node -hastatus STAYPRIMARY
To put the node back in HA
set node -hastatus ENABLE
8. Now go back to your primary node and enable HA that you had disabled in step 5 above.
9. Now you have an option. The first option is that you can update the primary node next. Most people do this step next. I prefer to do it later once I have passed some traffic through the newly updated Netscaler and verify everything is good. This is because I want to have the option of failing back to the old firmware immediately if I have an issue. If you want to go with option 1, just skip to step 11 below. If you want to go the route I take and test it first, move onto step 10 below.
10. Do a forced failover making your newly updated Netscaler the primary node. Traffic will immediately begin passing through it. Watch your traffic and do testing! Verify all your services are up, all your VIPs are up, all your apps are responding normally, your traffic looks good, etc. This is the only chance you have to failback to the node with the old firmware so it is critical you test everything. I have gone as long as a week running new firmware on a primary node without updating the passive node just so I have a safety net and give application owners time to test their apps.
11. When you are finally ready to update the primary node, perform the same steps as above you did on the passive node. Yes you can do the update while there is traffic on your node. Nothing will happen to the traffic until you tell it to reboot. When you reboot, it will automatically failover to the passive node (just make sure you don't disable HA like you did above earlier). There should be no outage (verify this in the command prompt where you are still pinging your VIP). Once the node is back up, verify everything looks good and do a manual failback. Now both your nodes should be updated and the node that was originally primary when you began the update process is back to being primary again.
That's it! Let me know if you have any questions. I urge you to setup 2 VPX Express appliances in an HA pair and test this before doing it on your production Netscalers just to make sure you have the process down and don't have any surprises. Also don't forget to take a backup of your ns.conf before beginning any firmware updates just incase. Let me know how it goes for you.
Jason