Last week my smartcenter server became corrupted (the filesystem) and I could not install any fw policy (checkpoint software could not find some needed inodes).

Fortunately I perform periodically checkpoint configuration backups (using the migrate export utility) this way -> Checkpoint – Schedule management database backup

Before install steps

It is evident but we need a new machine to be used as SMS server. As a best practice, if virtual environment is available, the best solution is to generate a new virtual machine so the recovery can finished as soon as possible.

Checkpoint - Reinstall SMS using configuration backup

If there is no choice the same machine can be used (I completely discourage it). Anyway try to save the data (if still can access the old server) you can miss in another path (scripts, patches…). The backup is supposed to be in another secure path.

Finally, shut off the old server if still on the network (or change the network to test one on the virtual machine to isolate it).

After that, get the Checkpoint ISO (the same version that was installed) and run it on the new machine. So the installation starts…

Install Checkpoint 1 – Install the GAIA OS

The boot menu – Install Gaia

Checkpoint - Reinstall SMS using configuration backup 1
Checkpoint - Reinstall SMS using configuration backup 3
Checkpoint - Reinstall SMS using configuration backup 2

Ok, proceed…

Checkpoint - Reinstall SMS using configuration backup 4

Keyboard selection…

Checkpoint - Reinstall SMS using configuration backup 5

Disk partitioning, leave it by default or customize. After the installation I add a new disk with more space to store the logs so I dont think much about this configuration…

Checkpoint - Reinstall SMS using configuration backup 6

Choose a password to access via SSH or web GUI to the SMS server

Checkpoint - Reinstall SMS using configuration backup 7
💡
Choose the same management IP as the old server!
Checkpoint - Reinstall SMS using configuration backup 27

Ok, proceed if you sure…

Checkpoint - Reinstall SMS using configuration backup 8

So the GAIA OS packages and software will be installed…

Checkpoint - Reinstall SMS using configuration backup 9
Checkpoint - Reinstall SMS using configuration backup 10
Checkpoint - Reinstall SMS using configuration backup 11

After the installation a reboot is required and then we can access to the GAIA web portal…

Install Checkpoint 2 – Install the Checkpoint SW

The first time configuration lets us configure some basic parameters and finally install the Checkpoint software layer

Checkpoint - Reinstall SMS using configuration backup 13

"Continue with Gaia configuration"

Checkpoint - Reinstall SMS using configuration backup 14

Configure the same parameters as the old server. The hostname is specially important to be the same! (like the management IP)

Checkpoint - Reinstall SMS using configuration backup 15

Again configure the same management IP. (This screenshot shows empty fields but they are prefilled with the IP configured on the previous step).

Checkpoint - Reinstall SMS using configuration backup 29

We want to install a "Security Gateway or Security Management"

Checkpoint - Reinstall SMS using configuration backup 17

Date/time. Use ntp if possible (you may configure it later).

Checkpoint - Reinstall SMS using configuration backup 16

Now we select what Checkpoint SW modules will be installed: "Security Management" as "Primary"

Checkpoint - Reinstall SMS using configuration backup 18

username and password to manage the Smarcenter consoles

Checkpoint - Reinstall SMS using configuration backup 30
Checkpoint - Reinstall SMS using configuration backup 20
Checkpoint - Reinstall SMS using configuration backup 21

Filter the access to the Security Management GUI clients

Checkpoint - Reinstall SMS using configuration backup 22
Checkpoint - Reinstall SMS using configuration backup 23

After completed the installation we have a fully functional SMS server but with empty firewall policies, databases, etc…

Import the Checkpoint configuration backup

Connect to the SMS via SSH

Connect via SSH to the SMS server, establish an expert password and enter expert mode

SMS> set expert-password
Enter new expert password:
Enter new expert password (again):
SMS> expert
Enter expert password:

Warning! All configuration should be done through clish
You are in expert mode now.

[Expert@SMS:0]#

Copy the backup file

Copy the backup of the Checkpoint configuration to the SMS server (via SCP for example if the backup is located on another Linux machine)

[Expert@SMS:0]# scp root@MYLINUXSERVER:/var/backups/EXPORTDB_2016-04-18.tgz .
root@MYLINUXSERVER's password:
EXPORTDB_2016-04-18.tgz					4%   19MB   9.3MB/s   00:46 ETA

Import the backup

This will pause the cp services, import all the configuration policies, databases, objects… and start the services

[Expert@SMS:0]# $FWDIR/bin/upgrade_tools/migrate import EXPORTDB_2016-04-18.tgz

Extracting the database...
The import operation will stop all Check Point services (cpstop).
Do you want to continue? (y/n) [n]? y
cpwd_admin:
Process DASERVICE terminated
cpwd_admin:
Process SMARTLOG_SERVER isn't monitored by cpWatchDog. Stop request aborts
UEPM: Endpoint Security Management isn't activated
Management Portal: Stopping CPWMD
cpwd_admin:
Process CPWMD terminated
Management Portal: Stopping CPHTTPD
cpwd_admin:
Process CPHTTPD terminated
evstop: dbsync stopped
evstop: Stopping product - SmartEvent Server
evstop: Stopping product - SmartEvent Correlation Unit
Check Point SmartEvent Correlation Unit stopped
Check Point SmartEvent Server stopped
Stopping SmartReporter...
Stopping the SmartReporter Server.
Stopping the SmartReporter Log Consolidator.
Stopping SmartReporter Database.
Note:   Database shutdown takes a few minutes. rmdstart will fail while
        shutdown is in progress.
SmartView Monitor: Management stopped
VPN-1/FW-1 stopped
Multi portal stopped
 Local host is not a FireWall-1 module
SVN Foundation: cpd stopped
SVN Foundation: cpWatchDog stopped
SVN Foundation: Stopping PostgreSQL Database
SVN Foundation stopped
Importing files...

The import operation completed successfully.
Do you wish to start Check Point services? (y/n) [y]? y

Post install steps

Add lost rules and policies

Maybe you have lost changes made between the backup and the crash. If possible (documented, emails…) add those changes

Configure lost server parameters

For example, I had to configure some OS level parameters to make the DHCP Relay work. Fortunately, I documented that change.

Reconfigure scripts and scheduled tasks

Dont forget to reconfigure scheduled tasks like backups, logs rotation, ntp time synchronization.