Setting Overrides on all relevant Rules and Monitors

Can someone please help me with the following question? I was reading the post below (I believe written by
Cameron
Fuller) detailing some best practice around overrides. It stated if you override a ‘parameter’ for one rule/monitor (e.g. let’s say a parameter
dealing with a threshold) you should override the parameter for ‘all’ rules and monitors 'that use this parameter'. More information from the post below
Make sure that an overridden parameter is set for every rule and for every monitor that uses the parameter
When you override a parameter, make sure that the parameter is configured for each rule that uses the parameter and for each monitor that uses the parameter. There may be more than
one rule or monitor that uses the particular parameter. For example, the following rules and monitors use the
Intersite Expected Max Latency parameter: Monitors
AD Replication Monitoring
Rules
AD Replication Performance Collection - Metric Replication Latency
AD Replication Performance Collection - Metric Replication Latency: Maximum
AD Replication Performance Collection - Metric Replication Latency: Minimum
AD Replication Performance Collection - Metric Replication Latency: Average
Now my question is:
How do I discovery all the rules/monitors that are using this particular ‘parameter’?
For example using either PowerShell or SQL query. If PowerShell I assume you would have to
use Get-Rule or Get-SCOMRule with the –Criteria filter. Does anyone have an example please?
As a side note I could do the following in PowerShell as one way to find all cmdlets what use the –path parameter as one of their parameters
Get-Command -CommandType cmdlet | where {$_.parameters.keys -eq "path"}
So to recap: As above if I want to set an override on ‘Intersite Expected Max Latency’
for a given rule or monitor how do I find all other rules/monitors also use ‘Intersite Expected Max Latency’
as I can override these too?
Thanks All
AAnotherUser__
AAnotherUser__

Hi,
We may use the specific word to filter out those proper rules and monitors, to filter out all monitors that which name contains latency:
get-scommonitor -name “*latency*”
Please refer to the below links to find more details about the get-scomrule and get-scommonitor command:
Get-SCOMRule
http://technet.microsoft.com/en-us/library/hh918556(v=sc.20).aspx
Get-SCOMMonitor
http://technet.microsoft.com/en-us/library/hh918469(v=sc.20).aspx
Regards,
Yan Li
Regards, Yan Li

