LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-11-2014, 01:12 AM   #1
neelavathi
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
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....
 
Old 10-13-2014, 08:39 AM   #2
irneb
Member
 
Registered: Apr 2010
Location: Jo'burg SA
Distribution: Kubuntu, Lubuntu, Fedora, FreeBSD
Posts: 201

Rep: Reputation: 66
Quote:
Originally Posted by neelavathi View Post
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
 
1 members found this post helpful.
Old 10-13-2014, 11:12 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by neelavathi View Post
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.

Last edited by TB0ne; 10-13-2014 at 11:13 AM.
 
1 members found this post helpful.
  


Reply


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
Ping all the IP addresses in a file grahamb314 Programming 3 09-05-2013 06:32 PM
Script to ping multiple IP addresses one by one peddip Linux - Server 14 09-15-2011 11:44 PM
[SOLVED] Ping IP addresses using bash and linux ericasass Programming 3 06-14-2011 10:31 PM
Cannot ping virtual ip addresses (VIP) mixxalot Linux - Networking 3 11-25-2007 01:50 PM
ping and IP addresses BACTRATE Mandriva 3 06-16-2004 06:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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