Migrating Your CONTROL-M Environment to the Latest · PDF fileMigrating Your CONTROL-M...

37
Migrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Transcript of Migrating Your CONTROL-M Environment to the Latest · PDF fileMigrating Your CONTROL-M...

Page 1: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migrating Your CONTROL-M Environment to the Latest

Version

Scott Fluegge& Richard Sherman

Infospectrum Consulting

Page 2: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

What is Migration?

›Upgrade!

NewNewOldOld

Page 3: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Types of Migration

› In Place Vs. Parallel

Page 4: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

In Place Migration

› Advantages– Less Space Required– Fewer System Resources Required– No Port Conflicts

› Disadvantages– No Burnin– No Testing– No Backout– Higher Scheduling Impact (Down Time - Cutover)

Page 5: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Parallel Migration

› Advantages– Testing– Buy In– Burn In– Limited Down Time (Cutover)– Simple Backout

› Disadvantages– Possible Port Conflicts– Greater Disk Space– More System Resources

Page 6: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

EM Migration Steps– In Place

› Validate EM Data› BRING PROD EM DOWN› Export EM Data› Un-Install existing EM› Install NEW EM› Install New Clients (First uninstall where necessary)› Configure New EM› Import old EM Data› Test new environment› BRING PROD EM UP› Migration Complete

Page 7: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

EM Backout - In Place Migration

› BRING PROD EM DOWN› Un-Install new EM› Re-Install old EM (And all associated Fix Packs)› Un-Install new clients› Re-Install old clients where necessary (And all associated Fix Packs)› Configure newly installed EM› Import Data› BRING PROD EM UP› Backout Complete

Page 8: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

EM Migration Steps– Parallel

› Install new EM› Install new EM Clients› Configure new EM› Test new environment› Validate old EM Data› BRING PROD EM DOWN› Export EM Data› Import old EM Data› BRING PROD EM UP› Migration Complete› Cleanup old install

Page 9: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

EM – Parallel Migration Backout

› BRING NEW PROD EM DOWN› START OLD PROD EM› Backout Complete

Page 10: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Questions on EM Migration?

Page 11: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

CONTROL-M Server Migration

› In Place Vs. Parallel

ANDAND

› Migrate Vs. Upload

Page 12: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

CTM Migrate Vs. Upload

› Migrate– Advantages

• Migrates AJF• Migrates Security• Migrates Q Resources• Migrates Shout Destinations• Migrates Stats• Migrates Node Groups

– Disadvantages• May take longer• Longer Down Time

Page 13: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

CTM Migrate Vs. Upload

› Upload– Advantages

• Fast• Can be pre-staged to minimize down time

– Disadvantages• Does not migrate AJF• Does not migrate Security• Does not migrate Q Resource Definitions• Does not migrate Shout Destinations• Does not migrate Stats• Does not migrate Node Groups

Page 14: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

CTM Migrate Vs. Upload

› How do you choose?

Page 15: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

CONTROL-M - In Place - Comparison

CTM Migration Steps – In Place - Migrate CTM Migration Steps – In Place - Upload

Validate SERVER Data BRING PROD SERVER DOWN

BRING PROD SERVER DOWN Create Reports (Waiting Jobs, Q Res, Security, Shouts, Node Groups)

Export SERVER Data Un-Install existing SERVER

Un-Install existing SERVER Install NEW SERVER

Install NEW SERVER Configure New SERVER

Configure New SERVER Manually Create Q Res, Security, Shouts and Node Groups

Import old SERVER Data Migrate_dc (moves EM Defs to new release)

BRING PROD SERVER UP Upload Tables and Cals from EM

Migrate_dc (moves EM Defs to new release) BRING PROD SERVER UP

Monitor New Day Monitor New Day

Migration Complete Manually order jobs from previous day still waiting

Migration Complete

Page 16: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

CONTROL-M - Parallel - Comparison

CTM Migration Steps – Parallel - Migrate CTM Migration Steps – Parallel - Upload

Install NEW SERVER (Use new ports) Install NEW SERVER

Configure New SERVER Configure New SERVER

Validate SERVER Data Create Reports (Waiting Jobs, Q Res, Security, Shouts, Node Groups)

BRING PROD SERVER DOWN Manually Create Q Res, Security, Shouts and Node Groups

Export SERVER Data Migrate_dc (moves EM Defs to new release)

Import old SERVER Data Upload Tables and Cals from EM

Change Ports to old values BRING PROD SERVER DOWN

BRING PROD SERVER UP BRING NEW PROD SERVER UP