Similar Messages

  • Script to change the priorty of all rules and monitors in a Management Pack

    Script to change the priority and severity  of all rules and monitors in a Management Pack in an override MP .We are deploying an MP in production and don't want the helpdesk to take any action on any alerts, so want to set all of them as informational.Once
    they are reviewed then we will delete that override mp
    Can some one help me with a script
     

    Is this MP sealed?  Doesn't really matter..  Unseal the MP if it is sealed.  Now you have access to the RAW XML.  Alert severity and priority have xml tags.  You should be able to do a search and replace and change all the various
    levels (0-3 or whatever they are) to the levels and priority you want.
    Then you can seal the mp with your own key, or just roll it into prod as an unsealed MP.
    This seems, to me, like the quickest and easiest way to make all of these changes at once.  To bulk override everything, not even sure it's still around or even works, there was a tool called Override Explorer, and you could select multiple monitors/events
    and create overrides.  I can't remember very much about the tool because we didn't use it much, but I think it did this with live data, meaning it connected to your management server, and you made the changes in real time.  
    Of course you wouldn't want to do this in production, so do it in a lab, then export the override mp and put it in prod.
    There is probably some snazzy way to do this with PoSh, but I am not aware of any atm.
    Regards, Blake Email: mengotto<at>hotmail.com Blog: http://discussitnow.wordpress.com/ If my response was helpful, please mark it as so, if it answered your question, then please also mark it accordingly. Thank you.

  • How to find what are all the rules and events are monitoring for specific server in SCOM 2007

    how to find what are all the rules and events are monitoring for specific server in SCOM 2007.
    I need to know what are all the events, services, and rules are monitored for the specific server.
    Kindly help me friends.

    how to find what are all the rules and events are monitoring for specific server in SCOM 2007.
    I need to know what are all the events, services, and rules are monitored for the specific server.
    Kindly help me friends.
    Thanks for the question Sandoss. This is something that we all come across at sometime.
    Thanks & regards, Sumit Agrawal
    The lack of this feature is an inexcusable oversight for an enterprise management product.  They have some serious lightweights making design decisions on the SCOM team. 5 thumbs down. 
    BTW the answer is probably LOTS of stuff. Literally 100's of workflows are running on any server. 
    The following OpsMgr DB query will list all running monitors on a server. Change the name of @srv. I think this works pretty well.  I'd like some feedback if something is missing.
    DECLARE @srv varchar(30)
    SET @srv = 'your name here'
    SELECT mon.displayName as monitor, bme.FullName,bme.DisplayName as object,
    case
        when s.HealthState = 1 then 'healthy'
        when s.HealthState = 2 then 'Warning'
        when s.HealthState = 3 then 'Critical'
        else 'N/A'
    end as Health
    FROM state AS s WITH (NOLOCK)
    left join BaseManagedEntity as bme WITH (NOLOCK) on s.basemanagedentityid = bme.basemanagedentityid
    left join dbo.MonitorView Mon WITH (NOLOCK) on Mon.ID = s.monitorid
    where
    bme.FullName like '%' + @srv + '%'
    and s.HealthState <> 0
    and mon.IsInternalRollupMonitor = 0
    and mon.IsExternalRollupMonitor = 0
    order by bme.DisplayName, mon.displayName

  • Show Running Rules and Monitors for this Health Service task for Unix/Linux agents?

    I know there is a way to do this for Windows agents, but is there a way to do this for Unix/Linux agents?  When I click on the agent I dont see the option in the task pane.  Is there something else that I can use?
    If you're going to answer my question with pretentiousness or disrespect, move on to another question. I don't need your help. Thank you

    Figure it out after some digging
    http://blogs.technet.com/b/daniels_opsmgr_blog/archive/2011/05/14/troubleshooting-mp-fix-wrong-roll-up-monitor-state.aspx
    I didnt have the MP imported.  Although it works now, not very useful.
    EFD
    If you're going to answer my question with pretentiousness or disrespect, move on to another question. I don't need your help. Thank you

  • Operations Manager 2012 R2 : how to find all my rules, monitors and alerts (all in one custom MP)

    How do I find all the rules, alerts, monitors and whatever in a give custom Management Pack?
    All the bits and pieces I have created I have stored in a MP called "1 - MYDOMAIN CUSTOM"
    Now suppose I want to review all my customisations. How do I do it? I had hoped that it would appear in a scope somewhere...
    CarolChi

    Many thanks
    1) I can't find this: in the Authoring Console I have
    management pack templates, distributed applications, groups, management pack objects
    In Management Pack Objects I have Attributes, Monitors, Rules, ... but no where can I find ALL the customisation I have done.
    2) Where can I find an example of powershell?
    3, 4) Where do I get the override explorer. I was hoping not to have to use other tools.
    5) I read that the Efffective Configuration Tool works with older versions of OpsMgr - is this true?
    6) Again can you help with a link to the MP Viewer Tool?
    CarolChi

  • Firewall: The invalid rule and all subsequent rules were skipped.

    Hi All,
    As a web developer, I have had some experience administering Linux, Solaris, Windows, but I am new to OSX.
    I have a problem with the firewall I need help with.
    Here are the symptoms:
    1) Address Groups: Besides any, I have an address group called Admin, it contains my home and work ip address. Other address group is for LAN. When inspecting the properties of a group, the interface tells me 'valid IP address' or 'address range from .. to ..'. This seems OK
    2) When editing an Advanced Rule, I can select one of the Address Groups just created for a source/destination. I save the configuration, resulting in a error 'Error while writing settings (cannot apply one or more rules - detail in log)'.
    Opening the editor for the rule again, the field with the source/destination now has a small note under it: 'Invalid IP address, range or group). This is my first problem.
    3) I have now deleted all Advanced Rules and deselected the ones I cannot delete. Still the error message 'Error while writing settings...'. The log offers no help at all:
    May 23 10:17:07 Shaman servermgrd: servermgr_ipfilter:ipfw config:Notice:Disabled firewall
    May 23 10:17:07 Shaman servermgrd: servermgr_ipfilter:ipfw config:Info:Finished generating rules in 2 ms
    May 23 10:17:07 Shaman servermgrd: servermgr_ipfilter:ipfw config:Notice:Flushed rules
    May 23 10:17:07 Shaman servermgrd: servermgr_ipfilter:ipfw config:Error:Failure code returned by ipfw command: 64, message: 'Line 18: recv, xmit, via require interface name or address\n'
    May 23 10:17:07 Shaman servermgrd: servermgr_ipfilter:ipfw config:Error:The invalid rule and all subsequent rules were skipped.
    May 23 10:17:07 Shaman servermgrd: servermgr_ipfilter:ipfw config:Notice:Enabled firewall
    I cannot find out what is wrong from this output.
    3) At this point I may as well turn the firewall off, for instance I have given access to http/ssh/ftp to group 'any', but they can in fact reach any port at all.
    Thanks in advance for any help or suggestions,
    Sander
    2GHz PowerPC G5   Mac OS X (10.4.6)  

    Well, the obvious question is what does line 18 say?
    The log clearly states that the rule on that line is the one it's having problems with:
    May 23 10:17:07 Shaman servermgrd: servermgr_ipfilter:ipfw config:Error:Failure code returned by ipfw command: 64, message: 'Line 18: recv, xmit, via require interface name or address\n'
    Check /etc/ipfilter/ipfw.conf for the configuration file in question.

  • Changes at once to all Business rules

    Hi All,
    I am having a requirement where I need to do some changes in all my Business Rules at one time which is related to the script content. How can I achieve this task?? From where and all I need to fetch for the scripts information. I would appreciate your suggestions. I using Planning 9.3.1, windows env.

    Jockney also brings up a good point to use Macros where you have repetive code in your rules.
    If you are looking to run some type of script on all the rules and you have a few the VB code below can be used to export these to a text represenation.
    'Courtesy of John A. Booth
    'Save as export_rules.vbs
    'Replace SQLSERVERNAME AND AAS_CATALOG with their proper names for your environment
    'Currently writen to work with MS SQL Server
    'The id this executes as must have select access on the AAS_CATALOG
    'Large rules (> 40KB) will take some time to export. Small rules export very quickly.
    'CODE BEGINS
    Dim numRules
    Dim ID
    Dim length
    Dim index
    Dim headerSize
    Dim fileName
    Dim rule
    headerSize = 233
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set rs = CreateObject("ADODB.Recordset")
    Set cnSS = CreateObject("ADODB.Connection")
    Set shellObj = CreateObject( "WScript.Shell" )
    if (fs.FolderExists(shellObj.ExpandEnvironmentStrings("%USERPROFILE%") & "\Desktop\rules") = False) Then
    fs.CreateFolder (shellObj.ExpandEnvironmentStrings("%USERPROFILE%") & "\Desktop\rules")
    End If
    cnSS.Open "Provider=sqloledb;" & "Data Source=SQLSERVERNAME;" & "Initial Catalog=AAS_CATALOG;" & "Integrated Security=SSPI"
    strQuery = "Select max(id) from hbrrules"
    rs.Open strQuery, cnSS
    If (rs.EOF <> True) Then
    numRules = rs.fields(0)
    For ID = 1 To numRules
    rule = ""
    strQuery = "Select name from hbrrules where id=" & ID
    rs.Close
    rs.Open strQuery, cnSS
    If (rs.EOF <> True) Then
    fileName = rs.fields(0)
    rs.Close
    strQuery = "Select body from hbrrules where id=" & ID
    Set rulefile = fs.CreateTextFile(shellObj.ExpandEnvironmentStrings("%USERPROFILE%") & "\Desktop\rules\" & fileName & ".txt", True, True)
    rs.Open strQuery, cnSS
    If (rs.EOF <> True) Then
    length = rs.fields(0).ActualSize
    For count = 1 To length - headerSize - 5
    index = count + headerSize
    If Chr(AscB(MidB(rs.fields(0).Value, index, 1))) <> Chr(10) Then
    rule = rule & Chr(AscB(MidB(rs.fields(0).Value, index, 1)))
    Else
    rule = rule & VBNEWLINE
    End If
    Next
    rulefile.WriteLine(rule)
    rulefile.Close
    End If
    End If
    Next
    End If
    rs.Close
    'CODE ENDS

  • How to set up displaying all jsp-errors in the problems-list?

    how can i set up that all jsp-problems and warnings like "some tag does not have an end tag..." are displayed in the problem list?
    when i open up a jsp-page in the editor, the warnings are displayed i can´t see them in the problem list. in the older version (m7) these warnings have been displayed by default and i can not find any setting to display this.
    any idea?
    tnx
    Rel

    When exactly it stopped displaying in Problems View? Have you installed any other plug-ins to Eclipse?
    Try the following steps:
    - Quit & relaunch Workshop
    - In Problems View, Launch Filters... window
    - Click "Restore Defaults" button (make sure JSP problem is checked)
    - Click OK
    - Does the warnings displayed in Workshop JSP/XML Editor appear in the Problems View?
    In case you still face the same problem, please send the following information to [email protected]
    * Help > About Workshop > Click on Eclipse icon - Version & build id
    * Help > About Workshop > Click on Workshop icon - Version & build id
    * Window > Preferences > Java > Installed JREs - the JRE/JDK version
    * .log file from <Eclipse Workspsace>.metadata directory
    * m7.log.0 from <Workshop_Home_Dir>Workshop\eclipse\plugins\com.m7.nitrox_3.0.0 directory
    * <Workshop_Home_Dir>Workshop_InstallLog.log
    * If you can remember, the steps exercised (or plug-ins installed) before encountering this behavior

  • Validate all business rule

    hi, is there a method to validate all business rules quickly in an application?

    I take it you are talking about EAS business rules, if so I am aware of being able to validate all the rules at once.
    The only way I could think of was to use the command line launcher to run through all the rules and use the -validate parameter.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Distribution rules and projects - automatic checks

    Hello,
    I haveve three issues/questions regarding distribution rules and projects:
    - Are we able to implement an automatic control which does not allow bookings without distribution rules? The
    control already exists for booking which we'll be entered manually. But for automatically generated postings
    is not always in place. For example by closing a production order when the appropriate distribution rule is
    missing in the BOM.
    - Additional for projects: Either the distribution rule which is defined in the project master data should be
    proposed automatically and/or only the defined distribution rule is allowed for any bookings. This is mainly
    necessary for invoices which are registered only in SAP and not in PM (for example sales commission invoices,
    transport costs etc.). There people often use distribution rules which are not suitable.
    Our understanding is that once a project is set-up with a distribution rule and an entry is posted against
    that item, the distribution rule can not be changed. Is this correct?
    With kind regards,
    Amine Z.

    Closed so I can open a new thread

  • Rules and messages list

    Hi,
    I'm looking for a list which contains all the rules and messages in a single place, with details and examples if possible. Now I can see them here:
    http://opensource.adobe.com/svn/opensource/flexpmd/trunk/flex-pmd-ruleset/src/main/resourc es/com/adobe/ac/pmd/rulesets/
    In fact, I am looking for a "Flex best practices" document.
    Thanks

    Adobe has a Flex Coding Conventions here:
    http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions
    The Flex PMD Ruleset Creator has, I think, all of the default rules - some have examples:
    http://opensource.adobe.com/svn/opensource/flexpmd/bin/flex-pmd-ruleset-creator.html

  • 865 PE Neo2, Intermitantly screen goes blank and monitor turns off.

    Fans all will run and monitor will not come back on.  Have to press reset button to restart.  Also sometimes on boot up monitor will not turn on and it continues to book like normal with no display.  Is this a failing video card or motherboard.  Runs good, just not very reliable.

    My have leaky capacitors on Video card and Motherboard.
     Are you saying you have bad capacitors on both the video card and the motherboard? If yes then that is most likely what is causing your problem. If you can replace the caps yourself or have someone that can do it for you without costing too much give that a try otherwise you will need to get new boards.
     Can you take some pictures and post them?

  • How To Make mozilla.cfg, override.ini, all-companyname.js, Files To Work Once And For All For All Users

    I'm currently trying to apply a fix to the firefox browser (version 23.0.1) on over 250 computers. Setting default webpages, disabling annoying prompts like the default browser and importing bookmarks, and erasing the history on shutdown, or startup. This is very easily done modifying the pref.js file, but I will not edit that file, it's out of the question. Another FF update will erase or overwrite all of my modifications.
    I run a computer lab in the university that is locked down using a Net Support School console. You don't need to look that up. Basically all websites are restricted except the ones the ones I whitelist. The websites we use have extensive API's for JS, CSS, Java, PHP, etc... We utilize technology in order for students to use graphing calculators, video's, and taking module test from these white-listed websites, like Pearson, or Aleks. Now with that said, cookies, and stored profile history become a problem, and on some day's up to 25% of the students using the computers need their entire history deleted in order for a page to load. I think I fixed this problem permanently by whitelisting backend sites importing plugins, and API's etc, that I found from the developers console. Whatever. What I've learned from all of this is that Firefox can be very customizable utilizing the "...\Mozilla Firefox\mozilla.cfg" and the "...\Mozilla Firefox\defaults\prefs\all-companyname.js" (or custom.js) The problem, is no matter what I try I can't get these to work. The closest I got was here:
    http://www.intrntpirate.com/?p=615
    Again, even that ^^ didn't work. I followed these directions to a "T". What is wrong with the above information provided in the link? Why is firefox making harder and harder for us to optimize it for massive deployments across a corporation and a university? I'm not going to do any fancy hacks to avoid the main issue. I need mozilla.cfg, and the all-companyname.js, and the override.ini files to work, if and only if they are still relevant.
    These are what my files look like so far:
    name: all-lmc.js<br />
    location: C:\Program Files (x86)\Mozilla Firefox\defaults\pref\<br />
    pref("general.config.filename", "mozilla.cfg");<br />
    pref("browser.startup.homepage", "https://(some url)");<br />
    name: override.ini<br />
    location: C:\Program Files (x86)\Mozilla Firefox\<br />
    [XRE]<br />
    EnableProfileMigrator=false<br />
    <br />
    name: mozilla.cfg<br />
    location: C:\Program Files (x86)\Mozilla Firefox\<br />
    //<br />
    lockPref("privacy.sanitize.sanitizeOnShutdown", true);<br />
    lockPref("privacy.sanitize.promptOnSanitize", false);<br />
    lockPref("browser.shell.checkDefaultBrowser", false);<br />
    lockPref("toolkit.telemetry.enabled", false);<br />
    lockPref("toolkit.telemetry.prompted", 2);<br />
    lockPref("toolkit.telemetry.rejected", true);
    I've tried using, and not using, the automatic mozilla configurator. I've tried changing lockPref to pref. Nothing works. Not the override.ini, not the all-lmc.js, and not the mozilla.cfg. I've wasted hours reading through blogs of experts telling us to modify files that don't exist, or beating around the bush. I'm done researching. If you have the answer or want to help me figure this out just remember to keep it simple. Please. I ultimately want to package all the config files, with a how to, in a zip folder onto our shared drive. To have FF customized and ready to deploy to different departments across campus.

    Thanks very much for your help, but I'm still overlooking something. I double checked to make sure that I did not have a hidden .txt file extention. I then decided to abandon the lock on preferences idea until I get it working. I converted my mozilla.cfg file back to plain text. I made sure I do not have an extra blank line at the end of each file. The syntax looks good, as far as I can tell. I'll copy and paste what I have so far. Did I have the file locations correct posted above? Also, if you feel i can delete some lines of text in my mozilla.cfg file I'll be happy to do so.
    mozilla.cfg
    <pre><nowiki>//
    pref("privacy.sanitize.sanitizeOnShutdown", true);
    pref("privacy.sanitize.promptOnSanitize", false);
    pref("browser.rights.override", true);
    pref(“app.update.auto”, false);
    pref(“extensions.blocklist.enabled”, false);
    pref(“extensions.shownselectionUI”, true);
    pref(“browser.shell.checkDefaultBrowser”, false);
    pref(“toolkit.telemetry.enabled”, false);
    pref(“toolkit.telemetry.prompted”, 2);
    pref(“toolkit.telemetry.rejected”, true);
    pref(“app.update.auto”, false);
    pref(“browser.download.useDownloadDir”, true);
    pref(“browser.search.update”, false);
    pref(“signon.autofillForms”, false);
    pref(“signon.rememberSignons”, false);
    pref(“browser.download.manager.scanWhenDone”, true);
    pref(“browser.formfill.enable”, false);
    pref(“xpinstall.enabled”, true);</nowiki></pre>
    channel-prefs.js
    pref("app.update.channel", "release");
    override.ini
    [XRE]
    EnableProfileMigrator=false
    all-lmc.js
    pref("general.config.filename", "mozilla.cfg");
    defaultPref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=http://bbc.co.uk");
    Again, thank you very much for your time. Do I create my own browserconfig.properties, and firefox.js? Also, I forgot to mention I'm running Windows 8.

  • Set up rule and lost mail!

    I thought I was doing a 'good' thing when I set up a rule in Mail that said if the email address does not contain my exact email address, please move it to the junk folder. I set it up for both my cable company's email address and for my Mac address. Went back into Mail- all messages gone from both accounts!! Wiped out. So I went back into Rules and removed both rules. The Mac mail reappeared but my cable company emails did NOT reappear. Now I can probably recover them cuz I back up every morning but since the backup this morning, of course I have gotten some emails which did not get backed up. What happened?! Where did they go? Can I get them back? Ugh! Judy

    I tried rebuilding the mailbox and that didn't help. Judy

  • I just got my new i phone 5 s and did all the syncing and backing up for my old iphone 4s and set my 5 up and synced it on itunes  it synced evrything but the contacts and othe minior things were the only things that really transfered  my apps and all my

    I just got my new i phone 5 s and did all the syncing and backing up for my old iphone 4s and set my 5 up and synced it on itunes.  It synced evrything but the contacts and other minor things. those were the only things that really transfered.  My apps and all my music did not. Tthe thing is when i just went to go manually start dowmloading a few of the songs that i knew i already bought , itunes is making me pay forthem again.  Its not saying instal like it usuall does when you go download something aleady purchased on your itunes account.  I think or thought it might have something to do with the fact that i just changed my apple id name right before i got my new phine but my apps all re-downloaded (manually-no syncing) without making me pay for them again.  i dont want to have to purchase allllll my songs again.  Can someone please help me!!  Itried going back to my old id or signing out of this id and signing in as my old apple id but now it wot even get on that oneits likjeit doesnt exist anymore..   And when i plug my old phone it shows in the itunes everything thats supposed to be there but all that doesnt stay in the itunes when i actually un plug it so when i plug my 5 in to my computer none of the stuff is in the store for me to actually transfer it  I am so good with technology and this has me stumped  please help

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

Maybe you are looking for

  • How can I improve large deletes?

    Hi, In order to keep our database size to an acceptable level, we delete all records older than 4 hours, every 15 minutes with a delete statement like this: DELETE FROM mytable WHERE add_time < (1174391100000 - 14400000); add_time is a BIGINT contain

  • Desktop icons disappear in Lion

    This happened awhile ago and then the problem went away with Lion update.  Now it is happening again.

  • TYPE 2 UNDO (_SYSSMUx$) object type

    Hello Everyone, I just want to be sure the following situation is normal: I just noticed that SYS user on one of our server was taking about 22 GB of disque space. 20 of these 22GB are allocated to "TYPE2 UNDO" segment type. TYPE2 UNDO segments are u

  • Problems with My Nano when using Accessories

    I bought my nano in November and haven't had any problem with it...until now. For x-mas I got an ITrip and a music station. My Nano doesn't like them. It worked once, and then stopped working. I took my nano to an Apple Store where they reset everyth

  • Not able to update any app on ipad2

    Hi , I am trying to update apps on my ipad2 but not able to do so . Every time I click on an app to update it says unable to download app followed by the options "done" and " retry ." moreover some of the app icons I am clicking on just flash but the