Installation

Install the package by using a package manager such as pip.

pip install fp-ngfw-smc-python

Or optionally clone: smc-python:

python setup.py install

Dependencies on this library are:

  • requests (REST calls)

  • websocket-client (websocket calls for smc-monitoring)

If installation is required on a non-internet facing machine, you will have to download smc-python and dependencies manually and install by running python setup install.

Once the smc-python package has been installed, you can import the main packages into a python script:

from smc import session
from smc.administration.system import System
from smc.core.engines import Layer3Firewall
from smc.policy.layer3 import FirewallPolicy

To remove the package, simply run:

pip uninstall fp-NGFW-SMC-python

For more information on next steps, please see creating the session