> Source: [sk182144](https://support.checkpoint.com/results/sk/sk182144)

# sk182144 - Management Server / Log Server verification before upgrade in versions R81 and higher

| Property | Value |
|----------|-------|
| Solution ID | sk182144 |
| Date Created | 2024-03-26 |
| Last Modified | 2025-01-16 |
| Technical Level | General |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R81.10 (EOS), R81 (EOS) |
| OS | Gaia |

## Solution

### (1) Introduction

Before upgrading a Management Server / Log Server, we recommend running the Pre-Export Verification on all Management Servers and Log Servers in your environment.

This article describes new parameters that were added to the Pre-Export Verification feature:

|-------------------------------------------|----------------------------------------------------------------------------------|
| Command                                   | New Parameters                                                                   |
| CLI command "`migrate_server`"            | * `--verify_all_servers` * `--verify_local_only` * `-skip_tools_check_on_remote` |
| Management API call "`export-management`" | * `verify-all-servers`                                                           |

### (2) The CLI command "`migrate_server`"

**Availability:**

Support for the new parameters that were added to the Pre-Export Verification feature is available for these upgrades:

* **from** R81 and higher.

* **to** R81.20 ^(\*)^ and higher.

  ^(\*)^ Upgrade to R81.20 requires Upgrade Tools Build Number 997000781 and higher (see [sk135172](https://support.checkpoint.com/results/sk/sk135172)).

**Syntax:**

* To see the built-in help:

  |------------------------------------------------------------------------------|
  | `[Expert@MGMT:0]# cd $FWDIR/scripts/` `[Expert@MGMT:0]# ./migrate_server -h` |

* To run the Pre-Upgrade Verifier and verify the configuration for all Management Servers and Log Servers in your environment:

  |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `[Expert@MGMT:0]# cd $FWDIR/scripts/` `[Expert@MGMT:0]# ./migrate_server `verify` -v <VERSION> `--verify_all_servers` [`-skip_tools_check_on_remote`] [-skip_upgrade_tools_check]` |

* To run the Pre-Upgrade Verifier and verify the configuration only for the current server:

  |---------------------------------------------------------------------------------------------------------------------------------------------------|
  | `[Expert@MGMT:0]# cd $FWDIR/scripts/` `[Expert@MGMT:0]# ./migrate_server `verify` -v <VERSION> `--verify_local_only` [-skip_upgrade_tools_check]` |

* To export the management database on the current server and verify the configuration for all Management Servers and Log Servers in your environment:

  |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `[Expert@MGMT:0]# cd $FWDIR/scripts/` `[Expert@MGMT:0]# ./migrate_server `export` -v <VERSION> `--verify_all_servers` [`-skip_tools_check_on_remote`] [-skip_upgrade_tools_check] [-l | -x] [--include-uepm-msi-files] [--exclude-uepm-postgres-db] [--ignore_warnings] /<Full Path>/<Name of Exported File>` |

* To export the management database on the current server and verify the configuration only for the current server:

  |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `[Expert@MGMT:0]# cd $FWDIR/scripts/` `[Expert@MGMT:0]# ./migrate_server `export` -v <VERSION> `--verify_local_only` [-l | -x] [--include-uepm-msi-files] [--exclude-uepm-postgres-db] [--ignore_warnings] /<Full Path>/<Name of Exported File>` |

**Parameters:**

For other CLI parameters, refer to the [Command Line Interface (CLI) Reference Guide](https://support.checkpoint.com/product/184#f-commonsource=C.%20Documentation) for your version \> Chapter "Security Management Server Commands" \> Section "migrate_server".

|-------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| CLI Parameter                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `-h`                          | Shows the built-in help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `--verify_all_servers`        | Runs the Pre-Export Verifier for all Management Servers and Log Servers in your environment. **Notes:** 1. This parameter is valid only for the `"migrate_server verify`" and "`migrate_server export`" operations. 2. This parameter runs the Pre-Export Verification for remote servers only with the versions R81 and higher. 3. List of servers, on which you can run the "`migrate_server verify -v <VERSION> --verify_all_servers`" command and the "`migrate_server export -v <VERSION> --verify_all_servers`" command: * Security Management Server (Primary and Secondary) * Multi-Domain Security Management Server (Primary and Secondary) * Endpoint Security Management Server (Primary and Secondary) * Endpoint Security Policy Server (Primary and Secondary) * Multi-Domain Log Server 4. List of remote servers, to which the "`migrate_server verify -v <VERSION> --verify_all_servers`" command and the "`migrate_server export -v <VERSION> --verify_all_servers`" command can connect from the current server: * Security Management Servers (Primary and Secondary) * Multi-Domain Security Management Servers (Primary and Secondary) * Endpoint Security Management Server (Primary and Secondary) * Endpoint Security Policy Server (Primary and Secondary) * Multi-Domain Log Servers * Dedicated Log Servers * Dedicated SmartEvent Servers * Security Management Servers configured as a Backup of a Domain Management Server Note - Servers that are configured on a specific Domain on a Multi-Domain Security Management Server will be verified only if there is a Domain Server of that Domain on the current Multi-Domain Security Management Server. |
| `--verify_local_only`         | Runs the Pre-Export Verifier only for the current Management Server / Log Server, on which you run this command. **Note** - This parameter is valid only for the `"migrate_server verify`" and "`migrate_server export`" operations.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `-skip_tools_check_on_remote` | The remote Management Servers / Log Servers do not try to connect to Check Point Cloud to check for a more recent version of the Upgrade Tools. **Notes:** * This parameter is valid only for the `"migrate_server verify`" and "`migrate_server export`" operations. * This parameter is valid only when you specify the parameter "`--verify_all_servers`".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `-skip_upgrade_tools_check`   | The current Management Server / Log Server, on which you run this command, does not try to connect to Check Point Cloud to check for a more recent version of the Upgrade Tools. **Best Practice** - Use this parameter on the Management Server / Log Server that is **not** connected to the Internet.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

**Default Behavior:**

By default, if you do not explicitly specify the parameter "`--verify_all_servers`" or the parameter "`--verify_local_only`" in the CLI command "`migrate_server`":

* Only on Primary Management Servers, the command "`migrate_server verify`" automatically runs with the parameter "`--verify_all_servers`".

* On all servers except Primary Management Servers, the command "`migrate_server verify`" automatically runs with the parameter "`--verify_local_only`".

* On all servers without exception, the command "`migrate_server export`" automatically runs with the parameter "`--verify_local_only`".

### (3) The Management API call "`export-management`"

**Availability:**

Support for the new parameters that were added to the Pre-Export Verification API call is available for these upgrades:

* **from** R82 and higher.

* **to** R82 and higher.

**Syntax:**

Just for convenience, the syntax below is based on the "`mgmt_cli`" command.

* To export the management database on the current server and verify the configuration for all Management Servers and Log Servers in your environment:

  |------------------------------------------------------------------------------------------------------------------|
  | `mgmt_cli export-management ... `verify-all-servers "true"` [pre-export-verification-only "{true | false}"] ...` |

* To export the management database on the current server and verify the configuration only for the current server:

  |-------------------------------------------------------------------------------------------------------------------|
  | `mgmt_cli export-management ... `verify-all-servers "false"` [pre-export-verification-only "{true | false}"] ...` |

**Parameters:**

|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| API Parameter                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `verify-all-servers`           | If its value is "`false`", then the API command runs the Pre-Export Verifier only on the current all Management Server. If its value is "`true`", then the API command runs the Pre-Export Verifier for all Management Servers and Log Servers in your environment. **Notes:** 1. This parameter is valid only when you export or verify the entire Security Management Server or the entire Multi Domain Security Management Server (this parameter is not valid for a backup or an export of a specific Domain). 2. List of servers, on which you can run the API call "`mgmt_cli export-management verify-all-servers "true"`": * Security Management Server (Primary and Secondary) * Multi-Domain Security Management Server (Primary and Secondary) * Endpoint Security Management Server (Primary and Secondary) * Endpoint Security Policy Server (Primary and Secondary) * Multi-Domain Log Server 3. List of remote servers, to which the current server can connect when you run the API call "`mgmt_cli export-management verify-all-servers "true"`": * Security Management Servers (Primary and Secondary) * Multi-Domain Security Management Servers (Primary and Secondary) * Endpoint Security Management Server (Primary and Secondary) * Endpoint Security Policy Server (Primary and Secondary) * Multi-Domain Log Servers * Dedicated Log Servers * Dedicated SmartEvent Servers * Security Management Servers configured as a Backup of a Domain Management Server Note - Servers that are configured on a specific Domain on a Multi-Domain Security Management Server will be verified only if there is a Domain Server of that Domain on the current Multi-Domain Security Management Server. |
| `pre-export-verification-only` | If its value is "`true`", then the API command runs the Pre-Export verifications (instead of the full export). If its value is "`false`", then the API command runs the full export (instead of Pre-Export verifications).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

**Default behavior of the API call "mgmt_cli export-management":**

By default, if you do not explicitly specify the parameter "`verify-all-servers`" in the API call "`mgmt_cli export-management`", then the API call automatically configures the valid value:

|--------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|
| Server                                           | Parameters                                                                                                                              | Final Syntax                                                                                 |
| Only on Primary Management Servers               | When you explicitly configure: `pre-export-verification-only "true"`, the API call implicitly configures: `verify-all-servers "true"`   | `mgmt_cli export-management verify-all-servers "true" pre-export-verification-only "true"`   |
| On all servers except Primary Management Servers | When you explicitly configure: `pre-export-verification-only "true"`, the API call implicitly configures: `verify-all-servers "false"`  | `mgmt_cli export-management verify-all-servers "false" pre-export-verification-only "true"`  |
| On all servers without exception                 | When you explicitly configure: `pre-export-verification-only "false"`, the API call implicitly configures: `verify-all-servers "false"` | `mgmt_cli export-management verify-all-servers "false" pre-export-verification-only "false"` |

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
