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.