Citrix Blogs

Upgrade your ADC from 10.5 to 11.x/12.x — Lessons from the field

Among the daily tasks of a network admin who manages an ADC environment is keeping equipment firmware updated. They have to make sure the environment is bug free and supported by the manufacturer.

We have articles that can show you how to upgrade Citrix ADC, but with this blog post, I wanted to share some of my experiences from the field upgrading Citrix ADC from version 10.5 to 11.x / 12.x.

Citrix ADC 10.5 has themes, features, and capabilities that differentiate it from newer versions, so upgrading requires some care when transitioning. Let’s take a look at some lessons we’ve learned from our Citrix Consulting engagements.

NS upgrade script
Multiple kernals

Update Path

If your ADC is not on version 10.5 build 57.x or later, you won’t be able to upgrade it directly to versions 11.x / 12.x via the GUI using the Upgrade Wizard. However, you can still upgrade it using the CLI. If you want to upgrade using the GUI, just upgrade to version 10.5 build 57.x and then to the desired version.

Remove Custom Themes

The theme structure of Citrix ADC 10.5 is different from newer versions. When you update to new versions, the gateway login page will be distorted. The username and password fields will be gone, as described in this article.

To remove the customization before upgrading to version 11.x / 12.x, follow these two steps:

  1. Disable customization by using the unset vpn parameter -UITHEME command and saving the settings.
  2. Edit the /nsconfig/rc.netscaler script and comment out any commands that are changing the login page. Additionally, to be sure, you can rename the file /var/ns_gui_custom/customtheme.tar.gz to another name, although the first step (unset vpn) is enough to disable the use of this file.

If you haven’t disabled the customization before upgrading to 11.x / 12.x, and the ADC Admin GUI no longer appears, you can enter the command line and perform the steps described in item 1 above, reboot Citrix ADC, and the GUI should appear again. I’ve done this to recover customers who upgraded without shutting down the old customization. If that doesn’t work, check out this article on theme troubleshooting.

Manual Changes

There are three configuration items that must be set manually when you upgrade from 10.x to 11.x / 12.x:

Cache in the User’s Browser

After the upgrade users will need to clean their browser cache for the page to load correctly. This behavior is expected because Citrix ADC modifies the page objects, and the cache on the user’s machine is “outdated.”

I developed a script with information that my colleague Marcelo Oguma gave me about the headers the Gateway has. The script forces the browser not to use the cache and request objects to ADC.

add rewrite action rw_request_cache delete_http_header If-Modified-Since
add rewrite action rw_request_cache2 delete_http_header If-None-Match
add rewrite action rw_response_cache delete_http_header ETag
add rewrite action rw_response_cache2 delete_http_header Expires
add rewrite action rw_response_cache3 delete_http_header Age
<strong>add rewrite action rw_response_cache4 insert_http_header Last-Modified "\"Tue, 12 Feb 2019 15:00:00 GMT\""</strong>
add rewrite policy rw_request_cache_pol true rw_request_cache
add rewrite policy rw_request_cache_pol2 true rw_request_cache2
add rewrite policy rw_response_cache_pol true rw_response_cache
add rewrite policy rw_response_cache_pol2 true rw_response_cache2
add rewrite policy rw_response_cache_pol3 true rw_response_cache3
add rewrite policy rw_response_cache_pol4 true rw_response_cache4
bind vpn vserver SW21CloudGW -policy rw_request_cache_pol -priority 100 -gotoPriorityExpression NEXT -type REQUEST
bind vpn vserver SW21CloudGW -policy rw_request_cache_pol2 -priority 110 -gotoPriorityExpression NEXT -type REQUEST
bind vpn vserver SW21CloudGW -policy rw_response_cache_pol -priority 100 -gotoPriorityExpression NEXT -type RESPONSE
bind vpn vserver SW21CloudGW -policy rw_response_cache_pol2 -priority 110 -gotoPriorityExpression NEXT -type RESPONSE
bind vpn vserver SW21CloudGW -policy rw_response_cache_pol3 -priority 120 -gotoPriorityExpression NEXT -type RESPONSE
bind vpn vserver SW21CloudGW -policy rw_response_cache_pol4 -priority 130 -gotoPriorityExpression NEXT -type RESPONSE
NEXT -type RESPONSE
bind vpn vserver SW21CloudGW -policy rw_response_cache_pol4 -priority 130 -gotoPriorityExpression NEXT -type RESPONSE

N.b.: The following line should be inserted with the latest possible date:

add rewrite action rw_response_cache4 insert_http_header Last-Modified "\"Tue, 12 Feb 2019 15:00:00 GMT\""
Note: Be sure not to leave policies in place too long because it will prevent the browser from caching the Citrix ADC page, which will cause an increase in bandwidth due to the page being requested for all access.

Summary

Upgrading Citrix ADC can be tricky, and I’ve covered a lot in this post to help with your transition. If you’re moving from Citrix ADC 10.5 to a newer version, here are the five things you should remember:

I would like to thank my colleagues Marcelo Oguma, Senior Enterprise Architect, and Edson da Luz, Principal Consultant, for their contributions to this blog post.


Citrix Tech Bytes – Created by Citrix Experts, made for Citrix Technologists! Learn from passionate Citrix Experts and gain technical insights into the latest Citrix Technologies.

Click here for more Tech Bytes and subscribe.

Want specific Tech Bytes? Let us know! tech-content-feedback@citrix.com.

Exit mobile version