- Products
- Learn
- Local User Groups
- Partners
- More
Policy Insights and Policy Auditor in Action
19 November @ 5pm CET / 11am ET
Access Control and Threat Prevention Best Practices
Watch HereOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hi,
python version 2.7.9 installed on my pc.
also my smartcenter pyton version 2.7.3
[Expert@mgmt:0]# /opt/CPsuite-R80/fw1/Python/bin/python -V
Python 2.7.3
How can I resolve the Login failed issue?
C:\import_export_package\export_package.py -m 192.168.0.1 fwpolicy
Trying to get login credentials...
Trying to login via `mgmt_cli login -r true`.
Trying to get username and password.
Enter username: admin
Enter password:
Got the following login credentials:
Username: admin
Password: ********
Session ID: None
Login failed: APIResponse received a response which is not valid JSON.
Thank you
Best Regards
Suleyman
Hello again,
Do you have an idea for the solution?
python version 2.7.9 installed on my pc.
also my smartcenter pyton version 2.7.3
[Expert@mgmt:0]# /opt/CPsuite-R80/fw1/Python/bin/python -V
Python 2.7.3
How can I resolve the Login failed issue?
C:\import_export_package\export_package.py -m 192.168.0.1 fwpolicy
Trying to get login credentials...
Trying to login via `mgmt_cli login -r true`.
Trying to get username and password.
Enter username: admin
Enter password:
Got the following login credentials:
Username: admin
Password: ********
Session ID: None
Login failed: APIResponse received a response which is not valid JSON.
Thank you
Best Regards
Suleyman
Hi Suleyman,
Please try using the newer version of the API Python library -
https://community.checkpoint.com/docs/DOC-1091
Please contact me via e-mail if you run into any issues.
Thanks,
Adam
Ps. my Python version installed on the PC is 2.7.13 Tk version 8.5.15
Hi Sebastian,
Please add the --unsafe flag when you run the tool.
Let me know if this resolves your issue.
Adam Galmor
Hello Adam,
I have tried it already before with different ways.
Here once again the results.
Python version installed on the PC is 2.7.13 Tk version 8.5.15
Best regards
Sebastian
C:\Users\lab1\Documents\import_export_package1>export_package.py -u
123 -m 192.168.63.80 Standard --unsafe true
Trying to get login credentials...
Got the following login credentials:
Username: admin
Password: ******
Session ID: None
Traceback (most recent call last):
File "C:\Users\lab1\Documents\import_export_package1\export_packag
30, in
_, , usercreated, client, args = process_args_and_login(client
ser=parser, showparameter="package")
File "C:\Users\lab1\Documents\import_export_package1\import_export
objects.py", line 68, in processargs_and_login
raise mgmt_api_lib.APIClientException("The server's fingerprint
than your local record of it. The script cannot operate in this uns
(unless running with --unsafe). Exiting...")
import_export_objects.mgmt_api_lib.api_exceptions.APIClientException
's fingerprint is different than your local record of it. The script
ate in this unsecure manner (unless running with --unsafe). Exiting.
C:\Users\lab1\Documents\import_export_package1>
C:\Users\lab1\Documents\import_export_package1>
C:\Users\lab1\Documents\import_export_package1>python -V
'python' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\lab1\Documents\import_export_package1>export_package.py --unsafe -u adm
in -p vpn123 -m 192.168.63.80 Standard
usage: export_package.py
package
export_package.py: error: argument --unsafe: expected one argument
C:\Users\lab1\Documents\import_export_package1>export_package.py --unsafe true -
u admin -p vpn123 -m 192.168.63.80 Standard
Trying to get login credentials...
Got the following login credentials:
Username: admin
Password: ******
Session ID: None
Traceback (most recent call last):
File "C:\Users\lab1\Documents\import_export_package1\export_package.py", line
30, in
_, , usercreated, client, args = process_args_and_login(client=client, par
ser=parser, showparameter="package")
File "C:\Users\lab1\Documents\import_export_package1\import_export_objects\get
objects.py", line 68, in processargs_and_login
raise mgmt_api_lib.APIClientException("The server's fingerprint is different
than your local record of it. The script cannot operate in this unsecure manner
(unless running with --unsafe). Exiting...")
import_export_objects.mgmt_api_lib.api_exceptions.APIClientException: The server
's fingerprint is different than your local record of it. The script cannot oper
ate in this unsecure manner (unless running with --unsafe). Exiting...
C:\Users\lab1\Documents\import_export_package1>
C:\Users\lab1\Documents\import_export_package1>export_package.py --unsafe-auto-a
ccept true -u admin -p vpn123 -m 192.168.63.80 Standard
Trying to get login credentials...
Got the following login credentials:
Username: admin
Password: ******
Session ID: None
Traceback (most recent call last):
File "C:\Users\lab1\Documents\import_export_package1\export_package.py", line
30, in
_, , usercreated, client, args = process_args_and_login(client=client, par
ser=parser, showparameter="package")
File "C:\Users\lab1\Documents\import_export_package1\import_export_objects\get
objects.py", line 68, in processargs_and_login
raise mgmt_api_lib.APIClientException("The server's fingerprint is different
than your local record of it. The script cannot operate in this unsecure manner
(unless running with --unsafe). Exiting...")
import_export_objects.mgmt_api_lib.api_exceptions.APIClientException: The server
's fingerprint is different than your local record of it. The script cannot oper
ate in this unsecure manner (unless running with --unsafe). Exiting...
C:\Users\lab1\Documents\import_export_package1>
unfortunately the unsafe flag does not resolve it.
Hi Sebastian, have you tried using both "unsafe" and "unsafe-auto-accept"?
In any case, please supply me with your e-mail address.
Adam, I will send his email address offline. ![]()
It was the IP address. Using correct IP helped.
C:\Users\lab1\Documents\import_export_package1>export_package.py --unsafe true -u admin -p vpn123 -m 192.168.163.80 Standard
Trying to get login credentials...
Got the following login credentials:
Username: admin
Password: ******
Session ID: None
You currently do not have a record of this server's fingerprint.
Server's fingerprint: ******************************************
Do you accept this fingerprint? [y/n] y
Fingerprint saved.
Exporting rulebase from layer 'Network'...
1/1 objects retrieved.
Exporting access rules from layer 'Network'...
Exporting access sections from layer 'Network'...
Done exporting layer 'Network'.
Thank you
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Wed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchWed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasWed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY