Advertisement
rfmonk

error_from_remote_host_ping

Jun 25th, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. $ python ping_remote_host.py --target-host=www.altsci.com
  2. Ping to www.altsci.com...
  3. Traceback (most recent call last):
  4.   File "ping_remote_host.py", line 124, in <module>
  5.     pinger.ping()
  6.   File "ping_remote_host.py", line 107, in ping
  7.     delay = self.ping_once()
  8.   File "ping_remote_host.py", line 93, in ping_once
  9.     raise socket.error(msg)
  10. socket.error: Operation not permitted need root privs to send icmp
  11.  
  12. $ sudo python ping_remote_host.py --target-host=www.altsci.com
  13. Password:
  14. Ping to www.altsci.com... Ping failed. (timeout within 2sec.)
  15. Ping to www.altsci.com... Ping failed. (timeout within 2sec.)
  16. Ping to www.altsci.com... Ping failed. (timeout within 2sec.)
  17. Ping to www.altsci.com... Ping failed. (timeout within 2sec.)
  18.  
  19. $ ping www.altsci.com
  20. PING www.altsci.com (216.218.134.11): 56 data bytes
  21. 64 bytes from 216.218.134.11: icmp_seq=0 ttl=53 time=30.533 ms
  22. 64 bytes from 216.218.134.11: icmp_seq=1 ttl=53 time=29.473 ms
  23. 64 bytes from 216.218.134.11: icmp_seq=2 ttl=53 time=30.423 ms
  24. ^C
  25. --- www.altsci.com ping statistics ---
  26. 3 packets transmitted, 3 packets received, 0.0% packet loss
  27. round-trip min/avg/max/stddev = 29.473/30.143/30.533/0.476 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement