Windows Scripting
  Home arrow Windows Scripting arrow Event Log Parsing for the WSH Administrato...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Event Log Parsing for the WSH Administrator
By: Nilpo/Developer Shed Staff Writer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 2
    2007-05-23

    Table of Contents:
  • Event Log Parsing for the WSH Administrator
  • Modularizing the script
  • Polling machines across a network
  • Monitoring event logs

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Event Log Parsing for the WSH Administrator


    (Page 1 of 4 )

    In the first two segments of this series we explored ways of analyzing and archiving event logs with WSH. In this article, I’m going to demonstrate specific applications of this that can benefit network administrators who are responsible for maintaining large numbers of machines.

    This scripts we’ll be creating in this article will take a two-fold approach.  The first is designed to be run from a server to consolidate event logs from several machines.  The second is designed as a network logon script that can be deployed on each machine in the network.

    The two-fold approach has two major benefits.  The first script can be managed from a single location.  It doesn’t require installation on every machine, which means it can be run at will as needed.

    The second script is designed to be run from each machine.  This gives us the advantage of creating a real time monitor that can be used for instant notification when specific conditions occur.

    You can use these methods independently of one another or in conjunction to obtain the desired level of efficiency that you are seeking.  I’ll discuss this further as I show you specific case scenarios.

    You’re going to need the script that we ended with in the last article.  We’re going to further modify it for our needs.  Both of the scripts that will be introduced in this article will grow off of the examples you’ve already seen.

    I’m not going to be showing you how to sort and manage the data that we retrieve from the event logs.  I may write an article later for that purpose, but for now, my goal is simply to show you how to prepare the data.

    I’m going to be making two assumptions throughout this article.  I believe they represent the most common opinions of network administrators as a whole.  You can, however, modify any of these to fit your own specific needs.

    The first assumption is that all event log entries should be archived.  For the sake of size and time you may wish to limit this to only certain types of events, but I believe that most administrators will agree that historical data is best preserved in its entirety.

    The second assumption is that you do not need to know about every single event that takes place in a system—especially when you are managing large numbers of systems.  Whenever monitoring or creating notifications, I will be limiting the range of data that we are watching.

    Again, any of these options can be modified to fit your own specific needs and style.

    One third and final thing to note is that I will be archiving all data in one central database.  Since each event is labeled by a machine name, sorting data for specific machines is not impossible.  You could easily create multiple databases for individual machines or groups of machines if you preferred.

    More Windows Scripting Articles
    More By Nilpo/Developer Shed Staff Writer


       · Wrapping up this 3-part series, I wanted to demonstrate ways for network...
     

    WINDOWS SCRIPTING ARTICLES

    - Understanding Procedures in VBScript
    - Printing Documents in WSH
    - Generating Outlook Signatures Based on Activ...
    - VBScript: Converting and Formatting with Fun...
    - VBScript: Conversion and Format Functions
    - VBScript: Array Functions
    - VBScript: Strings, You Can`t Function withou...
    - VBScript: More String Functions
    - VBScript: Functioning with Strings
    - Working with the Windows Registry in C++
    - Understanding Objects
    - HTML Applications: Giving WSH a User Interfa...
    - Modifying Computer Objects with Active Direc...
    - Logon Script to Send Email Notifications
    - Securing Computers and Active Directory





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway