Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an intranet system (no internet) and for verification I want an easy way to ping a few dozen hosts. I can run this on Windows 2008 Server or on Linux.

I want to get a simple yes/no report of if a bunch of hosts are up.

share|improve this question

closed as off-topic by Jenny D, womble Oct 9 '15 at 0:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

ActiveXperts provides ICMP Ping and HTTP(S) page monitoring as part of their free version. You can setup several different notifications for failures and successes as well.

http://www.activexperts.com/activmonitor/freeware/

share|improve this answer
up vote 0 down vote accepted

Found a bash script:

HOSTS="cyberciti.biz theos.in router"

# no ping request
COUNT=1

# email report when
SUBJECT="Ping failed"
EMAILID="me@mydomain.com"
for myHost in $HOSTS
do
  count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
  if [ $count -eq 0 ]; then
    # 100% failed
    echo "Host : $myHost is down (ping failed) at $(date)" | mail -s "$SUBJECT" $EMAILID
  fi
done
share|improve this answer

It depends.

Which interface (GUI, cli?) do you want to use? Who and how will use it? and why do you do such pings? It is, if you ping for pinging also ping (hping or nmap) maybe a litlle scripted could do the job (but a machine replying to ping not necessarily is alive for the service that must give), instead if you'd like to know if a host is doing its job, then it's better to check for the services that it is supposed to give and to do that there are monitoring tools like monit or bigbrother (nowaday maybe also big sister) under Linux or you can use simpler system tools scripted to check the different services of the different hosts. I don't know under Windows.

share|improve this answer

protected by Community Oct 8 '15 at 10:16

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.