Who rated this post

cancel
Showing results for 
Search instead for 
Did you mean: 
Nüüül
Advisor

Hello,

 

The script leverages Check Points own Python SDK for communicating to the Management API. This has to be installed into your python befor using the script.

Problem here is, you are trying to use it on a Check Point host. The script seems not to be intended for usage on a Check Point host itself as the cpapi module is not installed there. As far as i remember, it is not recommended (otherwise lets say a "Don´t") to install modules into python interpreter on Check Point systems.

 

So, please use an external machine with installed python interpreter and the sdk module.

Installation of that module is described here:

https://github.com/CheckPointSW/cp_mgmt_api_python_sdk

for example by

pip install cp-mgmt-api-sdk

 

Checking, if this is installed:

to see all modules installed:

pip list

look than for cpapi or cp-mgmt-api-sdk.

 

depending on your system you might have different python versions installed, so you´d might have to install the module with i.e. "pip3.12" and execute the script with "python3.12" then.

 

hope that helps

 

(1)
Who rated this post