Batch file to show multiple server uptime.

October 10, 2011 at 00:35:19
Specs: Windows 7
Anyone can help me to figure out the coding for the batch file to show out multiple server uptime and downtime? Thanks a lot. Urgent.

See More: Batch file to show multiple server uptime.

Report •

October 10, 2011 at 23:26:19
::== List.bat
:: ping IPs from list

@echo off > ServerStatus.txt

for /f "tokens=* delims=," %%I in (ServerList.txt) do call :sub1 %%I
copy ServerStatus.txt con > nul
goto :eof

set status=up
ping %1 |find /i "reply" > nul

if errorlevel 1 set status=down
>> ServerStatus.txt echo %* , %status%
goto :eof

This is one of the example that use to ping the multiple server. But what is the command to show out the uptime and downtime of the server? Anyone know? Your help is very much appreciate. =)

Report •

October 12, 2011 at 19:30:23
Anyone can help me? Thanks a lot.

Report •
Related Solutions

Ask Question