Check Point R&D API Team

web_api_show_package.sh script shows rulebases and objects as html files

Discussion created by Check Point R&D API Team Expert on Jul 3, 2016
Latest reply on Aug 15, 2017 by Dameon Welch Abernathy

On the first HFA version of R80 you can find in $FWDIR/scripts folder script called web_api_show_package.sh

This script create tgz file that contains html files of policy packages include related objects.

You can run the script without parameters and it will run with defaults, in case you want to change parameters you can see below related optional parameters:

  1. management server -m, in case you want to get the policy from other server and not your server
  2. user name -u, in case you use the -m option)
  3. password -p, in case you use the -m option)
  4. gateway -g, to get the policy package installed on a specific gateway
  5. domain -d, to get package of specific domain
  6. package -k, package to show
  7. template directory -t, template directory that include template files for editing the html files

When script will finish you you will be able to find index.html file inside the tgz file, you should first open this file and navigate from the index.html to all other files.

 

Enjoy.

Outcomes