Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

CP mgmt export all objects script

the_rock
MVP Platinum
MVP Platinum

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

...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




0 Kudos
5 Replies

PhoneBoy
Admin
Admin

What's with the jq error in the output?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
MVP Platinum
MVP Platinum

Hey Phoneboy, will check it later, but it does provide all the outputs that I tested.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

PhoneBoy
Admin
Admin

I was referring to the error in the output you posted as example output of the script.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
MVP Platinum
MVP Platinum

Mind attaching what you got on your end? I tested it again in my lab and did not see any errors.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

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
  

 

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos