Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. for I in `awk -e '{print $3}' hosts`; do ping -c 3 $I; done
  2. PING 172.24.16.11 (172.24.16.11) 56(84) bytes of data.
  3. From 172.24.16.13 icmp_seq=1 Destination Host Unreachable
  4. From 172.24.16.13 icmp_seq=2 Destination Host Unreachable
  5. From 172.24.16.13 icmp_seq=3 Destination Host Unreachable
  6.  
  7. --- 172.24.16.11 ping statistics ---
  8. 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2000ms
  9. pipe 3
  10. PING 172.24.16.12 (172.24.16.12) 56(84) bytes of data.
  11. From 172.24.16.13 icmp_seq=1 Destination Host Unreachable
  12. From 172.24.16.13 icmp_seq=2 Destination Host Unreachable
  13. From 172.24.16.13 icmp_seq=3 Destination Host Unreachable
  14.  
  15. --- 172.24.16.12 ping statistics ---
  16. 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
  17. pipe 3
  18. PING 172.24.16.13 (172.24.16.13) 56(84) bytes of data.
  19. 64 bytes from 172.24.16.13: icmp_seq=1 ttl=64 time=0.009 ms
  20. 64 bytes from 172.24.16.13: icmp_seq=2 ttl=64 time=0.020 ms
  21. 64 bytes from 172.24.16.13: icmp_seq=3 ttl=64 time=0.020 ms
  22.  
  23. --- 172.24.16.13 ping statistics ---
  24. 3 packets transmitted, 3 received, 0% packet loss, time 1999ms
  25. rtt min/avg/max/mdev = 0.009/0.016/0.020/0.006 ms
  26. PING 172.24.16.14 (172.24.16.14) 56(84) bytes of data.
  27. 64 bytes from 172.24.16.14: icmp_seq=1 ttl=64 time=0.212 ms
  28. 64 bytes from 172.24.16.14: icmp_seq=2 ttl=64 time=0.111 ms
  29. 64 bytes from 172.24.16.14: icmp_seq=3 ttl=64 time=0.111 ms
  30.  
  31. --- 172.24.16.14 ping statistics ---
  32. 3 packets transmitted, 3 received, 0% packet loss, time 1999ms
  33. rtt min/avg/max/mdev = 0.111/0.144/0.212/0.049 ms
  34. PING 172.24.16.15 (172.24.16.15) 56(84) bytes of data.
  35. From 172.24.16.13 icmp_seq=1 Destination Host Unreachable
  36. From 172.24.16.13 icmp_seq=2 Destination Host Unreachable
  37. From 172.24.16.13 icmp_seq=3 Destination Host Unreachable
  38.  
  39. --- 172.24.16.15 ping statistics ---
  40. 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2000ms
  41. pipe 3
  42. PING 172.24.17.8 (172.24.17.8) 56(84) bytes of data.
  43. From 172.24.16.13 icmp_seq=1 Destination Host Unreachable
  44. From 172.24.16.13 icmp_seq=2 Destination Host Unreachable
  45. From 172.24.16.13 icmp_seq=3 Destination Host Unreachable
  46.  
  47. --- 172.24.17.8 ping statistics ---
  48. 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
  49. pipe 3
  50. PING 172.24.16.9 (172.24.16.9) 56(84) bytes of data.
  51. From 172.24.16.13 icmp_seq=1 Destination Host Unreachable
  52. From 172.24.16.13 icmp_seq=2 Destination Host Unreachable
  53. From 172.24.16.13 icmp_seq=3 Destination Host Unreachable
  54.  
  55. --- 172.24.16.9 ping statistics ---
  56. 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
  57. pipe 3
  58. PING 172.24.16.10 (172.24.16.10) 56(84) bytes of data.
  59. From 172.24.16.13 icmp_seq=1 Destination Host Unreachable
  60. From 172.24.16.13 icmp_seq=2 Destination Host Unreachable
  61. From 172.24.16.13 icmp_seq=3 Destination Host Unreachable
  62.  
  63. --- 172.24.16.10 ping statistics ---
  64. 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
  65. pipe 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement