17 August 2007

How to take a last log from the Servers?

I’ve a few servers those same times I have to take a log from them. I’m interesting just in the LAST log from each server. Because of the huge numbers of the servers I’ve created a script Logs-from-Servers.bat, which helps me in my task. Additionally, this script takes a screenshot from each server.

Before show the content of my script I’d like to say what the prerequirements. I used a few tools in the script for simplify it. One is LINEX.exe the other one is LSGRAB.exe and the last 7za.exe

LINEX.exe helps to analyze and manipulate with each line in the TXT fail.
LSGRAB.exe – command line tools, which takes a screenshot from the remote server.
7za.exe - command line tools, which create a ZIP-archive of all logs.

Logs-from-Servers.bat analyzes a file SRVLIST.txt. In the SRVLIST.txt located a list of all my servers. This is an example of the SRVLIST.txt:

Bookmark and Share ITStuff.ca

No comments:

Post a Comment