Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 over 3000 servers I need to ping in my corporate network. I found a way to ping them but I am hoping to find away to output the ping data to another text file or xls file with the hostname, ip address and the response/reply back information without having to look through 300000 lines of data and remove repeating data given from a typical dos ping.

share|improve this question

closed as off-topic by Ward, masegaloeh, kasperd, MadHatter, Jenny D May 25 '15 at 9:09

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

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Ward, masegaloeh, kasperd, MadHatter, Jenny D
If this question can be reworded to fit the rules in the help center, please edit the question.

Why do you need to ping 3000 servers? Certainly there are better/more reliable ways to monitor uptime and availability? And ICMP echo doesn't necessarily mean that things are working, after all. – MDMarra May 24 '12 at 20:11
What are you trying to accomplish? No good can come of what you're describing... – voretaq7 May 24 '12 at 20:16

You are looking for a tool called nmap.

Example: nmap -sP would ping all hosts between and and provide a list of the hosts that respond as output.

That being said, if you are trying to inventory or monitor your network, there are more professional ways to go about it. For example, tools like Nagios can check whether certain services are operating normally and generate alerts if they are down. Observium and OpenNMS are additional options that may or may not be more appropriate for your (mysterious) situation.

share|improve this answer
And -oG and -oX will output in greppable and XML formats respectively. – mgorven May 24 '12 at 20:17

You could look at fping or Observium if you're looking to manage a list of availability across those 3000 hosts. fping works in parallel, and it will take the input file containing a list of systems. Observium would be a nice lightweight monitoring system.

But in general, you should provide more insight into what you're trying to accomplish.

share|improve this answer

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