-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publishing migrating scripts from TD to Admin Partition and Scripts f…
…or pre-validating and converting deprecated features Signed-off-by: “Subash <[email protected]>
- Loading branch information
Showing
34 changed files
with
10,194 additions
and
86 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### CITRIX TOOL LICENSE AGREEMENT | ||
|
||
Use of this Citrix software is subject to the Citrix license covering the specific edition of the Citrix product with which you will be using this software. Citrix’s standard end-user license agreement (EULA) for its on-premises software and hardware offerings and its standard end-user service agreement (EUSA) for its Citrix Cloud and other SaaS offerings are available at https://www.citrix.com/buy/licensing/agreements.html. Your use of this software is limited to use in connection with the Citrix product(s) to which you are licensed. | ||
Certain third-party software may be provided with this software that is subject to separate license conditions. The licenses are located in the third-party licenses file accompanying this component or in the corresponding license files available at www.citrix.com . | ||
|
||
Citrix and other marks are trademarks and/or registered trademarks of Citrix Systems, Inc. in the U.S. and other countries. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
![Citrix Logo](media/Citrix_Logo_Trademark.png) | ||
|
||
# Citrix ADC scripts for migrating and converting Citrix ADC configuration with deprecated features | ||
|
||
## Description | ||
|
||
When you migrate from a Citrix ADC version with deprecated features, you may lose some of the configuration. Citrix provides you scripts to avoid such configuration loss when you are migrating from an old version with deprecated features to the newer version. | ||
|
||
This repository contains the following scripts: | ||
|
||
- [`tdToPartition.pl`](td-to-ap/tdToPartition.pl): The script for migrating the traffic domain configuration on a Citrix ADC to the admin partition configuration. For more information on how to use the script, see [Migrating traffic domain configuration on a Citrix ADC to admin partition configuration](td-to-ap/migration-script-td.md). | ||
|
||
- [`check_invalid_config`](nspepi/check_invalid_config): Pre-validation script to check if any deprecated functionality that is removed from Citrix ADC release version 13.1 is still used in the configuration. For more information on how to use the script, see [Scripts for pre-validating and converting deprecated features](nspepi/validation-conversion-script.md). | ||
|
||
- [`NSPEPI`](nspepi/nspepi): The script that converts deprecated commands or features to non-deprecated commands or features. For more information on how to use the script, see [Scripts for pre-validating and converting deprecated features](nspepi/validation-conversion-script.md). | ||
|
||
|
||
## <a name="questions">Questions</a> | ||
|
||
For questions and support, the following channels are available: | ||
|
||
- [Citrix Discussion Forum](https://discussions.citrix.com/) | ||
|
||
|
||
## <a name="licensing">Licensing</a> | ||
|
||
The Citrix ADC scripts are licensed with [CITRIX TOOL LICENSE](LICENSE.md). |
Submodule devdocs-theme
deleted from
aa7990
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/perl | ||
|
||
# Copyright 2021 Citrix Systems, Inc. All rights reserved. | ||
# Use of this software is governed by the license terms, if any, | ||
# which accompany or are included with this software. | ||
|
||
$ENV{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin'.$ENV{PATH}; | ||
|
||
use File::Basename; | ||
|
||
my $number_args = $#ARGV + 1; | ||
if ($number_args != 1) { | ||
print "Usage: check_invalid_config <ns_config_file>\n"; | ||
exit; | ||
} | ||
|
||
my $config_file = $ARGV[0]; | ||
if (not -e $config_file) { | ||
print "No such file: $config_file\n"; | ||
exit; | ||
} | ||
|
||
my($filename, $dir_path) = fileparse($config_file); | ||
|
||
my $exit_status = system("python2 /netscaler/nspepi2/config_check_main.py -f $config_file"); | ||
if ($exit_status != 0) { | ||
print "Error in checking config file: $exit_status"; | ||
exit; | ||
} | ||
my $invalid_config_file = $dir_path."/issues_".$filename; | ||
|
||
# Checks whether any command is present in the file | ||
if (!(-z $invalid_config_file)) { | ||
print "\nThe following configuration lines will get errors in 13.1 and both they and dependent configuration will be removed from the configuration:\n"; | ||
system("cat $invalid_config_file"); | ||
print "\nThe nspepi upgrade tool can be useful in converting your configuration - see the documentation at https://docs.citrix.com/en-us/citrix-adc/current-release/appexpert/policies-and-expressions/introduction-to-policies-and-exp/converting-policy-expressions-nspepi-tool.html. Use the latest tool version for the most complete and up-to-date version.\n"; | ||
} else { | ||
print "\nNo issue detected with the configuration.\n"; | ||
} | ||
### End check_invalid_config script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2021 Citrix Systems, Inc. All rights reserved. | ||
# Use of this software is governed by the license terms, if any, | ||
# which accompany or are included with this software. | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
exec $DIR/nspepi2/nspepi_main.py "$@" |
Oops, something went wrong.