Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
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
4  
What are you trying to accomplish? No good can come of what you're describing... –  voretaq7 May 24 '12 at 20:16
add comment

2 Answers

You are looking for a tool called nmap.

Example: nmap -sP 192.168.0.0/24 would ping all hosts between 192.168.0.1 and 192.168.0.254 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
3  
And -oG and -oX will output in greppable and XML formats respectively. –  mgorven May 24 '12 at 20:17
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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