Skip to navigation
   
Arron Johnson's Blog

My 1st Successful WPS Script :-)

By Arron Johnson in Reader

Posted in Uncategorized on January 15, 2007 at 1:15 am

Permalink | Author Profile

So following on from the previous post, I’ve been playing with WPS for a week now, on and off. The Script I’ve been playing around with was aimed at Event Logs.
The script has gone through many variations, it started off as just retrieving all the events from the application log and putting them in an HTML file.

I’ve now got to the point where the script prompts for the log you would like to check , then filters the output to include only warnings and errors. Then colour codes the results (Errors – Red, Warnings – Yellow).

The file is then saved with a filename that consists of the host name and eventlog name.

Please feel free to have use the script and to amend it if you wish. I am not finished with the script myself yet, there are still a few things I would like to be able to add to it;

-          Checking Remote hosts

-          Including a quit option

-          Being able to check all logs at once

There’s probably more but it’s getting late, and I’m going to bed! If anyone makes any improvements they have made to the script I would love to see them, just add them as comments to this post!

The script is below, just copy and paste to a file and save with a .ps1 extension.

Arron

CLS

12345
Not yet rated
Loading ... Loading ...

Previous Post | Next Post

 
 
Comments
This article has no comments yet.

Make a comment

* required

* required

We stop spam using reCaptcha.
Type the words below and click Submit Comment.

Advertisement
Advertisement
Advertisement