Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-15-2009, 08:13 AM   #1
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
Question Pinging All the Nodes Connected to the Server

Hi All,

I want to write a ShellScript file which runs on the Server and does the followings:

1) Get info, IP or Machine Name mainly, of all the nodes connected to the server.

2) Ping each of them one by one.

So, the main problem which I am having is how to get this info as to how many IPs are present there so that they can be pinged?

I have this Pseudo Code for it:
Store the IPs in a Variable or Array List

(Loop through the Array List)

For in ( Machine )

Ping -c 3 Machine's IP >> /tmp/NetWorkReport.txt


Any creative ideas?
Old 05-15-2009, 09:43 AM   #2
LQ Newbie
Registered: Mar 2008
Location: Italy
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
I am not a big expert, but did you had a look at nmap?
I think the nmap -sP <ip address rang> do just what you need.


ip, machine, ping, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pinging smb server by name returns starmonche Linux - Networking 6 08-10-2007 05:40 AM
How to know the ip of the nodes connected fs11 Linux - Networking 18 06-01-2007 02:53 AM
booting nodes from server via pxe - help needed sniff Fedora 1 05-30-2007 06:13 AM
Pinging Fedora Server?? OneManOfBits Linux - Newbie 2 04-12-2007 06:51 PM
DWL-650+ connected, but not pinging slaken Linux - Wireless Networking 12 05-12-2004 03:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration