I hope you are very well.
I have a doubt, of a FW or some Firewalls Checkpoints that you have to obtain the Package of policies, which have a SMART1 console Appliance and two FW in cluster.
Environment: SMART-1=====FW01--FW02
When entering in expert mode, in the SMART1:
1.- Is the Linux command cp valid ? is it copy or some other command ? to copy and move a file from one directory to another ? ?
2.- To get the Package, do you get it from the SMART1 CLI or from the firewalls ?
3.- For the routes netstat -nr > routes.txt, is this taken from the Firewalls or from the SMART1 ? this command executes from expert mode or Gaia Shell?
4.- If I connect for example with WinSCP to the Smart-1 or one of the Firewalls, can I remove, copy, move files without problems ?
5.- When I run these scripts, the package file that it generates, in which path is it placed ? in the same directory where I run it ?
6.- To update the version of I have to put the new version web_api_show_package-jar-with-dependencies.jar in the path: MDS_FWDIR/api/samples/lib/ then execute: only $MDS_FWDIR/scripts/web_api_show_package.sh or I need execute java -jar web_api_show_package-jar-with-dependencies.jar -v and then java -jar web_api_show_package-jar-with-dependencies.jar -k <PACKAGE NAME> -d <DOMAIN NAME>
Scripts:The Check Point Management Server also has a wrapper script so the tool can be run as $MDS_FWDIR/scripts/web_api_show_package.sh which in turn executes java -jar $MDS_FWDIR/api/samples/lib/web_api_show_package-jar-with-dependencies.jar
-Export Package ( Exporting Configuration )
https://github.com/CheckPointSW/ShowPolicyPackage
https://github.com/CheckPointSW/ShowPolicyPackage#examples
https://community.checkpoint.com/t5/API-CLI-Discussion/Enabling-web-api/td-p/32641
Thanks for your time, support, collaboration, and good vibes.
Best regards