Ping Multiple IP address using a txt file with Python script

Publié le: 15 août 2022
sur la chaîne: 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)


Sur cette page du site, vous pouvez voir la vidéo en ligne Ping Multiple IP address using a txt file with Python script durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CP Breeze Tech 15 août 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 322 fois et il a aimé 6 téléspectateurs. Bon visionnage!