Well, I have done it:)
Using recovery procedure, created and promoted the new Primary Management server from "migrate export" created on Secondary /Active.
Cleaned-up all of the remnants of the old Primary in SmartConsole and policies.
At the end, old primary was still visible in Management HA, so I've decided to toggle the only live server to "Standby" and to "Active" again, figuring that since it is the only one running, there is enough intelligence in the process not to lock myself out.
Well, it did set the server to Standby, but I am now stuck trying to get it to Active state:
...as my connectivity to this server via SmartConsole is in a Read Only mode now.
2ndryMGMTpromoted> expert
Enter expert password:
Warning! All configurations should be done through clish
You are in expert mode now.
[Expert@2ndryMGMTpromoted:0]# grep Primary $CPDIR//registry/HKLM_registry.data
:Primary ("[4]1")
[Expert@2ndryMGMTpromoted:0]# cpstat mg
Product Name: Check Point Security Management Server
Major version: 6
Minor version: 0
Build number: 994000034
Is started: 1
Active status: standby
Status: OK
Connected clients
----------------------------------------------
|Client type|Administrator|Host|Database lock|
----------------------------------------------
----------------------------------------------
[Expert@2ndryMGMTpromoted:0]#
[Expert@2ndryMGMTpromoted:0]# api status
API Settings:
---------------------
Accessibility: Require ip 127.0.0.1
Automatic Start: Enabled
Processes:
Name State PID More Information
-------------------------------------------------
API Started 20406
CPM Started 9010 Check Point Security Management Server is running and ready
FWM Started 8470
APACHE Started 7946
Port Details:
-------------------
JETTY Internal Port: 50276
APACHE Gaia Port: 4434 (a non-default port)
When running mgmt_cli commands add '--port 4434'
When using web-services, add port 4434 to the URL
Profile:
------------
Machine profile: Medium env resources profile
CPM heap size:
API heap size:
--------------------------------------------
Overall API Status: Started
--------------------------------------------
API readiness test SUCCESSFUL. The server is up and ready to receive connections
Notes:
------------
To collect troubleshooting data, please run 'api status -s <comment>'
[Expert@2ndryMGMTpromoted:0]#
For MDS, there is an option to force Standby to become active:
mgmt_cli make-server-active force true --domain <domain_name> --user <user_name> --password <password>
I cannot find corresponding option for Management server.
Can someone recommend a way out of this situation?
No TAC suggestions please: this is a lab environment.