-4

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.

2
  • 2
    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, 2012 at 20:11
  • 5
    What are you trying to accomplish? No good can come of what you're describing...
    – voretaq7
    May 24, 2012 at 20:16

2 Answers 2

5

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.

1
  • 3
    And -oG and -oX will output in greppable and XML formats respectively.
    – mgorven
    May 24, 2012 at 20:17
4

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.

Not the answer you're looking for? Browse other questions tagged .