Question

mininet> h1 ping h2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_req=1 ttl=64 time=15.2 ms
64 bytes from 10.0.0.2: icmp_req=2 ttl=64 time=5.43 ms
64 bytes from 10.0.0.2: icmp_req=3 ttl=64 time=0.243 ms
^C64 bytes from 10.0.0.2: icmp_req=13 ttl=64 time=0.216 ms

--- 10.0.0.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 12016ms
rtt min/avg/max/mdev = 0.136/1.809/15.257/4.119 ms
mininet>

I want to capture number of packets transmitted,packets received,packet loss percentage into a text file. how to do this? please help me.

Was it helpful?

Solution

just you have to type : ping ip >>out.txt

This will help you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top