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

R80.x Policy to CSV file?

Is there a management CLI tool or script to export the policy and objekts to a CSV file?

 

I have only found something to objects here in the form but not to policys.

 

Tags (1)
0 Kudos
4 Replies
Employee+
Employee+

Re: R80.x Policy to CSV file?

You can do both from the SmartConsole - Policy from the Rulebase and Objects from the Object Explorer

There are also useful scripts here:

https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/CLI-API-Example-for-exporting-imp...

Tal

0 Kudos

Re: R80.x Policy to CSV file?

In sk120342: Exporting Check Point configuration from Security Management Server into readable format u...we read:

Exporting a rulebase using CSV format is available from the GUI:
Open SmartConsole and view the rulebase you wish to export. From the rulebase's toolbar select: 'Action > Export'.

0 Kudos
Highlighted

Re: R80.x Policy to CSV file?

Hi @G_W_Albrecht 

thx.

I know about exporting from the Smart Console. But I need a script that does that and your link is a good starting point.

 

Tags (1)
0 Kudos
Maik
Silver

Re: R80.x Policy to CSV file?

Hey Heiko,

 

Take a look at my thread regarding the exact same thing. The script which is linked there is quite old and does not use the Check Point Management API Python modules but instead relies directly on REST calls. It also mentions that it has been tested for R80 and R80.10 only - however it works for later versions as well. The script also has some issues which I have corrected and posted into the thread that I linked in the first place. If you are familiar with python basics it should be quite easy for you to get it up and running. If you need some advice feel free to ask. I'am currently using it within a R80.20 environment.

 

Regards,

Maik

0 Kudos