|
Just what rules are actually applied to my computer? Yes, I can read
the Processing Rule Groups, but there are an awful lot of them. And
anyway, even when I disable a processing Rule Group it seems that subgroups
can still apply! That makes it incredibly difficult to work out what is
going on. I want to know for instance which Performance Counter objects
re being measured on my system as a result of applying the default Mom
Management Packs. Where do I start?
DumpMomRulesForComputerCMD.vbs will write all the Enabled
rules, for a given computer, to a text file for easy reading.
The name of the file will be the name of the Computer with a txt or csv
extension:
c:\temp\MyServer.txt
c:\temp\MyServer.csv
Although many rules may be associated with a particular computer, to make
this script useful it will only display the ones that are enabled and
active. See How the Processing
Rule Hierarchy Works .
The output can be one of two possible formats indicated on the command
line. 'TXT' format is a nice hierarchical text format (you will need to
switch off word wrap to appreciate this):
Computer Group (9) Microsoft Operations Manager Agents (Enabled)
(Level0) Agent
1. Event - Agent cannot send
encrypted data due to operating system restrictions.
2. Alert - Severity of Error or
higher - Network Administrators
3. PMC Threshold - Threshold
Process-Private Bytes-OnePointService Agent
(Level0) Agents, Consolidators or Data Access Servers
1. Event Filter - A method call to
an object in a COM+ application was rejected
2. Event - A thread timed out
after waiting for a script to finish executing 3. Event - A thread timed out
after waiting to execute a response
etc.
'CSV' format is a comma separated file for use with excel.
|
Computer Group
|
Processing Rule Group
|
Rule
|
Rule Type
|
|
|
|
|
|
|
|
|
|
|
Run this from the command prompt using the following syntax:
Cscript //NoLogo
DumpMomRulesForComputerCMD.vbs "myServer" "c:\temp"
"TXT" "Server1"
It takes as its input:
- The Name of
the Mom SQL server - this is the server that has the OnePoint
database. Incidentally OnePoint is hardcoded so if you have a
different database name change this in the script.
- Output
Directory - this is the full path to the folder where the
output files will be dumped. Notice this folder must exist before
the script is run.
- The File
Format - TXT indicates the hierarchical arrangement of groups
and rules in an ordinary text file readable using Notepad (with word
wrap switched off). CSV indicates a comma separated file for use with
Microsoft Excel. The latter output is a simple lis6t of the rules.
- The Name of
the Monitored Server- this is the name of the server whose
rules you want to investigate. This argument must be a perfect
match (case insensitive). It doesn't make any sense to use wild cards.
Please accept this script as is. Any feedback will
be gratefully received at Debug@Huntland.co.uk
|