Guys -
We all encounter situations wherein we need to configure bulk policy/access rules in CheckPoint MDSM.
Although Checkpoint MGMT provides a way to configure rules in Bulk using batch-mode or API, we still need to convert input CSV into a format acceptable by the API. Your input CSV may also have multiple network objects/groups or multiple services for each access rule.
This script converts columns into multiple parts wherever it finds multiple objects per cell in the input data/CSV/excel.
Steps are covered on the Github Page.
https://github.com/rishrapsody/CheckPoint-Mgmt-Policy-Convertor
Input:
Input Data
Output:
Output
Reference API:
Mgmt REST API: https://sc1.checkpoint.com/documents/latest/APIs/#web/add-access-rule~v1.8%20
MGMT_CLI Batch Cmd: https://supportcenter.checkpoint.com/supportcenter/portal?action=portlets.SearchResultMainAction&eve...