Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
FabioLima1
Contributor

sk180923 - How to migrate a policy package between Security Management servers

 

Hey guys,
I'm trying to export a policy from mds, I have the error below in the script, has anyone seen this error?

Please enter your password:

Traceback (most recent call last):
File "/home/adm/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/import_export_package.py", line 48, in <module>
login_reply = client.login(username=args.username, password=args.password, domain=args.domain,
File "/home/admcp_mgmt_api_python_sdk-master/cpapi/mgmt_api.py", line 218, in login
return self._common_login_logic(credentials, continue_last_session, domain, read_only, payload)
File "/home/adm/cp_mgmt_api_python_sdk-master/cpapi/mgmt_api.py", line 173, in _common_login_logic
login_res = self.api_call("login", credentials)
File "/home/adm/cp_mgmt_api_python_sdk-master/cpapi/mgmt_api.py", line 295, in api_call
if self.check_fingerprint() is False:
File "/home/adm/cp_mgmt_api_python_sdk-master/cpapi/mgmt_api.py", line 612, in check_fingerprint
server_fingerprint = self.get_server_fingerprint()
File "/home/adm/cp_mgmt_api_python_sdk-master/cpapi/mgmt_api.py", line 502, in get_server_fingerprint
conn = self.get_https_connection()
File "/home/adm/cp_mgmt_api_python_sdk-master/cpapi/mgmt_api.py", line 771, in get_https_connection
self.conn = self.create_https_connection()
File "/home/adm/cp_mgmt_api_python_sdk-master/cpapi/mgmt_api.py", line 765, in create_https_connection
conn.connect()
File "/home/adm/cp_mgmt_api_python_sdk-master/cpapi/mgmt_api.py", line 786, in connect
http_client.HTTPConnection.connect(self)
File "/usr/lib64/python3.9/http/client.py", line 946, in connect
self.sock = self._create_connection(
File "/usr/lib64/python3.9/socket.py", line 844, in create_connection
raise err
File "/usr/lib64/python3.9/socket.py", line 832, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

0 Kudos
2 Replies
PhoneBoy
Admin
Admin

Looks like you do not have connectivity between the machine you're running this on and the management server.
Have you confirmed access on port 443?

0 Kudos
the_rock
Legend
Legend

Im with Phoneboy here...does not appear based on those logs you have right connectivity present on port 443.

Andy

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events