1.

Solve : complex batch process or maybe i'm making it harder than it needs to be?

Answer» HI Folks

First time attempt at writing a batch process and hitting a brick wall (MAINLY with my head )
Two parts to it really. Basically I am trying to run a program that will ping SEVERAL ip addresses and return the information to a log file, that much i have managed. The second part is identifying which ip address is timing out. As there is a BIG range of addresses i don't have time to sift through a log file and wondered if any of you knew if there was any way of identifying time outs and writing to a new file the date/time and ip address of each of them.

Does this make any sense? Many thanks for your help on this.
If a ping request times out, there will be a nonzero errorlevel, so after the ping command returns, just test for this and if so, write the ip address and system date & time to the timeout log in append mode. You sound like a sysadmin, or at least a person who is paid to know how to do basic IT stuff, so I am sure I won't need to SPELL out in detail how to do this.


http://ss64.com/nt/ping.html







please search the forum also. there are lots of examples on pinging and getting results back + filtering.


Discussion

No Comment Found