Gathering MOM Inventory Information

 

Microsoft has provided MOM admins with a utility in the MOM 2005 Resource Kit that will allow a MOM administrator to collect information about a MOM server or agent installation and writes the information to an xml file for you to automatically. This post will provide you with information on how to use the utility.

 

Gathering MOM inventory information for Microsoft support personnel or to maintain MOM server baseline documentation requires that you gather the following information: Windows Installer log files, MOM Trace Logs, MOM Registry Information, MOM Server Configuration, Current running processes, Event Logs and save them in a specified location for review.

 

Or you could simply use the MOM Inventory utility (MomInfo.Exe) to accomplish this task for you in a mater of minutes. When executed the utility will capture the following information for you and place it into a compressed Cab file in the location you specify:

 

Windows Installer Information

MOM File Information

MOM Registry Information

MOM Server Configuration

Collects running process Information

MOM log files

Windows Event log files

Creates the Inventory.Xml file

 

Running the application is simply a matter of copying the MomInfo.Exe file locally and executing the GUI application. When executed the “MOM Inventory” dialog box will give you the option to “Run Collection” or “Close” the application. To run the utility choose “Run Collection” and when prompted specify a file name for the Cab file and change the location as needed. As the information is collected you will see the status of the utility and when completed you will see the following:

 

Creating cab file "C:\Directory\Folder\FileName.Cab"...

MakeCAB Report: Sun Apr 08 08:38:21 2007

 

Total files: 10

Bytes before:  5,509,445

Bytes after: 264,621

After/Before:  4.80% compression

Time: 1.16 seconds (0 hr  0 min  1.16 sec)

Throughput: 4634.21 Kb/second

 

There are command line options or switches available to the utility as well that allows you more control over the application by running the following from a command prompt: MomInfo /? And will provide you with the text found below:

 

MOMInfo.exe <Action Flag> [<Location>] [<Options>]

 

<Action Flag> - flag specifying the action to perform, can be any one of the following:

/rules - dumps the rules as xml (optional)

/responses - dumps the responses as xml (optional)

/varset - dumps the varset as xml (optional)

/clearqueue - clears all MOM queues (optional)

/maintenancemode:<timeout> - sets maintenance mode (optional)

 

<timeout> is the max amount of time in seconds to remain in maintenance mode, defaults to '-1' (INFINITE), set to 'exit' to exit maintenance mode (optional)

 

/scriptdebugging:<script> - sets script debugging (optional),<script> is the name of the script to debug defaults to '*', set to 'off' to turn script debugging off (optional)

/errorhandling:<mode> - sets error handling (optional),

<mode> is the either off (default), queue, or auto (optional)

 

[<Location>] - location to run the action on (optional, defaults to a gent), can be any one of the following:

/momagent - returns info from the agent-side(optional)

/momserver - returns info from the server-side(optional)

 

[<Options>] - can be any one of the following (optional):

/s - suppresses all prompts (optional)

/out:<file> - file to contain the output of the action (required for rules, responses, and varset actions)

/config:<Config Group> - the config group to run the action against (optional)

/server:<server name> - the server to run the action on (optional)

 

Published Sunday, April 29, 2007 11:41 AM by dhite
Filed under:

Comments

No Comments