Maintenance Mode Utility v 1.01

download V1.01

 

Version 1.01 (16. Oct. 2005)
I added the timeflag, finally. I did not want to rewrite the whole code, so I added just a few lines. The code is not Bulletproove, b
ut I think it will do the job. You have to enter a duration in Minutes always behind the ComputerGroupName or the ComputerName parameter. (See Usage and Example below) Be aware that you have to do that for Adding and for Removing. Otherwise an exception error happens.
 

Version 1.0 (18. June 2005)   download V1.0
This tool is from the Example section in the MOM 2005 SDK. It let you set or lists computer groups or single computers in Maintenance Mode. In my opinion is this tool better than the maintenance option in MOMInfo, because the settings are not dependent on the Agent and nothing has to be transferred between.

Installation:

Unzip the tool to a folder on the MOM Management Server. If you like to schedule this tasks use the windows scheduler.

Example:

MaintenanceModeUtility -a DOMAIN Server1 120

Usage:
MaintenanceModeUtility.exe -l|-g|-a|-r [ComputerGroupName time]|[ComputerDomain ComputerName time]
-l: lists all computers in maintenance mode.
-g: lists available computer groups.
-a: places computers in maintenance mode.
-r: removes computers from maintenance mode.

Examples:
MaintenanceModeUtility.exe -l
MaintenanceModeUtility.exe -g
MaintenanceModeUtility.exe -a ComputerGroupToAdd time
MaintenanceModeUtility.exe -r ComputerGroupToRemove time
MaintenanceModeUtility.exe -a DOMAIN ComputerToAdd time
MaintenanceModeUtility.exe -r DOMAIN ComputerToRemove time

 

 



 All Scripts and Documents are as is. No guarantee.
For problems or questions regarding this Web site contact MOM Solutions Webmaster.
Last updated: 02/09/06.