The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how many ip's chomca AIX 4 07-01-2008 12:31 PM
Alternate to pinging boxes benefactr UNIX for Advanced & Expert Users 5 12-13-2007 01:40 AM
pinging an ip ammu Shell Programming and Scripting 1 07-19-2007 11:58 AM
Extracting IP's from a file eth0 Shell Programming and Scripting 14 08-18-2006 11:35 AM
Server stopped pinging (in and out) skotapal UNIX for Advanced & Expert Users 2 11-14-2002 07:22 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-21-2005
Registered User
 

Join Date: May 2005
Location: Mount Blanchard
Posts: 9
pinging IP's in a file

Hey all. I have a long list of IP addresses I want to ping. The IP's are located in a flat file "ping_info.dat".

I was wondering what the best way to go about this would be. Can someone help me out?
Reply With Quote
Forum Sponsor
  #2  
Old 06-21-2005
Registered User
 

Join Date: May 2005
Posts: 80
A simple solution would be to use a for loop :-
for x in `pg file`
do
ping -options $x
done

Hope this helps...
Reply With Quote
  #3  
Old 06-21-2005
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
See this thread. It contains a script called pingnodes that does exactly what you are looking for. I have used it to ping a list about 1000 nodes.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0