IPWorks Data Migration Description

Contents

1Introduction

2

Overview

3

Architecture for the Backup and Migration

4

Backup
4.1Backup scripts and rule file for configurations and databases backup
4.2Backup script for network backup

5

Migration
5.1Migration Scripts for Configurations and Databases
5.2Rule Files for Configurations and Databases Migration

1   Introduction

This document describes the data migration from HP 15B FD1 CP3 to IPWorks 2. It mainly focuses on giving a brief overview of the data migration scripts and the rule files for DNS, ENUM, AAA Diameter, AAA Radius, and DHCP configurations, and database migration.

2   Overview

This section provides a brief description of the backup and migration from HP to IPWorks 2.

3   Architecture for the Backup and Migration

Data migration contains backup from HP and migration from HP to IPWorks 2.

The scripts and correspond rule files are used for backup and migration.

The migration uses the backup packages.

Figure 1 describes the architecture for the backup and migration.

Figure 1   Architecture for the Backup and Migration

4   Backup

This section provides the description of the following aspects:

4.1   Backup scripts and rule file for configurations and databases backup

This backup contains common configuration backup and service backup based on the services, such as DNS, ENUM, AAA, and DHCP.

  1. Backup script: ipwbackup_for_datamigration.sh

    Script usage:

    ./ipwbackup_for_datamigration.sh <DNS|ENUM|AAA-Dia|AAA-Rad|DHCP|COMMON|DB>

    Description:

    DNS: backup DNS services

    ENUM: backup ENUM services

    AAA-Dia: backup AAA Diameter services

    AAA-Rad: backup AAA Radius services

    DHCP: backup DHCP services

    COMMON: backup COMMON configuration

    DB: backup DB dump

    • For common configuration backup

      For example:

      # ./ipwbackup_for_datamigration.sh COMMON

      --------------------------------------

      IPWORKS Backup/Migration Utility

      --------------------------------------

      Checking ipworks.conf file....OK

      Backing up COMMON configuration files....Successfully.

      Creating tar archive...Successfully.

      Creating compressed gzip archive file...Successfully.

      BACKUP OPERATION COMPLETED SUCCESSFULLY

      The file /tmp/ipwbackup_074445_06212017_tesla-ipworks02_for_COMMON.tar.gz has been created .

      --------

      WARNING

      --------

      File Created :

      /tmp/ipwbackup_074445_06212017_tesla-ipworks02_for_COMMON.tar.gz

      THE FILE WILL BE ERASED PERMANENTLY ON REBOOT.

      PLEASE BACKUP THE FILE TO A REMOTE DIRECTORY / ANY STORAGE MEDUIM (eg. CD,TAPE DRIVE).

    • For service configuration backup

      Back up all the service configurations with service name.

      For example:

      # ./ipwbackup_for_datamigration.sh DNS

      --------------------------------------

      IPWORKS Backup/Migration Utility

      --------------------------------------

      Backing up DNS services configuration files...Successfully.

      Creating tar archive...Successfully.

      Creating compressed gzip archive file...Successfully.

      BACKUP OPERATION COMPLETED SUCCESSFULLY.

      The file ../dest/ipwbackup_090423_06132017_ci-wsqr2fwytfsyipworks28_ for_DNS.tar.gz has been created.

      File Created:

      ../dest/ipwbackup_090423_06132017_ci-wsqr2fwytfsyipworks28_ for_DNS.tar.gz

      THE FILE WILL BE ERASED PERMANENTLY ON REBOOT.

      PLEASE BACKUP THE FILE TO A REMOTE DIRECTORY / ANY STORAGE MEDUIM (eg. CD,TAPE DRIVE).

    • For database backup

      Backup the databases dumped from database IPWorks and Mysql.

      For example:

      # ./ipwbackup_for_datamigration.sh DB

      --------------------------------------

      IPWORKS Backup/Migration Utility

      --------------------------------------

      Taking ipworks Database backup...successfully.

      Creating tar archive...Successfully.

      Creating compressed gzip archive file...Successfully.

      BACKUP OPERATION COMPLETED SUCCESSFULLY.

      The file ../dest/ipwbackup_090822_06132017_ci-wsqr2fwytfsyipworks28_ for_DB.tar.gz has been created .

      File Created :

      ../dest/ipwbackup_090822_06132017_ci-wsqr2fwytfsyipworks28_ for_DB.tar.gz

      THE FILE WILL BE ERASED PERMANENTLY ON REBOOT.

      PLEASE BACKUP THE FILE TO A REMOTE DIRECTORY / ANY STORAGE MEDUIM (eg. CD,TAPE DRIVE).

  2. The rule file ipw_service_backup_rule.csv for configurations and databases backup

    This rule file ipw_service_backup_rule.csv defines the files and folders which should be backed up.

    There are following attributes in the ipw_service_backup_rule.csv:

    • The first column: the service name, including DNS, ENUM, AAA-Dia, AAA-Rad, DHCP, and COMMON.

      DNS: the DNS service

      ENUM: the ENUM service

      AAA-Dia: the AAA diameter service

      AAA-Rad: the AAA Radius service

      DHCP: the DHCP service

      COMMON: the common part configuration, such as SS configuration, licence configuration, and backup and restore configuration.

    • The second column: type for backup, including FILE and FOLDER.

      FILE: back up a file specified in the third column.

      FOLDER: back up all the files in the folder specified in the third column.

    • The third column: the backup content, including the file name and path, or the folder name and path.

      For example: ipw_service_backup_rule.csv

4.2   Backup script for network backup

The script ipwbackup_serverinfo.sh gets the server name and address from the following tables in DB dump file and the host name of IP address from /etc/hosts.

Table name:

For example:

# ./ipwbackup_serverinfo.sh

File ../dest/server_address.csv is generated.

Successfully.

5   Migration

This section provides:

5.1   Migration Scripts for Configurations and Databases

Configuration migration includes DNS, ENUM, AAA Diameter, AAA Radius, DHCP, and Common part.

The databases migration includes DNS, ENUM, AAA, DHCP, COMMON part, which use the mapping rules in rule files to do the migration.

The parameters in configuration files in HP have mainly the following scenarios to be set into IPWorks 2:

For more information, refer to the section 5.2.

The database in HP has the following scenarios to migrate to IPWorks 2:

For more information, refer to the section 5.2.

5.1.1   Service Configuration Migration

# ./ipw_migrate_service.py -h

usage: ipw_migrate_service.py [-h] {RADIUS,DIAMETER,COMMON,DNS,ENUM,DHCP} host file

Migrate IPworks by services

positional arguments:

{RADIUS,DIAMETER,COMMON,DNS,ENUM,DHCP}

service name

host host name

file a tar.gz backup file

optional arguments:

-h, --help show this help message and exit

A NETCONF xml file including the parameters will be generated which needs to imported into ECIM using netconf command manually.

5.1.2   Database Migration

Database migration includes DNS, ENUM, AAA, DHCP, and COMMON part.

Use the mapping rules in rule files to do the migration.

5.2   Rule Files for Configurations and Databases Migration

The data migration from HP to IPWorks 2 follows the following csv rule files: