Is there a PS sript to put different web applications in maintenance mode

HI,
I have 2007 R2 SCOM environment.Multiple Web applications is monitored. I got request to put together PS script which could put web application to maintenance mode so it wouldn't not alert while somebody working on it and puts it down. Is there possible
way to do that.
Thanks
Balys

Hi
There are different ways to interpret "web applications" - if this is basic URL monitoring then this can be done as follows:
http://www.scom2k7.com/schedule-a-into-url-maintenance-mode/
http://www.scom2k7.com/schedule-a-group-of-urls-into-maintenance-mode/
I have done similar for process monitors here:
https://systemcentersolutions.wordpress.com/2010/04/03/scheduled-maintenance-process-monitors/
The idea behind all of these is that you'll need to find out the target class and then put that class into maintenance mode.
Regards
Graham

Similar Messages

  • Sharing object across 2 different web application

    Hello,
         I do not know if this is a right place to ask this kind of question...
         I have two different web applications running on 2 different tomcat servers.
         One of them creates one object ( say myComplexClassObject) which is serializable..
         and I want to share this object in another web applications.
         Both the apps are developed using JSP and servlets.
         Is there any way, I can make this object available in another application ?
         As the request object can not be used across 2 different contexts, I can not set it as attribute on request.
         I tried serializing myComplexClassObject in some test.dat. Problem going by this way is that
         how do I send this file to another application ?
         What I did is as follows....
         In the first app , I created the object and serialized it in one file test.dat. In the same app I read
         test.dat and send the content as query parameter to a JSP in another app. That JSP collects all the query parameters
         and constructs a big string out of it and then writes it to a file, test2.dat and tries to deserialize this.
         File sizes come out to be same. But it gives me StreamCorruptedException.
         Any idea, where I am doing wrong ? or any other way to share this object or to send the file to another app?
         I can not use FTP for some reasons. Size of the test.dat file is more than 10 KB.

    Some possible solutions:
    Use a webservice calls to pass the object,
    Use JAXB to convert the object to XML, pass the XMLover HTTP or a socket and use JAXB to convert the XML back into an object.
    Store the object as a blob in a database.
    Store the object in a Java aware database that can handle Java objects.
    Store the data in the object in a database.
    I am curious as to what information ot functionality is contained in this object that you feel the need to pass it between two servers.

  • Looking for a Powershell Script which can put the scom servers in maintenance mode

    Looking for a Powershell Script which can put the scom servers in maintenance mode so that SCOM should not send an alert during planned task.
    Rahul

    1. Provide list of servers line-by-line in C:\ServerList.txt, make sure you provide limited no. of servers, do not exceed 20 - 25 per batch
    2. Save the script with suitable name (test.ps1)
    3. Open PowerShell cmd prompt
    4. Script accepts 3 params - TimeInMinutes, Reason and Comment
    **** Please note, this script will work for SCOM 2012 R2
    param([int32]$TimeMin, [string]$Reason, [string]$Comment)
    try
    $api = new-object -comObject 'MOM.ScriptAPI'
    Import-Module operationsmanager
    New-SCOMManagementGroupConnection
    $Servers = Get-Content "C:\ServerList.txt"
    $Time = (Get-Date).Addminutes($TimeMin)
    Foreach ($Server in $Servers)
    #Get Computer instance
    $ComputerClass = Get-SCOMClass -Name Microsoft.Windows.Computer
    $ComputerClassInstance = Get-SCOMClassInstance  -Class $ComputerClass | Where {$_.DisplayName -eq $Server}
    If ($ComputerClassInstance -ne $Null)
    $HealthServiceWatcherClass = Get-SCOMClass -name:Microsoft.SystemCenter.HealthServiceWatcher
    #Get Health Service Watcher Class instance of the server
    $HSWClass = Get-SCOMClass -Name Microsoft.SystemCenter.HealthServiceWatcher
    $HSWClassIns = Get-SCOMClassInstance  -Class $HSWClass | Where {$_.DisplayName -eq $Server}
    #Starting the maintenance mode
    Start-SCOMMaintenanceMode -Instance $HSWClassIns -EndTime $Time -Reason $Reason -Comment $Comment
    Start-SCOMMaintenanceMode -Instance $ComputerClassInstance -EndTime $Time  -Reason $Reason -Comment $Comment
    Write-Host "Health Service Watcher and Agent server "$Server " kept in maintenance mode"  -foregroundcolor "green"
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 200, 0, "$Server kept in maintenance mode for $TimeMin minutes")
    Else
    Write-Host $Server" not found " -foregroundcolor "red"
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 201, 1, "$Server could not be found in domain")
    Catch [system.exception]
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 201, 1, $_.Exception.Message)
    Faizan

  • Session sharing among different web application under Oracle AS

    Hi,
    I'm looking for some information on web application session information sharing under Oracle AS10.1.3.
    any pointers are highly appreciated.
    Thanks,
    Narasimha.

    Hello,
    I see that you have duplicate your post in different forums, Session sharing among different web application under Oracle AS10.1.3.
    Regards
    Tugdual Grall

  • How to share HttpSession between different web application ?

    I have two web application ( ie two different war files), I discovered that the jsp in the two war files are not able to share the HttpSession, may I know how to you share the HttpSession between two different web application ?

    From the api doc:
    "Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another."
    You can not share a Session object between web apps. You can create your own sessions using a database, textfile or hashmap. Do a search on the O'Rielly web site for psuedo-sessions.

  • Is there plug-in for JBuilder developing Weblogic web application?

    Is there plug-in for JBuilder developing Weblogic web application?
    thanks in advance
    woodsonli

    Firefox 3.03 - why such an old version? 3.6.12 is the most recent release.
    It is up to Microsoft to fix Outlook Web Access to work with Firefox or to come up with a plugin for Firefox. If Mozilla was to start fixing or write plugins for all the software out there that is made to work with Internet Explorer and not any other browser, they wouldn't have time to work on Firefox.
    There are two Firefox extensions that will open IE in a Firefox tab. Many users install one of these addons to get around problems like you are having with Outlook Web Access.
    IE Tab2
    https://addons.mozilla.org/en-US/firefox/addon/92382
    IE Tab Plus
    https://addons.mozilla.org/en-US/firefox/addon/52809/

  • Do I must use EJB if I put a web application on NT+IIS+JRun

    I wrote a web application(JSP+JavaBean+Microsoft Access Database), it runs well on windows98/me+Apache+JRun developer version(net work). but when I put it on the internet by using ISP's Server(NT 5.0+ IIS+JRun), It does not work well.
    when click on a link or a buttton to get another jsp page from original one, sometimes it is OK, most of time it failed. and when it works every thing is right(i mean it can display the content of tables, and let user update the data of the table... ...).it looks like some thing happend when page shangs
    is there any one have any idea about this?
    susan

    What are using for a JDBC driver to access the Access database?

  • How to distribute html component between different web applications?

    Hello. I have a project which consists of several modules. Each module is a separate web-application which can be deployed on a separate application server. All modules must have one menu. The problem is how to implement the menu.
    It would be good to maintain it as a separate project and to distribute it between modules as a jar archive. I have an idea to create a custom tag library which will generate and insert html code where it is necessary. But modules can look different, they can use jsf, richfaces or jsp for the page rendering and the menu must suit the page. So I think that the data and the rendering mechanism should be separated somehow.
    Thanks.

    Starting with Servlet Spec 2.3 (I think) the push has been towards complete web applications; even if it means duplicate files in each (disc space is exponentially cheaper than it was a decade ago).
    The easiest way to manage duplicate files is to keep a single copy for development and use build tools like ANT, Maven, etc.. to assemble your web applications at build time.

  • Design considerations while accessing data of a different web application

    I am database developer for a web application (*WebApp1*) which supports around *6 million* merchant data across various tables in database (*DB1*).
    The users for the above mentioned application are less, around *50* who monitor the 6 million merchant data.
    Now a proposal has come up to develop a second web application for the merchants themselves.
    Thus the user base for this web application (*WebApp2*) is in millions.
    Now the requirement for WebApp2 is :
    On each login of individual merchants, they need to see their individual data (mostly read-only) which is stored in (*DB1*)
    along with other data which is stored in its own database (*DB2*). WebApp2 will have other functionalities too but those
    are independent of WebApp1.
    Now I can think of three approaches how to display DB1 data in WebApp2 :
    1. Creating a stored procedure and accessing DB1 data through dblink. (*Cons* - have seen access through dblink is slower as it serializes access).
    2. Replicate DB1 data to DB2 through batch jobs running every night. (*Cons* - Will store the same data in 2 places and will have the headache of data sync.)
    3. WebApp1 will expose webservice using DB2 data, so that on each login, WebApp2 users use the webservice to display DB1 data through webservice.
    (Please answer if there are any cons. beacuse of high user base ?)
    Need your suggestion and views. Also if there are any other way please let me know.
    Will it depend on any other factor ? Let me know if you need any further information.
    Cheers !!!

    Ah - this is a much bigger question! And may be outside the scope of this forum to answer. I will have a go though.
    The question really isn't can the database support 6,000,000 users. It is how many of the users will be making database requests at the same time, what is the average elapsed time of each request, and what do your users regard as an acceptable response time to each request?
    To use a (very) simple analogy, my company employs 30,000 people but the IT Service Desk that they call if they have a problem with their PC is only staffed by 30 people. This is because the Service Desk Manager has estimated that at any one time only 1% of all employees will need to call the Service Desk. On average each call takes 6 minutes to resolve and the response time agreed with the business to a call is 1 hour. So within an hour one Service Desk technician can answer 10 calls in an hour, so 30 technician can answer 300 calls an hour.
    Now you can apply this analogy to a computer system. The scalability of database systems is generally limited by the amount of available CPU. If we determine that the average database call uses 10ms of CPU, and the user will accept a response time of 1s, then each CPU can service 100 database calls within that response time. Multiply that by the number of available CPUs and you have a (very rough) idea of how far the database will scale. An server with 8 cores could support 800 concurrent requests. A cluster with 4 servers each with 8 cores could support 3200 concurrent requests.
    I would stress that this is very crude. Much more information would be required to determine what the limits of database scalability were. My example does not take account of other source of potential latency, such as the network or the storage subsystem if requests involve significant physical I/O. Or indeed the latency in the application itself.
    So, you need to answer these questions:
    - How many concurrent database requests need to be supported
    - What is the average amount of database CPU that each database request will consume
    - What is the maximum acceptable elapsed time for each database request
    On a more practical note, your application must use some form of connection pooling to limit the number of database connections required to service all the required database activity. You can scale the database horizontally using RAC and in extreme cases you can offload read activity entirely from the database using a middle-tier caching solution such a Coherence, GigaSpaces or GemFire.
    That's probably enough for now. Any more and you'll probably need to get some consultancy!

  • How to call jsp /servlets running in different web application in tomcat

    hello all,
    i have 2 web applications(Charts and Reports) in the same tomcat,i want to call jsp/servlets running in the Reports webapp from Charts webapp.how do i achieve this.
    thanx
    ravi

    You can also use getContext(String context) in the ServletContext class to get a request dispatcher.
    Using the above example it would be :
    // in a servlet in the charts webapp
    ServletContext context = getServletContext();
    ServletContext reportsContext = context.getContext("/reports");
    RequestDispatcher dispatcher = reportsContext.getRequestDispatcher("/path")
    dispatcher.forward(request, response);Just note, that depending on your server's configuration getContext(...) might return null.

  • How to put a remote portlets server in maintenance mode

    Hi,
    We are running Plumtree Portal 5.0.4 on Windows 2000 Server SP4. We have a remote portlets server which hosts a lot of portlets' webservices.
    We need to put the remote server in maintenance mode.
    How can we disable all webservices hosted by this remote server without disabling each webservices manually (which will be painful) ?
    Regards,
    Qué Son PHAM VAN

    I don't want to encourage you to modify your database directly, but it seems to be the only way to do this easily. Try:
    update ptwebservices
    set enabled = 0, disabledmsg = 'This portlet has been disabled. Blah blah blah.'
    where gadgetserverid = 200;
    Replace 200 with the ID of your remote server.
    HTH,
    Chris Bucchere | bdg | [email protected] | http://www.bdg-online.com

  • Embedded Image from different anonymous web application broken

    Hi, 
    I have two web applications, one is NTLM and another will be NTLM & anonymous.
    User uploaded images into anonymous web application and embedded the images in a post (custom html box) from NTLM web application.
    When user try to load the images from the post, image link is broken. After refresh the page, some of the images are loaded and some are not. The image are being loaded randomly.
    I am suspecting on TMG redirection to different web application but i have no further information for that.
    From Sharepoint log, i have the following:
    Unexpected HttpException while client is still connected. System.Web.HttpException: An error occurred while communicating with the remote host. The error code is 0x80070057
    May i know what are the suspected root cause? anyone can help please.

    Hi,
    According to the symptom that issue occurs intermittently, I suspect it is related to coding of web control you added for images. Please provide more information about how you embedded the image in a post.
    I found an article for similar error message, please check if it can be help:
    http://blog.whitesites.com/fixing-The-remote-host-closed-the-connection-The-error-code-is-0x80070057__633882307305519259_blog.htm
    Regards,
    Rebecca Tu
    TechNet Community Support

  • I have backed up all my music on an external hard drive and i was wondering is there a quick way to put it all back on itunes.

    i have backed up all my music on an external hard drive and i was wondering is there a quick way to put it all back on itunes.

    Hello, Gazzlaa84.
    You can import your media a couple different ways.  If you plan on keeping the media on the external drive, I would just direct iTunes to read the media folder on the external.  Here are the steps on how to make that change.
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/HT1364
    iTunes for Mac: Moving your iTunes Media folder
    http://support.apple.com/kb/HT1449
    Also, here is another great resource for moving your iTunes media. 
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    Cheers,
    Jason H. 

  • How can I put different clips in the "DropZone"

    Hey,
    Just wondering how can I put different scenes in dropzones of a customized template in Idvd....
    I imported my film from IMOVIE its' not saved as a movie format such as .mov or .avi it's saved as a project file... so I dont know how I would be able to do have different scenes in different drop zones.. I can only import the whole thing in a dropzone...
    Cuz on customized template there is like 3 dropzones is there a way i can delete the other 2?
    Please help me out,
    JOey Dee

    Hello Joey,
    the dropzone is actually not meant to contain your main movie. If you want to import your iMovie project by drag'n drop, drop it just above the bottom of the preview window. Alternatively choose File > Import > Video from the menu and select your iMovie project.
    If you have 3 dropzones, you should create 3 short (30-45 sec) movies and/or slideshows to place in the dropzones.
    Have a look at this little tutorial:
    http://www.kenstone.net/fcphomepage/idvd_5stone.html
    hope this helps
    mish

  • Putting different tables with large amounts of data together

    Hi,
    I need to put different kinds of tables together:
    Example 'table1' with columns: DATE, IP, TYPEN, X1, X2, X3
    To 'table0' with columns DATE, IP, TYPENUMBER.
    TYPEN in table1 needs to be inserted into TYPENUMBER in table0, but through a function which transforms it to some other value.
    There are several other tables like 'table1', but with slighty different columns, that needs to be inserted into the same table ('table0').
    The amount of data in each table is quite huge, so the procedure should be done in small pieces and efficiently.
    Should/Could I use data pump for this?
    Thank you!

    user13036557 wrote:
    How should I continue with this then?
    Should I delete the columns I don't need and transform the data in the table first and then use data pump,
    or should I simply make a procedure going through every row (in smaller pieces) of 'table1' and inserting it to 'table0'?You have both the options .. Please test both of them , calculate time to complete and implement the best .
    Regards
    Rajesh

Maybe you are looking for

  • EFT Functionality For payment method V

    Hi We are currently enabling EFT Functionality for our client .our Aim is to Generate a DME File for payment Method V( EFT for Domestic).We have a Format EFTS_EIRE.I have Following Questions 1.Is the Format SAP standard One? 2.Where we are assigning

  • Recon acct showing diff in GL view.

    Vendor is having reconciliation account say 1000 For the payment document posted, in General Ledger View the account is showing different say 1001. Whereas for all the other payment documents for the vendor, the GL view is showing 1000 as mapped in t

  • FORMATTING_ERROR in smartform, Message ID: SSFCOMPOSER Message Number: 610

    Hi All, I am getting a typical error in smartform. when I am trying to execute the smartform, I am getting a formatting error with Message ID: SSFCOMPOSER; Message Number: 610 and the message being shown is "Include text does not exist (object VBBK,

  • I would like to make an account for free

    I'm from Brazil and would like to fazeer an account for free thanks

  • Export - Track as audio file problem

    Hi, I think I've found a very serious bug: I have an audio file in my arrange window. Now I'm going to export the track and I copied the last bit of the audio file to play 2 times. But when I export the track Logic ignores that little edit. When I bo