Ping Multiple IP address using a txt file with Python script

Published: 15 August 2022
on channel: CP Breeze Tech
322
6

#Ping to multiple IP addresses

import os
import time
import random

txt_file = input('Please enter IP addresses list text file location\n')
ip_list = open(txt_file,"r")
time_delay = random.randrange(1,5)

for ip in ip_list:
print('Pinging Now the following host IP address:',ip)
print('_'*50)
os .system('ping -n 2 -w 1500 {}'.format (ip))
print('_'*50)
time.sleep(time_delay)


On this page of the site you can watch the video online Ping Multiple IP address using a txt file with Python script with a duration of hours minute second in good quality, which was uploaded by the user CP Breeze Tech 15 August 2022, share the link with friends and acquaintances, this video has already been watched 322 times on youtube and it was liked by 6 viewers. Enjoy your viewing!