- Products
- Learn
- Local User Groups
- Partners
- More
Check Point WAF TechTalk:
Introduction and New Features
AI Security Masters E5:
Powering Prevention: The AI Driving Check Point’s ThreatCloud
Ink Dragon: A Major Nation-State Campaign
Watch HereAI Security Masters E4:
Introducing Cyata, Securing the Agentic AI Era
CheckMates Go:
CheckMates Fest
This script runs all mgmt_cli commands and provides bunch of files with pretty much everything thats on your mgmt server.
My lab example:
[Expert@CP-MANAGEMENT:0]# ./cp_mgmt_export_all.sh
[2026-01-21 18:21:56] Output directory: /var/log/cp_mgmt_export_20260121_182156
[2026-01-21 18:21:56] PAGED EXPORT: objects (arrayKey=objects) limit=500
[2026-01-21 18:21:56] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 0
[2026-01-21 18:22:07] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 500
[2026-01-21 18:22:18] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 1000
[2026-01-21 18:22:28] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 1500
[2026-01-21 18:22:36] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 2000
[2026-01-21 18:22:46] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 2500
[2026-01-21 18:22:58] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 3000
[2026-01-21 18:23:08] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 3500
[2026-01-21 18:23:19] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 4000
[2026-01-21 18:23:28] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 4500
[2026-01-21 18:23:37] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 5000
[2026-01-21 18:23:46] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 5500
[2026-01-21 18:23:55] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 6000
[2026-01-21 18:24:04] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 6500
[2026-01-21 18:24:13] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 7000
[2026-01-21 18:24:22] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 7500
[2026-01-21 18:24:31] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 8000
[2026-01-21 18:24:40] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 8500
[2026-01-21 18:24:49] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 9000
[2026-01-21 18:24:59] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 9500
[2026-01-21 18:25:07] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 10000
[2026-01-21 18:25:16] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 10500
[2026-01-21 18:25:25] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 11000
[2026-01-21 18:25:36] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 11500
[2026-01-21 18:25:47] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 12000
[2026-01-21 18:25:56] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 12500
error: syntax error, unexpected '[', expecting FORMAT or QQSTRING_START
total: (.[-1].total // ( [.[].[$k][]?] | length )), error: syntax error, unexpected ']'
total: (.[-1].total // ( [.[].[$k][]?] | length )), 2 compile errors
[2026-01-21 18:26:03] DONE: /var/log/cp_mgmt_export_20260121_182156/objects.all.json
[2026-01-21 18:26:03] PAGED EXPORT: hosts (arrayKey=objects) limit=500
[2026-01-21 18:26:03] RUN: mgmt_cli -r true --format json show hosts details-level full limit 500 offset 0
[2026-01-21 18:26:03] DONE: /var/log/cp_mgmt_export_20260121_182156/hosts.all.json
[2026-01-21 18:26:03] PAGED EXPORT: networks (arrayKey=objects) limit=500
[2026-01-21 18:26:03] RUN: mgmt_cli -r true --format json show networks details-level full limit 500 offset 0
[2026-01-21 18:26:04] DONE: /var/log/cp_mgmt_export_20260121_182156/networks.all.json
[2026-01-21 18:26:04] PAGED EXPORT: groups (arrayKey=objects) limit=500
[2026-01-21 18:26:04] RUN: mgmt_cli -r true --format json show groups details-level full limit 500 offset 0
[2026-01-21 18:26:05] DONE: /var/log/cp_mgmt_export_20260121_182156/groups.all.json
[2026-01-21 18:26:05] PAGED EXPORT: address_ranges (arrayKey=objects) limit=500
[2026-01-21 18:26:05] RUN: mgmt_cli -r true --format json show address-ranges details-level full limit 500 offset 0
[2026-01-21 18:26:06] DONE: /var/log/cp_mgmt_export_20260121_182156/address_ranges.all.json
[2026-01-21 18:26:06] PAGED EXPORT: services_tcp (arrayKey=objects) limit=500
[2026-01-21 18:26:06] RUN: mgmt_cli -r true --format json show services-tcp details-level full limit 500 offset 0
[2026-01-21 18:26:07] DONE: /var/log/cp_mgmt_export_20260121_182156/services_tcp.all.json
[2026-01-21 18:26:07] PAGED EXPORT: services_udp (arrayKey=objects) limit=500
[2026-01-21 18:26:07] RUN: mgmt_cli -r true --format json show services-udp details-level full limit 500 offset 0
[2026-01-21 18:26:08] DONE: /var/log/cp_mgmt_export_20260121_182156/services_udp.all.json
[2026-01-21 18:26:08] PAGED EXPORT: services_sctp (arrayKey=objects) limit=500
[2026-01-21 18:26:08] RUN: mgmt_cli -r true --format json show services-sctp details-level full limit 500 offset 0
[2026-01-21 18:26:09] DONE: /var/log/cp_mgmt_export_20260121_182156/services_sctp.all.json
[2026-01-21 18:26:09] PAGED EXPORT: services_icmp (arrayKey=objects) limit=500
[2026-01-21 18:26:09] RUN: mgmt_cli -r true --format json show services-icmp details-level full limit 500 offset 0
[2026-01-21 18:26:10] DONE: /var/log/cp_mgmt_export_20260121_182156/services_icmp.all.json
[2026-01-21 18:26:10] PAGED EXPORT: services_other (arrayKey=objects) limit=500
[2026-01-21 18:26:10] RUN: mgmt_cli -r true --format json show services-other details-level full limit 500 offset 0
[2026-01-21 18:26:11] DONE: /var/log/cp_mgmt_export_20260121_182156/services_other.all.json
[2026-01-21 18:26:11] PAGED EXPORT: services_rpc (arrayKey=objects) limit=500
[2026-01-21 18:26:11] RUN: mgmt_cli -r true --format json show services-rpc details-level full limit 500 offset 0
[2026-01-21 18:26:11] DONE: /var/log/cp_mgmt_export_20260121_182156/services_rpc.all.json
[2026-01-21 18:26:11] PAGED EXPORT: services_dce_rpc (arrayKey=objects) limit=500
[2026-01-21 18:26:11] RUN: mgmt_cli -r true --format json show services-dce-rpc details-level full limit 500 offset 0
[2026-01-21 18:26:12] DONE: /var/log/cp_mgmt_export_20260121_182156/services_dce_rpc.all.json
[2026-01-21 18:26:12] PAGED EXPORT: service_groups (arrayKey=objects) limit=500
[2026-01-21 18:26:12] RUN: mgmt_cli -r true --format json show service-groups details-level full limit 500 offset 0
[2026-01-21 18:26:13] DONE: /var/log/cp_mgmt_export_20260121_182156/service_groups.all.json
[2026-01-21 18:26:13] PAGED EXPORT: gateways_and_servers (arrayKey=objects) limit=500
[2026-01-21 18:26:13] RUN: mgmt_cli -r true --format json show gateways-and-servers details-level full limit 500 offset 0
[2026-01-21 18:26:14] DONE: /var/log/cp_mgmt_export_20260121_182156/gateways_and_servers.all.json
[2026-01-21 18:26:14] RUN: mgmt_cli -r true --format json show access-layers details-level full
[2026-01-21 18:26:15] RUN: mgmt_cli -r true --format json show packages details-level full
[2026-01-21 18:26:18] RUN: mgmt_cli -r true --format json show threat-layers details-level full
[2026-01-21 18:26:19] EXPORT COMPLETE.
[2026-01-21 18:26:19] JSON files are in: /var/log/cp_mgmt_export_20260121_182156
[2026-01-21 18:26:19] Errors (if any): /var/log/cp_mgmt_export_20260121_182156/export.err
[Expert@CP-MANAGEMENT:0]#
[Expert@CP-MANAGEMENT:0]# cd /var/log/cp_mgmt_export_20260121_182156
[Expert@CP-MANAGEMENT:0]# ls
access_layers.json objects.offset_12000.json packages.json
address_ranges.all.json objects.offset_12500.json service_groups.all.json
address_ranges.offset_0.json objects.offset_1500.json service_groups.offset_0.json
export.err objects.offset_2000.json services_dce_rpc.all.json
export.log objects.offset_2500.json services_dce_rpc.offset_0.json
gateways_and_servers.all.json objects.offset_3000.json services_icmp.all.json
gateways_and_servers.offset_0.json objects.offset_3500.json services_icmp.offset_0.json
groups.all.json objects.offset_4000.json services_other.all.json
groups.offset_0.json objects.offset_4500.json services_other.offset_0.json
hosts.all.json objects.offset_500.json services_rpc.all.json
hosts.offset_0.json objects.offset_5000.json services_rpc.offset_0.json
networks.all.json objects.offset_5500.json services_sctp.all.json
networks.offset_0.json objects.offset_6000.json services_sctp.offset_0.json
objects.all.json objects.offset_6500.json services_tcp.all.json
objects.offset_0.json objects.offset_7000.json services_tcp.offset_0.json
objects.offset_1000.json objects.offset_7500.json services_udp.all.json
objects.offset_10000.json objects.offset_8000.json services_udp.offset_0.json
objects.offset_10500.json objects.offset_8500.json threat_layers.json
objects.offset_11000.json objects.offset_9000.json
objects.offset_11500.json objects.offset_9500.json
This script runs all mgmt_cli commands and provides bunch of files with pretty much everything thats on your mgmt server.
My lab example:
[Expert@CP-MANAGEMENT:0]# ./cp_mgmt_export_all.sh
[2026-01-21 18:21:56] Output directory: /var/log/cp_mgmt_export_20260121_182156
[2026-01-21 18:21:56] PAGED EXPORT: objects (arrayKey=objects) limit=500
[2026-01-21 18:21:56] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 0
[2026-01-21 18:22:07] RUN: mgmt_cli
Mind attaching what you got on your end? I tested it again in my lab and did not see any errors.
I guess Phoneboy is referring to this part in your output above.
[2026-01-21 18:25:56] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 12500
error: syntax error, unexpected '[', expecting FORMAT or QQSTRING_START
total: (.[-1].total // ( [.[].[$k][]?] | length )), error: syntax error, unexpected ']'
total: (.[-1].total // ( [.[].[$k][]?] | length )), 2 compile errors
I guess Phoneboy is referring to this part in your output above.
[2026-01-21 18:25:56] RUN: mgmt_cli -r true --format json show objects details-level full limit 500 offset 12500 error: syntax error, unexpected '[', expecting FORMAT or QQSTRING_START total: (.[-1].total // ( [.[].[$k][]?] | length )), error: syntax error, unexpected ']' total: (.[-1].total // ( [.[].[$k][]?] | length )), 2 compile errors
;
Weird...when I ran it last night worked fine. I will try it again today and see. If it gives this, will work to fix it. Tx for the feedback, guys. Appreciated.
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY