Posted By

DrDoom on 02/04/10


Tagged

network ping all in clients


Versions (?)

ping all clients in network


 / Published in: Bash
 

Single line for linux shell

  1. export i=0; while [[ $((++i)) -le 254 ]]; do ping -c1 -w1 192.168.25.$i | grep ttl | cut -d " " -f4 | cut -d ":" -f1; done;

Report this snippet  

You need to login to post a comment.