Migrate_dc (moves EM Defs to new release) Monitor New Day

Monitor New Day Manually order jobs from previous day still waiting

Migration Complete Migration Complete

Page 17: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Questions on CTM Server Migration Steps?

Page 18: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration Tools

› Supplied by BMC› Free and Downloadable› Product Specific› For 6.2.01:

– http://www.bmc.com/support/techdocs/LPH3S.6.2.01.html› Check all pertinent values based on release› Validation portion runs while products are up› Export is database un-aware

Page 19: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

The Migration Process

› Install New Release (Parallel Install)› Download Tools› Install (in both releases) Migration Toolset› Run Validation› Fix Reported Errors› Export Data from Old Install› Import into New Install› Migrate Datacenter

Page 20: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps - Install

› Step 1 – Install New Release of CONTROL-M/EM

• Install the database & server components on a new environment (an alternative Unix account for example)

• Install the client components on selective desktops. Note that the basic client components (CONTROL-M/Desktop and CONTROL-M/EM GUI) can co-exist with CONTROL-M/EM 6.1.03

• Get familiar with the new release

Page 21: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps – Download/Install

› Step 2 & 3 - http://www.bmc.com/support/techdocs/LPH3S.6.2.01.html– Download, Install & execute the migration tool-kit on the base release

• Run the “install_migration” executable • The CONTROL-M/EM 6.2.0x provides an interactive utility to be executed on all

supported base releases accessible through the “migration” utility located in the “migration_export” directory

• Installation will determine whether the Export (prior version) or Import (6.2.01) utilities and menu items are installed.

Page 22: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps - Validation

› Step 4 – Execute the Validation Report– Executing it will verify the

correctness of the current data with respect to the new release• The report itself is kept in

“migration_export” directory within a file named “ValidityReport.out”

Page 23: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps - Resolve Errors

› Step 5 – Scrub Data– The validation step can be executed over and over again – while the

production is up and running – with no direct effect on it. – The validation step might generate 3 various levels of messages:

• ERROR – Indicates that job processing definitions contain values that are inconsistent with 6.2.01 formats, and that these problematic values might affect job scheduling.

• WARNING– Indicates that job processing definitions contain statements that have no production meaning:– an ON statement with no accompanying DO action– a SHOUT statement with no destination

• INFORMATION– indicates that the data contains values that are no longer relevant or supported in the new version. The data will automatically be corrected during the “import” process; no manual changes are required or accepted

Page 24: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps - Export

› Step 6 - Export – Run the “export” option at the migration menu

• Assure all components besides the database are shut down prior to actual export to verify data consistency

