unix - Calculate Sent and Received PING Packets at run-time in Linux -
i have calcuate sent , received ping packets @ run-time in linux. in linux, verbose, nothing gets printed if packets not received. prints successful replies, destination host unreachable.
how can sent , received packets seen @ run-time on terminal? method can accomplished?
the simplest solution - if want see sends , receives make source that. source ping command available , can edited make want.
that said, if don't want edit source, because doesn't suit, should use -c
option, count of packets send, , use command send one @ time. return code command can used determine if packet seen, , can use (roughly) time command started @ origin time of packet.
bear in mind ping quite deterministic in it's behaviour. default, sends one packet per second, should able math based on how long runs , count of packets tried use.
Comments
Post a Comment