Ping Multiple IP address using a txt file with Python script

Publicado el: 15 agosto 2022
en el canal de: 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)


En esta página del sitio puede ver el video en línea Ping Multiple IP address using a txt file with Python script de Duración hora minuto segunda en buena calidad , que subió el usuario CP Breeze Tech 15 agosto 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 322 veces y le gustó 6 a los espectadores. Disfruta viendo!