- Products
- Learn
- Local User Groups
- Partners
-
More
Celebrate the New Year
With CheckMates!
Value of Security
Vendor Self-Awareness
Join Us for CPX 360
23-24 February 2021
Important certificate update to CloudGuard Controller, CME,
and Azure HA Security Gateways
How to Remediate Endpoint & VPN
Issues (in versions E81.10 or earlier)
Mobile Security
Buyer's Guide Out Now
Important! R80 and R80.10
End Of Support around the corner (May 2021)
Hello. Is there a way to export rulebase easily anywhere on management server so that other people could read it?
For r80 right now I'm using command line (F9) from SmartConsole. For example:
show access-rulebase name "Lan-policy Security" details-level "standard" use-object-dictionary true filter "(dec1-17)" --format text
It's nice. But it would be very nice if there were options to:
1. change uid automatically (for example for network objects)
2. print out only necessary fields like source, destination, service, time, comments
Is it possible without knowing programming languages?
Thank you. I have tried this script. Nevertheless I can't filter out anything using SmartConsole syntax, so even if I copy the output to Excel, I can't use entities like ip/mask.
which one of the tools are you referring to?
I used this script:
$MDS_FWDIR/scripts/web_api_show_package.sh -k <PACKAGE NAME> -d <DOMAIN NAME>
You can output the results into a JSON file format and then use a popular and easy JQ to filter any data.
There are plenty of JQ examples in this community. For example -
https://community.checkpoint.com/message/1151
Robert.
Thanks for your response. But....popular? maybe. Easy? unlikely. I spent 3 hours reading documentation.
Filter .rulebase[].rulebase[0:][].comments got me necessary information partly. But I also needed the source, the destination and the service for those rules. That's crazy.
I'm sorry to hear this.
You need some scripting abilities to parse API commands output.
Did you finally manage to get all info you needed?
Here is an additional link that may be useful for you:
About CheckMates
Learn Check Point
Advanced Learning
WELCOME TO THE FUTURE OF CYBER SECURITY