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:
Code:
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
Done
Any creative ideas?