{"id":663,"date":"2018-12-04T01:00:00","date_gmt":"2018-12-04T01:00:00","guid":{"rendered":"http:\/\/inswwdev.azurewebsites.net\/au\/insights\/uncategorized\/moving-citrix-adc-as-easy-as-abc\/"},"modified":"2025-03-21T02:38:34","modified_gmt":"2025-03-21T02:38:34","slug":"moving-citrix-adc-as-easy-as-abc","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/us\/insights\/geek-speak\/modern-workplace\/moving-citrix-adc-as-easy-as-abc\/","title":{"rendered":"Moving Citrix ADC as Easy as ABC"},"content":{"rendered":"<p style=\"text-align: justify;\">Working at Insentra means I\u2019ve been involved in a number of Citrix NetScaler (ADC) migrations over the years, whether it is migrating a configuration from one appliance to another (legacy equipment on its last legs to the new shiny one just out of its box) or one environment to another (replicate Production to DR \u2013 with a few tweaks).&nbsp; As with anything you do repeatedly, you begin to find more efficient ways. . &nbsp;Today I decided to share the steps I go through when taking an existing NetScaler load balancing configuration and applying it to another appliance.<\/p>\n<p style=\"text-align: justify;\">There are a couple of things that need to be done first, namely:<\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong><span>&nbsp;<\/span>Ensure the new NetScaler appliance is up and running, licensed and connected to the network (kinda obvious really!)<\/p>\n<p style=\"text-align: justify;\"><strong>2.<\/strong><span>&nbsp;<\/span>Copy certificate files from the existing appliance on to its replacement<\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>STEP<\/span><\/h3>\n<p style=\"text-align: justify;\">Login to the existing NetScaler and download a copy of the saved configuration from the Diagnostics node within the NetScaler GUI by clicking \u2018Save text to a file\u2019<\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>SCREENSHOT \/ NOTES<\/span><\/h3>\n<p><span><img decoding=\"async\" style=\"width: 480px; height: 328px;\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/21\/2021\/02\/blog_dec42018_1.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/6e4a9ea9ec874d3f8adaae3bf20c7e5c\"><\/span><\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>STEP<\/span><\/h3>\n<p style=\"text-align: justify;\">Using your favorite text editor, mine\u2019s Notepad++ which I\u2019ve used in this blog as an example, set Notepad++ format to Unix EOL<\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>SCREENSHOT \/ NOTES<\/span><\/h3>\n<p><span><img decoding=\"async\" style=\"width: 652px; height: 116px;\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/21\/2021\/02\/blog_dec42018_2.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/9cd22b738e924410af50b7d5a5a91192\"><\/span><\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>STEP<\/span><\/h3>\n<p style=\"text-align: justify;\">Open the existing NetScaler configuration file and remove specific NetScaler appliance settings.<\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>SCREENSHOT \/ NOTES<\/span><\/h3>\n<p style=\"text-align: justify;\">You\u2019re aiming to have left the load balancing configurations and any SSL \/ certificate settings, such as below:<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" style=\"width: 634px; height: 147px;\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/21\/2021\/02\/blog_dec42018_3.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/61e1ede62c3944f18cb1849d577098f6\"><\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>STEP<\/span><\/h3>\n<p style=\"text-align: justify;\">Save the new configuration file as a Unix Script file<\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>SCREENSHOT \/ NOTES<\/span><\/h3>\n<p><span><img decoding=\"async\" style=\"width: 639px; height: 482px;\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/21\/2021\/02\/blog_dec42018_4.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/12d8cc0a8f06418984863da64e994fee\"><\/span><\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>STEP<\/span><\/h3>\n<p style=\"text-align: justify;\">Verify file doesn\u2019t list ^M at the end of each line:<\/p>\n<p style=\"text-align: justify;\"><strong>3.<\/strong><span>&nbsp;<\/span>Open PuTTy session to active NetScaler and login<br \/>\n<strong>4.<\/strong><span>&nbsp;<\/span>Enter NetScaler \u2018shell\u2019; type shell<br \/>\n<strong>5.<\/strong><span>&nbsp;<\/span>Type: cat \u2013vet \/var\/tmp &lt;script file name&gt;<\/p>\n<p style=\"text-align: justify;\">And verify each line as needed<\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>SCREENSHOT \/ NOTES<\/span><\/h3>\n<p><span><img decoding=\"async\" style=\"width: 590px; height: 275px;\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/21\/2021\/02\/blog_dec42018_5.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/ae21772105fb44a49777a992fd495006\"><\/span><\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>STEP<\/span><\/h3>\n<p style=\"text-align: justify;\">Type \u2018exit\u2019 to come out of the NetScaler shell prompt<\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>SCREENSHOT \/ NOTES<\/span><\/h3>\n<p><span><img decoding=\"async\" style=\"width: 534px; height: 202px;\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/21\/2021\/02\/blog_dec42018_6.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/dded5dff48344054929b557967c2e171\"><\/span><\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>STEP<\/span><\/h3>\n<p style=\"text-align: justify;\">To apply the configuration saved within the batch file:<\/p>\n<p style=\"text-align: justify;\"><strong>6.<\/strong><span>&nbsp;<\/span>Type: batch \u2013filename \/var\/tmp\/&lt;script file name&gt; -outfile \/var\/tmp\/&lt;script file name&gt;-out<\/p>\n<p style=\"text-align: justify;\">Review the \u2013outfile for any errors &amp; remediate as needed. You can use WinSCP to open and view the \u2013outfile for review.<\/p>\n<h3 style=\"padding-bottom: 15px; margin-bottom: 30px; margin-top: 40px; border-bottom: 1px solid #f16020;\"><span>SCREENSHOT \/ NOTES<\/span><\/h3>\n<p><span><img decoding=\"async\" style=\"width: 643px; height: 135px;\" src=\"https:\/\/www.insentragroup.com\/wp-content\/uploads\/sites\/21\/2021\/02\/blog_dec42018_7.jpg\" alt=\"\" data-udi=\"umb:\/\/media\/b51422a89cac4e6db2e365b1b2a430e1\"><\/span><\/p>\n<p style=\"text-align: justify;\">There you go, you should now have the existing NetScaler configuration applied to the new appliance.&nbsp; This process is valuable if your existing NetScaler has a lot of Load Balancing virtual servers and their associated services or service groups.&nbsp; This is also useful if you need to replicate your existing production configuration \u2013 by using \u2018find\/replace\u2019 within the text editor you can rename the load balancing virtual servers and change their IP addresses to something suitable for your DR or test environments.<\/p>\n<p style=\"text-align: justify;\">Spending a little time upfront in editing the original configuration and turning it into a batch file can save you a lot of time migrating or replicating an existing NetScaler configuration.<\/p>\n<p style=\"text-align: justify;\">Stay tuned for more NetScaler tips and lessons learnt in the field and if you want them delivered to your inbox make sure you sign up to Insentragram!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Working at Insentra means I\u2019ve been involved in a number of Citrix NetScaler (ADC) migrations over the years, whether it is migrating a configuration from one appliance to another (legacy equipment on its last legs to the new shiny one just out of its box) or one environment to another (replicate Production to DR \u2013&hellip; <a class=\"more-link\" href=\"https:\/\/www.insentragroup.com\/us\/insights\/geek-speak\/modern-workplace\/moving-citrix-adc-as-easy-as-abc\/\">Continue reading <span class=\"screen-reader-text\">Moving Citrix ADC as Easy as ABC<\/span><\/a><\/p>\n","protected":false},"author":67,"featured_media":7064,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-663","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-modern-workplace","entry"],"_links":{"self":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/comments?post=663"}],"version-history":[{"count":1,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/663\/revisions"}],"predecessor-version":[{"id":7065,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/663\/revisions\/7065"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/media\/7064"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/media?parent=663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/categories?post=663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/tags?post=663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}