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>