|
Huntland Services Ltd Tel: +44 (0)1392-490518
|
Event Statistics Portfolio |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Back | Download The Scripts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
IntroductionWhat is the chief source for Events in my organisation? On my SQL Server, which events are the most frequent and how long do they take before being registered in my database? The following scripts list events from various angles to provide a view on how many are being created and by whom. The output will be displayed on screen and also written to a TXT file or CSV file suitable for use with Excel. The result includes latency details indicating how many seconds it took (Max, Min and Average) from the condition first being detected to the point where it was committed to the Database. This reflects how well Mom is keeping up. If the Agent has been in constant contact with the CAM then these figures will be low, but if contact has been interrupted for any reason the latency figures will rise dramatically. Because of the size of the output these scripts should only be run from a Command Prompt using CSCRIPT. You will need to specify the following paramaters:
In all cases your account must have access to the MOM SQL Server and at least read access to the Onepoint database. Windows Security ('Integrated') is assumed. If your database is many gigabytes in size then you can expect a delay while the query runs. Each script has two commented timeout values controlling the maximum connection time and the maximum time to run a command. By default these are set low and may have to be increased for larger databases.
1. EventSource.vbsPurpose: To list which sources are responsible for registering events per machine. Syntax: cscript eventSource .vbs myMomSqlServer C:\temp\eventSource.txt myServer Result:
2. EventSource_Summary.vbsPurpose: To list which sources are responsible for registering events altogether Syntax: cscript eventSource_Summary.vbs myMomSqlServer C:\temp\eventSourceSummary.txt Result:
3. EventProvider.vbsPurpose: To list which providers have been delivering events per machine Syntax: cscript eventProvider.vbs myMomSqlServer C:\temp\eventProv.txt myServer Result:
4. EventProvider_Summary.vbsPurpose: To list which providers have been delivering events altogether Syntax: cscript eventProvider_Summary.vbs myMomSqlServer C:\temp\eventProv_Summary.txt Result:
5. EventSummary.vbsPurpose: A summary of all events Syntax: cscript eventSummary.vbs myMomSqlServer C:\temp\eventSummary.txt myServer Result:
Please accept these scripts as is. Any feedback will be gratefully received at Debug@Huntland.co.uk |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||