• Export results are kept in: – Unix – migration_export/ECSExportForMigration.tar– Windows – migration_export/data/*

Page 25: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps - Export

› Step 6 (cont)– Migrated and non-migrated information

CONTROL-M/EM 5.0.09Migrated Data Non-Migrated Data

■ Job processing definitions■ Calendar definitions■ Global conditions information (such as prefixes)■ CONTROL-M definitions■ System parameters■ Users list

■ Active jobs, conditions, and resources.These will be updated after a connection to CONTROL-M/Server is established.■ Alerts■ Old nets information■ User authorizations (report can be generated to manually enter authorizations)

EM 6.0.05, 6.1.02, and 6.1.03Migrated Data Non-Migrated Data

■ Job processing definitions■Calendar definitions■ Global conditions information (such as prefixes)■ CONTROL-M definitions■ System parameters■ User authorizations and ViewPoint definitions■ Alerts

■ Active jobs, conditions, and resources.These will be updated after a connection to CONTROL-M/Server is established.■ Old nets information

Page 26: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps - Export

› Step 6 (cont)– Control-M/Server Migrated and non-migrated informationCONTROL-M/ServerMigrated Data Non-Migrated Data

■ Database data:— Job processing definitions— Calendar definitions— Active environment— Security definitions— Configuration parameters■ CONTROL-M/Server configurationfiles:— Configuration parameters■ CONTROL-M/Agent parameters■ System parameters

■ Configuration parameters:— CTM_RT_PORT_NUMBER— CONTROLM_DATABASE— OS_PRM_SOCKET_PORT_NUM— OS_PRM_LOCK_DIR (Unix only)— OS_PRM_HOSTNAME (Unix only)— CTMS_HOSTNAME— CTMS_PORT_NUM— TMP_PATH■ CONTROL-M/Server configuration files:— Process parameters— Comments■ Communication parameters:— ECS port— Minimum server processes (CS)— Maximum server processes (CS)■ Computer/account specific parameters:For example, proclib: Executables path

Page 27: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps - Export Notes

› Security issues when migrating from ENTERPRISE/CS 5.0.09 – The 6.0.0x release introduces a different secured approach for account management

– making automatic migration of users impossible– CONTROL-M/EM 6.2.0x offers a new tool that reports all existing security definitions

to a text file so it is easier to re-define them

Page 28: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

5.0.09 Security Report

› Syntax:

$HOME/migrate_ecs/save_authorizations <user> <password>

– A report called save_authorizations.txt is created in the $HOME/migrate_ecs/data directory

– This report is used after the migration process as a basis for the authorizations that will need to be manually defined in the 6.2.01 environment

Page 29: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps - Import

› Step 7 - Import– Import the data into the new environment and activate it

• Copy the output of the “export” step to the new environment • If using ftp – assure binary transfer mode is used

• Assure all components but the database are shut down • Activate the “migration” utility (can be found at the “migration_import”

directory) and select the “import” option• Initiate the environment and start using the new CONTROL-M/EM

– The import step performs data adjustments that deals with database schema changes and with all warning and information messages that were left after the validation step

Page 30: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps – Migrate Datacenter

Old EMOld EM

Old CTMOld CTM

New EMNew EM

Old CTMOld CTM

Old CTMOld CTM New CTMNew CTM

GatewayGateway GatewayGateway

New EMNew EM

New CTMNew CTM

GatewayGateway

EM EM Migration

MigrateMigrate

DatacenterMigration Datacenter

CTM CTM MigrationMigration

Page 31: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps – Migrate Datacenter

› “migrate_dc” command line

Data Center A Data Center B

Data Center D

General definitions

Extracting data

1

Migrate_dc2

Migratingdata

Storing the data

in the new format

3

Data Center C

EM Database

Data Center C

Page 32: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps – Migrate Datacenter

– With Migrate_DC, it is possible to separate applications that were scheduled on the same server so they are• Migrated to the new release in stages • Physically separated to different CONTROL-M/Servers

– The command line flags supporting these functionality (all optional) are: • Old_dc <name> - specify the source CONTROL-M/Server • New_dc <name> - specify the target CONTROL-M/Server that should be defined in

the system prior the execution of the utility • Table <name> - specify the name of the scheduling table to be migrated both from

one release to another and between CONTROL-M/Server

Note:This functionality is supported only when the CONTROL-M/Servers involved are on the same platform (Unix, MVS etc.) and the lower version involved is of 6.1.0x

Page 33: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps – Migrate Datacenter

› The migrate_dc utility converts CONTROL-M/Server job processing definitions within the CONTROL-M/EM database.

› Compatible with versions:– CONTROL-M/Server for Unix or Microsoft Windows version 2.24.0x– CONTROL-M/Server for Unix version 6.x.xx– CONTROL-M for OS/390 (any version)

– NOTE: There is no rollback procedure from changes made by the migrate_dc utility. Before using the migrate_dc utility, backup all your data.

Page 34: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps – Migrate Datacenter

› What is performed:› from 2.24.0x

– Updates the data center version– Rearranges condition order to comply with the AND/OR logic of version

6.0.xx.– Converts the INTERVAL value.– Initializes the INTERVAL_FROM field.– Generates errors when illegal characters), (, |, and blank are found in IN, OUT,

and DO CONDITION names.– Updates job processing definitions to support the modified WEEKSCAL

parameter.

› CONTROL-M/Server for Unix version 6.1.0x or CONTROL-M for OS/390 – only the values of the INTERVAL parameter are converted

Page 35: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration steps – Migrate Datacenter

› Log on to a Windows computer where the CONTROL-M/EM server components or the Administration facility is installed.

› migrate_dc -u <DBO name> -p <DBO password> -dc <data center>› [-hostname <datacenter_hostname> ] [-port <datacenter_portnumber>]› [-interval_from {S|E}] [-version {610|613|620}]

› Where:

– hostname is the data center host name (maximum length: 255 characters)

– port is the data center port number (range: 1024 – 65533)– interval_from is either S or E.

Page 36: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Migration Complete!!

Old CONTROLOld CONTROL--MMNew CONTROLNew CONTROL--MM

Page 37: Migrating Your CONTROL-M Environment to the Latest  · PDF fileMigrating Your CONTROL-M Environment to the Latest Version Scott Fluegge & Richard Sherman Infospectrum Consulting

Q&A