LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Script to ping 100 IP addresses (https://www.linuxquestions.org/questions/programming-9/script-to-ping-100-ip-addresses-4175521975/)

neelavathi 10-11-2014 01:12 AM

Script to ping 100 IP addresses
 
can any one help me ??

how to write scripting program ..
my input is suppose i am a network adminstrator i want to know... i have 100 systems ip address.. if i configure in scripting i want to see how many systems is pinging ..if pings gives 1 as output..not ping means give 0 as output and ip no..


for this i want to write a program can you hep in linux or c shell script please....

---------- Post added 10-11-14 at 01:13 AM ----------

how to write scripting program ..
my input is suppose i am a network adminstrator i want to know... i have 100 systems ip address.. if i configure in scripting i want to see how many systems is pinging ..if pings gives 1 as output..not ping means give 0 as output and ip no..


for this i want to write a program can you hep in linux or c shell script please....

irneb 10-13-2014 08:39 AM

Quote:

Originally Posted by neelavathi (Post 5252189)
can any one help me ??

You might get much better help if you start such a question as a new thread instead of adding to some other unrelated thread.

Though you might want to look into Linux's Bash scripts for these. E.g. http://linuxconfig.org/bash-scripts-...onitor-network

TB0ne 10-13-2014 11:12 AM

Quote:

Originally Posted by neelavathi (Post 5252189)
can any one help me ??
how to write scripting program ..
my input is suppose i am a network adminstrator i want to know... i have 100 systems ip address.. if i configure in scripting i want to see how many systems is pinging ..if pings gives 1 as output..not ping means give 0 as output and ip no..

for this i want to write a program can you hep in linux or c shell script please....

This sounds VERY much like a homework question. This isn't the place to come to get people to do your homework or write your scripts for you...if you want that, you should post this in the LQ Job Marketplace, with how much you're willing to pay.

Otherwise, show some effort of your own, and we will be very happy to help. There are THOUSANDS of very easily found bash scripting tutorials (including one in my posting signature), along with many other easily-found examples for ping scripts. Google can point you to them, so start there.


All times are GMT -5. The time now is 02:08 AM.