CPM - PMTerminal to TPC Migration Best Practices
Objective
PMTerminal reached End of Support since 31st December 2021. This article lists the best practices for a successful migration to its replacement : Terminal Plugin Controller (TPC).
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Procedure
To migrate successfully from PMTerminal to TPC, it is recommended to follow carefully a staged plan to prepare, test and validate plugins before moving into production.
The plan is composed of 5 stages:
- Phase 1 : read the different resources.
- Phase 2 : backup the existing data from the CPM.
- Phase 3 : map how many plugins will have to be migrated.
- Phase 4 : test and validate the plugins with TPC in a DEV environment.
- Phase 5 : rollout the changes in production by batches and monitor.
Phase 1
During this stage, consult the following official resources:
- PMTerminal Migration Self-Paced Free Training : PMTerminal Migration – CyberArk
- CyberArk Community Article : How to switch from PMTerminal to TPC
- Steps to Migrate : Migrate from PMTerminal to TPC
- Developing plugins with TPC : Terminal Plugin Controller
- Terminal Plugin Syntax Checker : CyberArk Marketplace
- TPC Download Link : CyberArk Marketplace
- PMTerminal to TPC Migration Tool Download Link : CyberArk Marketplace
- PMTerminal to TPC Migration Tool Requirements : Migrate platforms using the Platform Migration tool
- New CPM PluginManagerUser : Local Windows service users & How local Windows user permissions may affect plugins
- Changes in LTS versions : 10.10.4 / 11.5.9 and 12.2.
Phase 2
During this stage, backup the existing and prepare the environment:
- Make a backup of the Bin folder on the CPMs.
- Make an export of the current platforms :
This script can be used : epv-api-scripts/Export-Import-Platform.ps1 at main · cyberark/epv-api-scripts · GitHub
- Deploy TPC on CPMs :
.NET 4.8 is required : Microsoft .NET Framework 4.8 offline installer for Windows
Download the latest TPC version : CyberArk Marketplace (compatible with CyberArk CPM 9.7 and above).
Phase 3
During this stage, list the plugins to migrate:
-
Use the PMTerminal to TPC tool for this task. The tool will generate a .csv file with the list :
-
In the csv, verify how many plugins must be migrated. Are they community, trusted or certified ?
Important: only the certified Mainframe (WC3270) plugins will still be using PMTerminal.exe.
Prerequisites for the PMTerminal to TPC Migration tool:
-
.NET 4.8.
-
OS : Windows 2019, 2016, 2012 R2 or Windows 10.
-
The machine can communicate with the Vault on the port 1858.
-
A Vault Admin user & password is available.
Question: What about trusted or community plugins ?
Answer: Customers / Partners need to take care of them. Certified plugins have been already validated by CyberArk.
Phase 4
During this stage, test and validate the plugins in a DEV environment.
-
Validate the plugin with Terminal Syntax Checker (requires .NET 4.8). Documentation : Analyze the plugin code.
-
Test Verify / Change and Reconcile operations.
-
If one fails, review the known differences between PMTerminal and TPC.
-
Check the SendHuman part (now available in the PVWA and not in the Process.ini) : https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/Plug-in-Terminal-Plugin-Controller.htm#Impersonatehumanspeed
-
If some issues are faced with the migration: Migrate plugins from PMTerminal to TPC
-
Use a RegEx Tester: .NET Regex Tester - Regex Storm
Phase 5
During this stage, perform the operation in PRODUCTION.
-
The step in production can be done using PMTerminal to TPC Migration Tool or manually on the platform itself (ExeName Parameter).
-
If some platforms have to remain with PMTerminal (should be only a short term plan, doing so will use a higher privileged user on the CPM and lower down the security): Secure platforms that remain with PMTerminal