Welcome to MSDN Blogs Sign in | Join | Help

Disabling/Enabling multiple rules/monitors/discoveries at once

One of the things I have heard on several occasions is that people want to disable or enable a number of rules/monitors/discoveries at once. Currently its only possible to enable or disable one at a time. This can be an issue when you are trying to disable 100 rules. To help with this problem I created a utility that allows you to multiselect a number of rules/monitors/discoveries and create an override to either disable them or enable them.

The link to the zip file is at the bottom of this post.

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included utilities are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Published Saturday, August 04, 2007 12:01 AM by Boris Yanushpolsky

Attachment(s): OverrideCreator.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, November 13, 2007 4:59 PM by Ron

Doesn't seem to work with 2007 SP1?

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Wednesday, November 28, 2007 10:33 AM by Mark Webster

Truly a brilliant tool. Thanks for making this available.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Monday, March 31, 2008 5:44 PM by Richard

Boris, incorporate some versioning into these tools.

BTW:  The tools are invaluable to me, thanks.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Friday, May 09, 2008 8:30 AM by Roger Morell

Hi!

This is an essential tool that should be expanded and, preferably added to the Authoring pane.

What I lack is the ability to select a MP, have three options, Monitors, Rules, Discoveries. And then disable the selected options for the entire MP.

We use this for different classes of servers that should not have all the monitoring running.

Keep up the good work

Roger

# A Great place for SCOM scripts

Sunday, July 13, 2008 7:11 AM by Dario IT Solutions Blog

Check out Boris Yanushpolsky's blog ( http://blogs.msdn.com/boris_yanushpolsky ). Boris is an SCOM

# SCOM 2007 Useful Links

Thursday, October 02, 2008 1:58 PM by Dario IT Solutions Blog

Main Downloads page (catalog, documentation) http://technet.microsoft.com/en-us/opsmgr/bb498232.aspx

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Wednesday, October 08, 2008 5:05 PM by Ted Hacker

Is there a trick to getting it to work? When opening a connection to a management server the OverrideCreator.exe goes unresponsive under Vista from my PC.  Under XP, opening the executable produces an error.

My Management Group is running SP1.  Will that matter?  I see the other comment about it not working with SP1, but no reply.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Wednesday, October 08, 2008 6:06 PM by Boris Yanushpolsky

Do you have the OpsMgr console installed on the computer? Do you have admin access to the RMS (OpsMgr permissions rather than Windows permissions)?

# Source Code

Monday, November 03, 2008 3:07 AM by Yair

The source code for this will be invaluable!

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, December 23, 2008 12:17 AM by cpero

Unfortunately i wrote my own version of this before I found this article (DOH !!)  However, the one I wrote is much slower since I process each over-ride one at a time with a verify and then an update.

It has to be possible, I just havent found the code (or searched the SDK help file hard enough), to create a collection in which all of the over-rides are verified and then written all at once.

Are there any hints or snippits on this? It takes a LONG time to process 100 over-rides one at a time.  Of course it is still much faster than doing it manually.

Craig

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, December 23, 2008 12:19 AM by cpero

b.t.w... yours is MUCH nicer than what I wrote by a long shot.  I took the approach of editing all rules/monitors/discoveries for the whole management pack versus grouping by class.  Yours is definitely going in my toolkit.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, December 23, 2008 1:28 PM by Boris Yanushpolsky

What you can do is first create the overrides and only then call Verify or AcceptChanges.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, December 23, 2008 3:35 PM by cpero

Thank you very much.  I "JUST" figured out (minutes before you replied to this) that I can process all of the over-rides first and then call the "verify" and "accept changes" methods on the TargetManagementPack object instead of after EACH override (from the override object).  I took a "stab" to see if it would work. Now what took 10 minutes takes 15 seconds.  

Again, thanks for your reply.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, December 23, 2008 3:41 PM by Boris Yanushpolsky

Awesome! Glad to hear this is working well for you.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, January 13, 2009 8:24 AM by Jan Skinnerup

This looks to be a very useful tool. However when I connect to my RMS the application just hangs saying "not responding". But it eats up 50% of my CPU.

I have Domain Admin rights on the server and the Domain Admin group is added to the Operations Manager Administrator in the admin console.

Any ideas?

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, January 13, 2009 10:14 PM by Boris Yanushpolsky

Do you have a very large number of management packs imported or a very large number of overrides? Does the utility eventually load the data?

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, January 20, 2009 3:32 AM by Jan Skinnerup

I have 96 management packs imported right now and only a handfull of overrides. I haven't had the patience to let the utility run for more than 10 minutes yet... so I don't know if it eventually loads data.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Thursday, January 22, 2009 2:49 PM by Boris Yanushpolsky

The reason I asked is to determine whether this is a performance issue in the utility or whether it hangs forever. This way I can better understand how to fix the issue for the next version.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Friday, January 23, 2009 3:26 AM by Jan Skinnerup

I had it running for four (4) hours last tuesday without it ever loading anything.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Friday, January 23, 2009 2:01 PM by Boris Yanushpolsky

Thanks. That confirms that the utility is running into a problem loading the information from the management group. I will try to take a look later next week.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Wednesday, February 04, 2009 3:59 AM by Bob Cornelissen

Hi Boris, same here for the not responding part. I have run it from a Vista workstation and on the RMS itself (win08 64bit). Both the same story. The override-explorer tool loads fine by the way. Thanks for looking into it.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Friday, February 06, 2009 2:18 PM by David Pavone

Hi Boris,

I am also running into the problem with the tool taking forever to load. I let it run for 2.5 hours. I have 200+ MP's loaded with loads of rules + monitors.

Looking forward to the fix - this is good stuff feel free to send me a message if you want me to try something. dpavone@gmail.com

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Friday, February 13, 2009 3:31 PM by Stan

Cool tool, but if it can delete Overrides as well as disable or enable, that would be great also.

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Friday, March 06, 2009 5:23 AM by Cyril

Hi Boris

I'm creating a similar tool to create overrides for rules and monitors (modify severity or priority). It works perfect for the monitors but for the rules it just works with some of them. Is there something special with the rules (for modifying alert severity or priority)?

There must be something wrong by passing the parameter "GenerateAlert" - I also tried to enumerate the corresponding ManagementPackWriteActionModule and pass the GUID to the parameter, but no success (it seems that it just accepts the name as parameter)...

Thanks and Greetings from Switzerland!

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Tuesday, April 14, 2009 2:16 PM by Candace Jones

Hi Boris...

I was just wondering if this tool should work in SCOM RC?

thanks candy

# re: Disabling/Enabling multiple rules/monitors/discoveries at once

Wednesday, April 15, 2009 12:41 PM by Boris Yanushpolsky

it should work

# Les meilleurs utilitaires pour Opsmgr 2007

Mpviewer 1.7 Visualiser le contenu des MPs sous forme de fichier HTML ou Excel de Boris Yanuspolsky...

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker