During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\urllib3\connectionpool
.py", line 699, in urlopen
httplib_response = self._make_request(
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\urllib3\connectionpool
.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\urllib3\connection.py"
, line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "C:\Python38\lib\http\client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Python38\lib\http\client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Python38\lib\http\client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Python38\lib\http\client.py", line 1010, in _send_output
self.send(msg)
File "C:\Python38\lib\http\client.py", line 950, in send
self.connect()
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\urllib3\connection.py"
, line 200, in connect
conn = self._new_conn()
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\urllib3\connection.py"
, line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x04350BB0>: Fai
led to establish a new connection: [WinError 10060] A connection attempt failed because the connecte
d party did not properly respond after a period of time, or established connection failed because co
nnected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\requests\adapters.py",
line 439, in send
resp = conn.urlopen(
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\urllib3\connectionpool
.py", line 755, in urlopen
retries = retries.increment(
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\urllib3\util\retry.py"
, line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.209.129', port=5985): Max retries
exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object
at 0x04350BB0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed b
ecause the connected party did not properly respond after a period of time, or established connectio
n failed because connected host has failed to respond'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nsdk.py", line 8, in <module>
a = x.run_cmd('hostname')
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\winrm\__init__.py", li
ne 39, in run_cmd
shell_id = self.protocol.open_shell()
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\winrm\protocol.py", li
ne 166, in open_shell
res = self.send_message(xmltodict.unparse(req))
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\winrm\protocol.py", li
ne 243, in send_message
resp = self.transport.send_message(message)
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\winrm\transport.py", l
ine 310, in send_message
self.build_session()
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\winrm\transport.py", l
ine 293, in build_session
self.setup_encryption()
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\winrm\transport.py", l
ine 299, in setup_encryption
self._send_message_request(prepared_request, '')
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\winrm\transport.py", l
ine 328, in _send_message_request
response = self.session.send(prepared_request, timeout=self.read_timeout_sec)
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\requests\sessions.py",
line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Natraj\PycharmProjects\pythonProject2\venv\lib\site-packages\requests\adapters.py",
line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.209.129', port=5985): Max retr
ies exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection obje
ct at 0x04350BB0>: Failed to establish a new connection: [WinError 10060] A connection attempt faile
d because the connected party did not properly respond after a period of time, or established connec
tion failed because connected host has failed to respond'))