Hi All, I want to ping lots and lots of consecutive ip addresses. If I issue ping 192.168.1.{1,2,3}, I get ping 192.168.1.1 192.168.1.2 192.168.1.3 which isn't exactly what I want. How can I issue a "short-hand" ping command, that will expand to ping 192.168.1.1 ping 192.168.1.2 ping 192.168.1.3 etc. TIA, -- -Chuck
On Wednesday 04 April 2007, Chuck Noyes wrote:
I want to ping lots and lots of consecutive ip addresses. If I issue ping 192.168.1.{1,2,3}, I get ping 192.168.1.1 192.168.1.2 192.168.1.3 which isn't exactly what I want.
How can I issue a "short-hand" ping command, that will expand to ping 192.168.1.1 ping 192.168.1.2 ping 192.168.1.3 etc.
eval $(echo 'ping 192.168.1.'{1..10}';') -mike
On Wed, Apr 04, 2007 at 06:48:23PM -0400, Chuck Noyes wrote:
I want to ping lots and lots of consecutive ip addresses. If I issue ping 192.168.1.{1,2,3}, I get ping 192.168.1.1 192.168.1.2 192.168.1.3 which isn't exactly what I want.
Take a look at fping, imo. :) -- Randomly Selected Tagline: "All [replacing of fat] does is lead to dissatisfaction and I think that dissatisfaction results in overeating." - Alton Brown http://interviews.slashdot.org/article.pl?sid=02/09/12/1241242
On Wed, 04 Apr 2007 19:18:51 -0400 Theo Van Dinter <felicity@kluge.net> wrote:
On Wed, Apr 04, 2007 at 06:48:23PM -0400, Chuck Noyes wrote:
I want to ping lots and lots of consecutive ip addresses. If I issue ping 192.168.1.{1,2,3}, I get ping 192.168.1.1 192.168.1.2 192.168.1.3 which isn't exactly what I want.
Take a look at fping, imo. :)
Cool!!!!!!!!! -- -Chuck
On 4/4/07, Chuck Noyes <vze284qe@verizon.net> wrote:
How can I issue a "short-hand" ping command, that will expand to ping 192.168.1.1 ping 192.168.1.2 ping 192.168.1.3 etc.
I just learned something new (fping)! I was also going to suggest broadcast ping: ping -b 192.168.1.255
FWIW, I'd write it this way: for i in `seq 10`; do ping -c 1 192.168.1.$i; done or for i in {1..10}; do ping -c 1 192.168.1.$i; done -Ross -----Original Message----- From: wlug-bounces@mail.wlug.org [mailto:wlug-bounces@mail.wlug.org] On Behalf Of Brett Russ Sent: Wednesday, April 04, 2007 20:02 To: Worcester Linux Users Group Subject: Re: [Wlug] ping command expansion On 4/4/07, Chuck Noyes <vze284qe@verizon.net> wrote:
How can I issue a "short-hand" ping command, that will expand to ping 192.168.1.1 ping 192.168.1.2 ping 192.168.1.3 etc.
I just learned something new (fping)! I was also going to suggest broadcast ping: ping -b 192.168.1.255 _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Chuck> I want to ping lots and lots of consecutive ip addresses. nmap is what I'd use here probably.... nmap -sP 192.168.1.1-254 -oN John
participants (6)
-
Brett Russ
-
Chuck Noyes
-
John Stoffel
-
Mike Frysinger
-
Minkov, Ross
-
Theo Van Dinter