Script for showing / exporting several informations out of a Check Point Management Server.
Initially made for exporting a Rulebase including things like rule UIDs and possibility to customize cloumns.
Now its also possible to print object informations into command line. Perhaps helpful for i.e. having a quick look at something.
detailed description can be observed at repositories README.md
https://github.com/leinadred/py_cpmultitool
Example showing network objects matching a filter (-f):
python3 cp_multitool.py -f auto_feed -e name,uid,creator show networks
################## Starting ##################
Enter Check Point API Endpoint (Management Server / MaaS Instance):<server>
Enter Check Point API Username:admin
Enter Check Point API Password / API Key:
name uid creator
0 net_auto_feed_goto-114.29.192.0-19 fd280484-63ec-4df6-a012-ba1c50280317 api
1 net_auto_feed_goto-150.253.128.0-17 41a5c6a6-a31b-4cb0-b0f4-fc9b61cc3c4d api
2 net_auto_feed_goto-170.133.128.0-18 b613fe70-31aa-4039-88ad-2bd8636552a9 api
3 net_auto_feed_goto-170.133.156.0-22 c5730cdf-6807-41ee-a498-06b7f6957d23 api
4 net_auto_feed_goto-170.72.0.0-16 e6723d01-846d-44a1-a2a2-bc01fb81b471 api
.. ... ... ...
420 net_auto_feed_zoom-65.39.152.0-24 bbb0b9d3-4997-48a8-ad3c-b74e6920dfd1 api
421 net_auto_feed_zoom-69.174.108.0-22 385237fd-d6f3-4720-ba0e-b06c56f27644 api
422 net_auto_feed_zoom-69.174.57.0-24 0041d6d5-a9c3-4032-b3ed-d888941df8c4 api
423 net_auto_feed_zoom-8.5.128.0-23 dd6201ee-bc2c-434e-a8c9-e2b112dd1fdf api
424 net_auto_feed_zoom-99.79.20.0-25 39adb0a7-1fc4-4563-a800-cd830ce2c127 api
[425 rows x 3 columns]
Example for show packages:
uid name type ... last-modifier creation-time creator
0 7c7e6be7-d26f-4dc9-b298-3737fb586728 __monitor__-restrictive-policy package ... admin 2022-12-01T13:34+0100 WEB_API
Edit:
2024123-1345
Apologies, had to correct some smaller issues recently, so now script should work fine.