Skip to content

Commit

Permalink
Publishing migrating scripts from TD to Admin Partition and Scripts f…
Browse files Browse the repository at this point in the history
…or pre-validating and converting deprecated features

Signed-off-by: “Subash <[email protected]>
  • Loading branch information
subashd committed Sep 1, 2021
1 parent 4b890f8 commit 0946657
Show file tree
Hide file tree
Showing 34 changed files with 10,194 additions and 86 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

7 changes: 7 additions & 0 deletions LICENSE.md
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.

27 changes: 27 additions & 0 deletions README.md
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).
1 change: 0 additions & 1 deletion devdocs-theme
Submodule devdocs-theme deleted from aa7990
5 changes: 0 additions & 5 deletions docs/index.md

This file was deleted.

Binary file added media/Citrix_Logo_Trademark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 0 additions & 72 deletions mkdocs.yml

This file was deleted.

40 changes: 40 additions & 0 deletions nspepi/check_invalid_config
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
8 changes: 8 additions & 0 deletions nspepi/nspepi
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 "$@"
Loading

0 comments on commit 0946657

Please sign in to comment.