- Products
- Learn
- Local User Groups
- Partners
- More
CheckMates Fifth Birthday
Celebrate with Us!
days
hours
minutes
seconds
Join the CHECKMATES Everywhere Competition
Submit your picture to win!
Harmony Mobile 4:
New Version, New Capabilities
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
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
YOU DESERVE THE BEST SECURITY