0
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>
我想捕獲傳輸的數據包數,接收到的數據包數,丟包率到文本文件中。 如何做到這一點? 請幫助我。如何在文本文件中輸入ctrl + c後存儲ping統計信息
是的,我試過這樣..,只給CTRL + C被捕獲,但我想給顯示CTRL + C後,ping統計前行@ Cast_A_Way – bvb
試試這個,讓我知道: '平-c 5 -q 127.0.0.1 >> out.txt' –
是的,它是工作..但如何通過python scripting給這個命令 - @ Cast_A_Way – bvb