Python Forum
Need some guidance on a script to ping a list of ip's
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some guidance on a script to ping a list of ip's
#6
What code is there to post, the original post at the top has my code. There is no new code to post or share... The sample code i tried was this:

from icmplib import multiping

hosts = multiping(['10.0.0.5', '127.0.0.1', '::1'])
for host in hosts:
     if host.is_alive:
         # See the Host class for details
         print(f'{host.address} is up!')
     else:
         print(f'{host.address} is down!')
Reply


Messages In This Thread
RE: Need some guidance on a script to ping a list of ip's - by cubangt - Aug-09-2023, 06:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  non-stop ping script kucingkembar 1 1,425 Aug-23-2022, 06:29 AM
Last Post: menator01
  Need some coding guidance for a task peny 5 2,293 Sep-27-2021, 02:02 PM
Last Post: peny
  Win32\ping.exe windows pops up -very annoying... tester_V 9 3,392 Aug-12-2021, 06:54 AM
Last Post: tester_V
  Looking for discord bot to make loop ping for address ip tinkode 0 1,879 Jul-26-2021, 03:51 PM
Last Post: tinkode
  cant use ping, sudo or other commands in remote shell script. throwaway34 7 3,754 May-17-2021, 11:29 AM
Last Post: throwaway34
  Ping command using python 3.6.5 Martin2998 6 17,692 Apr-19-2021, 06:24 PM
Last Post: blazejwiecha
  Your Guidance caslor 1 2,202 Mar-28-2021, 09:34 PM
Last Post: Larz60+
  GPIO high if network IP has good ping duckredbeard 3 2,422 Oct-12-2020, 10:41 PM
Last Post: bowlofred
  Noob needing guidance.... bako 0 1,903 Mar-29-2020, 06:55 PM
Last Post: bako
  Create a program that PING a list of IPs skaailet 7 6,640 Mar-26-2020, 10:46 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020