---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-6-51050c0ffa12> in <module>()
1 for hosts in allhosts:
2 print(hosts)
----> 3 pinglis.append(pyping.ping(hosts))
/usr/local/lib/python2.7/dist-packages/pyping/core.pyc in ping(hostname, timeout, count, packet_size, *args, **kwargs)
416 def ping(hostname, timeout=1000, count=3, packet_size=55, *args, **kwargs):
417 p = Ping(hostname, timeout, packet_size, *args, **kwargs)
--> 418 return p.run(count)
/usr/local/lib/python2.7/dist-packages/pyping/core.pyc in run(self, count, deadline)
269
270 while True:
--> 271 delay = self.do()
272
273 self.seq_number += 1
/usr/local/lib/python2.7/dist-packages/pyping/core.pyc in do(self)
296 current_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.getprotobyname("icmp"))
297 else:
--> 298 current_socket = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.getprotobyname("icmp"))
299 except socket.error, (errno, msg):
300 if errno == 1:
/usr/lib/python2.7/socket.pyc in __init__(self, family, type, proto, _sock)
185 def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0, _sock=None):
186 if _sock is None:
--> 187 _sock = _realsocket(family, type, proto)
188 self._sock = _sock
189 for method in _delegate_methods:
error: [Errno 1] Operation not permitted - Note that ICMP messages can only be send from processes running as root.