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

How to fetch/export Configuration and Rule File?

Hi all,

I want to fetch/export configuration and rule file from Management server, if possible please suggest the Cli command or Restful API commands.

In Sonicwall firewall, i used below command to fetch configuration and rule file:

For Configuration:

  • export current-config exp scp scp://${UserInput:scp_username}:${UserInput:scp_password}@${UserInput:scp_server_address}/${UserInput:file_name}


For Rule:

  • show access-rules

Please share the equivalent commands for Checkpoint device. 

Thanks & Regards,
M.VeeraSelvam.
3 Replies
Kaspars_Zibarts
Employee Employee
Employee

It depends on your actual needs / purpose - why are you trying to execute these.

For backup just use CLI and it will save both mgmt Gaia config and actual rulebase

backup scp ip 1.1.1.1 path / username <username> password <password>

But if you simply want to see Gaia configuration run "show configuration" from CLISH

As for exporting rules to text using API - just search this forum, there are number of tools already written for many options HTML, CSV, etc

really depends what you are trying to achieve

PhoneBoy
Admin
Admin

We have several examples in Developers (Code Hub)

The API/CLI docs are here: Check Point - Management API reference 

The command you're looking for is show access-rulebase which requires, as a parameter, the name/UID of the access layer in question.

You can see all the rulebases/layers using the command show access-layers.

0 Kudos
Richard_Farnham
Participant

off topic: PhoneBoy and even https://sc1.checkpoint.com/documents/R80/APIs/#introduction does point anyone to
"A newer API reference is available ... https://sc1.checkpoint.com/documents/latest/APIs/index.html . But there I ever find only a menu without content - - is this some sort of "running gag"?

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events