0

I am trying to use HP iLO automation from python. I am following https://seveas.github.io/python-hpilo/ for my reference. I have installed python-hpilo and in my python file I have created an instance of ilo

ilo = hpilo.Ilo('ip-range', 'Username', 'Password')
print(ilo) gives output as - iLO interface of ip-range

When I try to call any method on ilo, ilo.get_host_data() or ilo.get_fw_version() I am getting error

  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\hpilo.py", line 410, in _communicate
    sock = self._get_socket()
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\hpilo.py", line 374, in _get_socket 
    for res in socket.getaddrinfo(self.hostname, self.port, 0, socket.SOCK_STREAM):
  File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\socket.py", line 954, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

I am not sure about the reason of the error. If it is related to proxy then where in object should I provide?

classhpilo.Ilo(hostname, login=None, password=None, timeout=60, port=443, protocol=None, delayed=False, ssl_verify=False, ssl_context=None)
richa verma
  • 247
  • 2
  • 13

0 Answers0