Page 1 of 1

Socket error: [Errno 11004] getaddrinfo failed

Posted: Thu Feb 16, 2017 3:59 pm
by Cubert
The following error is due to the PYWBEM library having issues resolving host names. Not sure why it can't resolve a host name, we have seen this where when probes are doing 2 or more ESX hosts the first will resolve fine but the second and third, etc will fail with this error.

The fix was to use IP addresses for all ESX hosts at location.

Code: Select all

Parameters: cmd.exe!!! /c "C:\Python27\Python.exe -W ignore C:\Python27\check_esxi
Output: Traceback (most recent call last):
  File "C:\Python27\check_esxi_hardware.py", line 669, in <module>
    instance_list = wbemclient.EnumerateInstances(classe)
  File "C:\Python27\lib\site-packages\pywbem-0.10.0-py2.7.egg\pywbem\cim_operations.py", line 1585, in EnumerateInstances
    **extra)
  File "C:\Python27\lib\site-packages\pywbem-0.10.0-py2.7.egg\pywbem\cim_operations.py", line 914, in _imethodcall
    recorder=self.operation_recorder)
  File "C:\Python27\lib\site-packages\pywbem-0.10.0-py2.7.egg\pywbem\cim_http.py", line 768, in wbem_request
    raise ConnectionError("Socket error: %s" % exc)
pywbem.exceptions.ConnectionError: Socket error: [Errno 11004] getaddrinfo failed