Home / Security / Forcepoint / Forcepoint NGFW Massive licences import to SMC with API

Forcepoint NGFW Massive licences import to SMC with API

The Forcepoint licensing process is heavy and not optimized … You’ve to go to the support site to recover your POS or POL number, then go to the licensing website, to register the device and download a JAR file, then you’ve to upload it on your SMC … Luckily, the API let you register devices directly from SMC :).

How to do that ?

First, you need to have the API activated on your SMC and smc-python installed on a remote server. Have a look to this blog post : Introduction to Forcepoint API & SMC-Python.

Then, you need to recover all your POS numbers on the forcepoint support website support.forcepoint.com

Finally, create a csv file with all your POS numbers :

POS
xxxxxxxxxx-xxxxxxxxxx
xxxxxxxxxx-xxxxxxxxxx
xxxxxxxxxx-xxxxxxxxxx
xxxxxxxxxx-xxxxxxxxxx
xxxxxxxxxx-xxxxxxxxxx
xxxxxxxxxx-xxxxxxxxxx
xxxxxxxxxx-xxxxxxxxxx
xxxxxxxxxx-xxxxxxxxxx

And create & execute the script below :

from smc import session
import smc.elements
import smc.core.engine
import smc.core.engines
import smc.policy
import smc.elements.system
session.login(url='http://SMC-IP:8082', api_key='API-KEY')
from smc.administration.system import System
system = System()
from csv import DictReader
with open('pos.csv', 'r') as read_obj: csv_dict_reader = DictReader(read_obj) for data in csv_dict_reader: system.license_fetch(data['POS'])

The SMC will register the devices and repatriate every licence from the licensing website.

About Alexandre Nogard

Check Also

Forcepoint : Deploy the SMC on AWS | Part II

In the first Howto Forcepoint : Deploy the SMC on AWS | Part I, we …

Forcepoint : Deploy the SMC on AWS | Part I

How to deploy Forcepoint SMC (Security Management Center) on AWS ? This is a good …

Investigate if your linux server has been hacked or not

We’re a lot to face intrusion attemps in our IS. There can be many interests …

Leave a Reply

Your email address will not be published. Required fields are marked *