AidanEnos
MIS
- Dec 11, 2000
- 189
What I want is to have a ping script repeat every X seconds, ping from a list and put devices that don't respond in a text file. Here's my thinking... can you tell me where I went wrong. I know how to make it all a single executable file and chmod to 777 to make it run... it's the programming I am not so good at ;o)
ping "list.txt" -s (datagram size) 10 -I (ping interval) 60|grep "did not respond" > exceptions.txt
list.txt will be (any file with a list of devices):
10.10.10.1
10.10.10.2
10.10.10.3
10.10.10.4
10.10.10.5
And I want it to look for failed ping responses and log them in a file called exceptions.txt
What I have put above is kinda my best guess, please help me make this a little more... user friendly )
Thanks all!
AidanEnos
ping "list.txt" -s (datagram size) 10 -I (ping interval) 60|grep "did not respond" > exceptions.txt
list.txt will be (any file with a list of devices):
10.10.10.1
10.10.10.2
10.10.10.3
10.10.10.4
10.10.10.5
And I want it to look for failed ping responses and log them in a file called exceptions.txt
What I have put above is kinda my best guess, please help me make this a little more... user friendly )
Thanks all!
AidanEnos