Measuring ping latency of a server - Python

后端 未结 5 441
情话喂你
情话喂你 2020-12-31 20:14

I have a list of server IP addresses, I need to check if each one is online and how long the latency is.

I haven\'t found any strai

5条回答
  •  失恋的感觉
    2020-12-31 20:38

    If you want to avoid implementing all the network communication details you could probably try to build something on top of fping:

    fping is a like program which uses the Internet Control Message Protocol (ICMP) echo request to determine if a target host is responding. fping differs from ping in that you can specify any number of targets on the command line, or specify a file containing the lists of targets to ping. Instead of sending to one target until it times out or replies, fping will send out a ping packet and move on to the next target in a round-robin fashion.

提交回复
热议问题