title: Linux - ping all devices in a file to check accessibility
body: <p>I have a file with about 500 devices which I need to ping to check if they're currently accessible or not from various subnets around my network. It's essentially a basic test to check for routing/accessibility issue.</p>
  
  <p>Not sure where to start really. I have a basic file in which I have put each individual IP in a file line-by-line.</p>
  
  <p>For example, the file looks like this:</p>
  
  <pre><code>192.168.1.1
  192.168.1.2
  192.168.1.3
  192.168.1.4
  </code></pre>
  
  <p>I'd need it to return something like the following, if the third in line didn't get a reply:</p>
  
  <pre><code>192.168.1.1 Accessible
  192.168.1.2 Accessible
  192.168.1.3 Inaccessible
  192.168.1.4 Accessible
  </code></pre>
  
  <p>I'm running Ubuntu here. Apologies for not having any idea where to start !</p>
  
  <p>Cheers
  Steve.</p>