- Products
- Learn
- Local User Groups
- Partners
- More
Policy Insights and Policy Auditor in Action
19 November @ 5pm CET / 11am ET
Access Control and Threat Prevention Best Practices
Watch HereOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hi All,
I am looking for the best way to export all objects and policies from an R80 management server so that it can be imported into another R80 management server. I've been looking at the management API reference guide which has helped but I was wondering if anyone is aware of a script that will cover both objects and policies?
Thanks
Python tool for exporting/importing a policy packa...
Thank you, this looks like what I need. I'm having some trouble installing the Python SDK as the commands 'pip' and 'git' do not work on the management server. Have you installed this before? If yes, would you mind sharing how you went about this?
https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-Python-SDK/m-p/96533#M5148
Thank you, I have got the scripts installed now. I did this by unzipping the files on my PC and then using SFTP to place the files in the /home/admin/ directory.
When I run the script I am being asked to enter the Policy Package name, I have entered the correct policy name however I get the below error. Can anybody see what I am doing wrong?
"[Expert@fwmgmt02:0]# /opt/CPsuite-R81/fw1/Python/bin/python2.7 /home/admin/ExportImportPolicyPackage/import_export_package.py
Welcome to the Policy Package Import/Export Tool.
What would you like to do?
1. Import a package
2. Export a package
99. Exit
2
Please enter a Policy Package name to export:
West_Policy
Traceback (most recent call last):
File "/home/admin/ExportImportPolicyPackage/import_export_package.py", line 26, in <module>
args = process_arguments(arg_parser)
File "/home/admin/ExportImportPolicyPackage/utils.py", line 98, in process_arguments
args = Menu(args).self_args
File "/home/admin/ExportImportPolicyPackage/menu.py", line 21, in __init__
self.build()
File "/home/admin/ExportImportPolicyPackage/menu.py", line 146, in build
self.display()
File "/home/admin/ExportImportPolicyPackage/menu.py", line 30, in display
self.handle_input()
File "/home/admin/ExportImportPolicyPackage/menu.py", line 269, in handle_input
self.build()
File "/home/admin/ExportImportPolicyPackage/menu.py", line 146, in build
self.display()
File "/home/admin/ExportImportPolicyPackage/menu.py", line 30, in display
self.handle_input()
File "/home/admin/ExportImportPolicyPackage/menu.py", line 167, in handle_input
self.self_args.name = input()
File "<string>", line 1, in <module>
NameError: name 'West_Policy' is not defined"
The error is there at the end: name 'West_Policy' is not defined.
Which probably means the real name of the policy package is different.
Use mgmt_cli -r true show packages to make sure you have the precise name of the package correct.
Try different Python version (Python3 or Python 3.7). Python 3 worked for me.
I actually had same issue even after following the instructions. Will attempt again tomorrow.
Personally, I always use migrate export for that and it exports everything. objects and policies.
I realise I didn't mention that I'm trying to import the objects into an existing active management server, migrate export would wipe the current database & replace it. I'm trying to merge the databases essentially.
K, I see, so then my suggestion would not work, apologies. You could also consider below:
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 25 | |
| 12 | |
| 10 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
Wed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchWed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasWed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY