| Título del Artículo: Hacer ping a todas las maquinas registradas en /etc/hosts | Descripción: Yo lo hago de la siguiente forma:
$ grep -v "#" /etc/hosts | awk '{print $1}' | while read host
> do
> ping -c 1 $host
> done
O tambien os podeis currar este script
#!/bin/sh
grep -v "#" /etc/hosts | awk '{print $1}' | while read host
do
ping -c 1 $host
done
Un saludo. Teleco24 | | Enviado por: - Fecha: 09-02-2003 12:53:34 |
Si necesitas consultar alguna duda pulsa aquí.
|
|