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.

Similar Messages

  • ¿How do you change the time of all images and do the chroma key effect in ¡Movie 10.0.2?

    I know it's a simple question, but i had ¡Movie '08 and I bought the latest version, and it's really different, so I don't know, if i have like 150 photos (it's an stop-motion) how can I put the same duration? And do the chroma key effect? And I don't know why, all the images have the Ken Burns effect and I don't know how to quit it. Thanks for the help!
    Marcireca

    I solved the same time problem, but now the problem is that when i use the chroma key it automatic uses the blue screen effect, not the gren (wich I want). Please help! Thanks!

  • 8.0.1 changed the language of all songs and playlists

    I just updated iTunes and now all of my playlist names and my song names are changed into another language's lettering. It appears to be an Mid-Eastern Language like Hebrew but I'm unfamiliar with it. The titles are corrected when highlighted. I checked international settings and English is still my preferred language. No problems with my iPhone's song list or language setting though.

    Bogus Hebrew in iTunes is normally caused by having a copy of the Lucida Grande.ttf font on your machine, probably in Library/Fonts or Home/Library/Fonts. Get rid of it. *DO NOT* delete Lucida Grande.dfont in System/Library/Fonts, as this is essential.

  • 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

  • Powershell script to change the a column value of all documents in a site.

    Hi,
    I need a powershell script to change the value of a column (a site column which has been added to all document libraries) in all documents in a site,
    For example: 
    -column 1 is a site column added to all libraries
    the value of column 1 of all documents under this site: http://intranet.doman/ex1 should be equal to V1
    the value of column 1 of all documents under this site: http://intranet.doman/ex2 should be equal to V2
    So, if I can write a powershell script to change the value of all documents in a site, I can modify it for different site that I have and run it for each of them individually,

    cls
    # Is dev version?
    $dev = $false
    # Configuration
    $termStore = "Managed Metadata Service"
    $group = "G1"
    $subjectMatterTermSetName = "Subject Matter"
    # Check if SharePoint Snapin is loaded
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {
         Add-PSSnapin Microsoft.SharePoint.PowerShell
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") | Out-Null
    function GetTermStore($site, $termStore, $group, $termSet) {    
        $session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySession($site)
        $termStore = $session.TermStores[$termStore]
        $group = $termStore.Groups[$group]
        $termSet = $group.TermSets[$termSet]
        return $termSet
    if($dev) {
        Write-Host "Running DEV version..."
        $webUrl = "http://Site1"   
        $libraryName = "L1"
        $subjectMatter = "C1"
    } else {
        $webUrl = Read-Host "Enter Site URL" 
        $libraryName = Read-Host "Enter Document Library name"
    $subjectMatter = Read-Host "Enter Subject Matter"
    try {
        $web = Get-SPWeb $webUrl
        $site = $web.Site
        $library = $web.Lists[$libraryName]
        $items = $library.GetItems()
        $subjectMatterTermSet = GetTermStore $site $termStore $group $subjectMatterTermSetName
        $subjectMatterTerm = $subjectMatterTermSet.GetTerms($subjectMatter,$true) | select -First 1
        foreach($item in $items) {
            if([string]::IsNullOrEmpty($item["Subject Matter"])) {     
                #Write-Host "Filename: $filename / Keywords: $keywords / Subject Matter: $subjectMatter / Document Type: $documentType"        
                Write-Host "Updating $($item["ows_FileLeafRef"])..."           
                # Set Subject Matter column
                $subjectMatterField = [Microsoft.SharePoint.Taxonomy.TaxonomyField]$item.Fields["Subject Matter"]
                $subjectMatterField.SetFieldValue($item,$subjectMatterTerm)
                # Update Item
                $item.SystemUpdate()
    catch
        $ErrorMessage = $_.Exception.Message
        Write-Host "Something went wrong. Error: $ErrorMessage" -ForegroundColor Red

  • Urgent:How to modify a script without changing the print programme

    Hi all,
    Can any body pls tell me <b>How to modify a script without changing the print programme</b>
    Give m esome real time examples.
    Good points willbe rewarded
    Thanks

    Hi
    You can write a external Subroutine to fetch the extra data into the script program
    see the following sample code
    How to call a subroutine form SAPscripts
    The Form :
    /:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
    w_vbeln LIKE vbak-vbeln,
    w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = w_ebeln
    IMPORTING
    output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.
    COPING SCRIPT
    There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.
    I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...
    To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.
    You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.
    Ex: Go to SE71,
    on menu bar u find Utilities->copy from Client. click on it u ll find new screen showing
    Form name:
    Source Clinet:
    Target Form:
    give Form name as usedefined form name EX: ZFORM1
    Source client as 000 and
    Target form as MEDRUCK.
    execute.
    Now, the standard from MEDRUCK is copyied to your form ZFORM1.
    NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.
    Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.
    Go to NACE Transaction.
    on Applications select EF for purchase order and click Output types button on application tool bar.
    now select NEU as output types dobule click on Processing Routines.
    now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.
    go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .
    you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4089895&messageID=3239299
    Regards
    Message was edited by:
            Kiran Sure(skk)

  • Can you change the year of all songs in an album without changing the year of the album?

    Hi everyone,
    I was wondering if it is possible to change the year of all the songs within an album while keeping the year of the album. This is particularly relevant in 'Compliation' or 'Best of' albums, where all the years the songs were produced is different o the year the album was produced.
    Foe example, The Beatles' best of album '1' was created in 2000, but all of the songs were from 1963-70. In iTunes, the album is listed as being released in the year 2000, which is correct, but all of the songs are listed as being released in 2000, too, which is incorrect. However, when I change all of the individual songs to their correct year in which they were created, the year of the album also changes to that of the first song on that album. In short, either the album year is correct but all the song years are incorrect OR the album year is wrong but all the song years are right.
    Does anyone kinow if there is anyway to change this or get around this?
    Many thanks!

    Hendylele wrote:
    Do you have any idea whether or not Apple are seeking to do anything about it in any upcoming updates?
    None at all. If you'd like them to consider it you'll need to use the feedback link I gave above.
    A long standing bug bear for some is not being able to correctly sort two albums released in the same year by the same band. Having both copyright date and release date would (if implemented properly) give the option to sort, or filter tracks on either date as required.
    iTunes is a database of tracks. Albums don't really exist separately. There are a few collective properties. Year can have a separate value in each track but obviously only one value can (or at least should) be used when sorting as Album by Artist/Year. If you change the album rating of a single track in iTunes (which can be done with a script) iTunes automatically updates all the others to match.
    tt2

  • Quick April Fools Day help--I need an ARD script to change the screensaver

    I set up all the machines I manage to have a screensaver that looks like a broken LCD screen. Pushed it out with ARD3 and it's installed on everyones machine. I just need help sending a script to change the default screensaver to be the broken screen. I've no idea how to complete this. Can anyone help?

    I don't know how to change it, but if you have ARD you can run it:
    /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app /Contents/MacOS/ScreenSaverEngine -module ScreenSaverName

  • My macbook pro's screen display has suddenly gone into a strange colour setting where everything appears in a kind of infrared colour palette an I can;t seem to change it back.  It's the same for all icon and websites, does anyone know how to restore?

    My macbook pro's screen display has suddenly gone into a strange colour setting where everything appears in a kind of infrared colour palette an I can;t seem to change it back.  It's the same for all icon and websites, does anyone know how to restore?

    Wow!  I think I had this same issue just last night.
    I was cleaning my macbook pro retina on the outside.  Then I opened it up and was wiping dust off the monitor and I can't pinpoint exactly when, but the colors changed suddenly.  It looked super strange, it was like green halo's and it looked worse when looking at it at an angle.  Of course I took no pictures!!!  I was freaking out that my 2 grand laptop was busted and I somehow removed a protective film or something.
    But I digress...  The image looked very green and spacey, it was almost a neat effect.  After about 5 minutes it started to look a little more digital though.  There were straight lines of this halo effect on the edges and top.  After about 10 minutes it turned into a predominate issue with the blacks on screen.  I could open a web browser and it was unnoticable on a white background.  After about 15 minutes, you could only barely see the green cloud effect if you looked at the monitor from an extreme angle.  After about 20 minutes, it was completely back to normal, I almost feel paranoid like I see a halo or something strange.  But I believe that might be all in my head now.
    So yerp, lemme know what you guys figure out.

  • How can I change the year of an album in itunes11 without changing the years of all titles?

    How can I change the year of an album in itunes11 without changing the years of all titles. For example: the reissues of an 1982 album has a 1995 bonus track, but I want it to be sorted as an '82 album? In earlier versions, when itunes sorted my album "by year", it took the year of the first title as the album's year (which makes a lot of sense). In itunes 11, however, the /highest/ year of any title in an album is taken to be the album's year. This upsets my entire catalogue. Can this be changed, will this be changed?

    Highlight all of the songs,File>Get Info, change the genre

  • How to change the location of all fotos in the iPhoto library?

    my iPhoto 11 library is stored locally on my macbook.
    however, my fotos (the actualy bits) are stored externally on a NAS box.
    (or in other words: option "Importing: [ ] Copy items to the iPhoto Library" is not checked)
    recently i purchased a timecapsule and i now want to move all fotos from the NAS box to the timecapsule.
    i am looking for a way to batch-change the location of all fotos from let's say "/Volumes/MyNas/..." to "/Volumes/MyTimecapsule/...".
    can this be done? any ideas?
    thank you.
    ps: i know how to deal with xml and .db/.apdb files. so don't be gentle on me ;-)

    Not really unless you search the forums and find the older post describing how to hack the SQLite database to accomplish this
    Or use Aperture which can do this easily
    However if you are using your Time Capsule as a Time Machine bakcup volume it is not a good place to put your photos - if you do you have no backup of them which means that sooner of later you will lsoe them - and sooner or later TM will fill the volume and make it impossible to add photos
    LN

  • How do I change the pitch of all tracks in a session?

    I have 6-7 midi tracks in the key of "C". Now, I want to sing on this (in an audio file) with my pitch G, which means I have to change the pitch of all the tracks to G.  How do I do this? Thanks!

    Transpose either +7 or -5.
    http://documentation.apple.com/en/logicpro/usermanual/index.html#chapter=13%26se ction=29%26tasks=true

  • How do I change the color of all the text in a PDF?

    Hi.
    I have a large PDF, over 1000 pages. Some of the text is highlighted which makes it difficult to see on my preferred document background. In Acrobat XI how do I change the color of all the text in the document back to black please? Although solutions using any other software will be much appreciated too.
    I searched this forum already, and the same question was asked back in 2007 when it appears the only solution was to use an expensive third party plugin.
    Thanks.

    I know of no new solutions since 2007 except the ones you found.
    You could use the Accessibility Preferences > Change Document Colors to choose a text color. However, this is an individual preference and cannot be set as a default for others opening the document.

  • Scripts for changing the address of the user when they have been in the box for 6 months

    Scripts for changing the address of the user when they have been in the box for 6 months
    If users are in a folder for deactivated users and disabled users in Active Directory, and been there for 6 moths do: change email address in exchange to existing email address.old 
    Anyone have suggestions on how I can go about it?

    What is this "box"?  What is this "folder" you're asking about?  You'll likely get a better answer if you use standard terminology.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • How can I change the settings of all instances of a particular effect?

    I've applied the same color correction effect to a lot of clips in the timeline. Now I want to fine tune the color correction (same setting for all clips still). How can I change the setting of all instances of the color correction effect without going into each clip manually?
    Looking forward to your thoughts on this!! Go on and save my cold winter editing day ...

    I was first hoping for File> New > Adjustment layer, but it's always greyed out. I thought that would create an adjustment layer, maybe I'm misunderstanding something? Anyway, if I create a black video stump and then right click it and choose "Adjustment layer", it will turn into one, and everything works as it should with that. If the black video become adjustment layer is placed on a video track atop my video, and I add for example color correction to it, it will be applied to the videos below.

Maybe you are looking for

  • Parental Controls for Ripped DVD/Movies for Apple TV

    I would like to know if there is such a feature to add on a parental control to selected films on Apple TV or iTunes Home Sharing. Obviously, kids can operate these things pretty well but what happens if we put something like a Texas Chansaw Massacre

  • Configuring the sound on my tascam interphase

    Im new to the apple community and I've upgraded my studio monitors to jbl playing through my tascam interphase. iTunes play but nothing on safari. all videos pause after .5secs. can somebody help i can't enjoy my christmas gift ?

  • How to retrieve the groups a user belongs to?

    Hi, I want to write some code which will retrieve all the groups a user belongs in. The JAZNUserAdaptor class has a getGroups() method which returns a Set which I iterate through as follows; JAZNUserAdaptor jaznuser = (JAZNUserAdaptor)p;      strFull

  • I have Photoshop CC 2014 but Photoshop CS6 launches instead.

    I'm using the Bridge CC but when I double click on a raw file it launched the Photoshop CS6 version, why?  How can I redirect the opening link to launch CC 2014.  I do not want to uninstall CS6.

  • How to recover missing library name

    I did something to blank out the library name in imovie, how do I recover from it?