I have a file with a list of IP addresses and the status of each like this:
192.168.50.1 UP 192.168.50.2 DOWN 192.168.50.3 UP 192.168.50.4 UP