"Cluster maintenance mode" script to keep cluster names in MM when nodes are placed in MM

Hello All,
Thanks in advance,
is there any script to keep the cluster names in Maintenance Mode when nodes are placed in Maintenance Mode
Best Regards...
Nikhil GS  

You can refer below link
http://blogs.msdn.com/b/mariussutara/archive/2008/09/05/cluster-and-maintenance-mode.aspx
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
Mai Ali | My blog: Technical | Twitter:
Mai Ali

Similar Messages

  • Keeping Photoshop Raw Image Adjustments When Images Are Imported

    I've got a bunch of raw images that have been adjusted in Photoshop. When these raw images are imported into Aperture, all the data stored in the .xmp files are stripped out, meaning the raw files are imported without any adjustments. Is there a way to import raw images so they retain the adjustments that have been made in Photoshop? I hope so. The idea of importing all my raw files into Aperture and having to readjust every single image is unthinkable.

    With all due respect, I do "want" desperately to be able to use Aperture as a RAW converter-good workflow.
    Sure... different meanings of "want". I "want" Aperture to be usable for that, but in its present state, you don't "want" to use it, because it's not very good at it. I tried a number of different pictures; it ranges from "okay" to "astoundingly bad", depending on the subject matter. In no case does it approach Adobe Camera Raw in quality; but it is not hideous in all cases.
    Take a bunch of your own pictures and burn them to a CD, both RAW files and edited versions. Bring the CD to an Apple Store, sit down, and have a go at Aperture. In my case, it was the final thing that saved me the money of buying the software.
    As a "better iPhoto" I think it's a winner. But it is, by no stretch of the imagination, a "professional" photography application. If it were a $50 replacement for iPhoto I'd probably have already bought it. It could be useful from an organization standpoint -- except for the fact that it can't read many of my Photoshop PSD files at all since they are in LAB color mode.

  • Scheduling Operations Manager Maintenance mode?

    I'm trying to schedule Stephan Stranger's SCOM Maintenance mode script.  The issue is that I don't see a good way to pass the parameters the scripts
    is looking for via the Scheduled Task.
    Is there a good way to pass the scripts needed parameters like group name and maintenance mode duration?  Maybe I need to write a batch file and call the .ps1 and arguments from the .BAT - I've been playing with the .BAT for over an hour and can't that
    to work either.
    Currently when I create a scheduled task with these settings:
    Program/script:
    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add Aurguments (optional): 
    -noexit C:\Scripts\MaintMode\Start-SCOMMaintenanceModeForGroups.ps1 "TestingDSRGroup" -endtime 5 -reason "unplannedother" -comment "Testing DSR Group" -Verbose
    It seems to just run in the background with out popping up a powershell window and will eventually end with a (0x1) Last Run Result.
    Here is the syntax that works great from with in powershell with Stephan's script but I can't seem to work from a scheduled task:
    C:\Scripts\MaintMode\Start-SCOMMaintenanceModeForGroups.ps1 "Testing DSR Group" -endtime 5 -reason "unplannedother" -comment "Testing DSR Group" -Verbose
    Any assistance appreciated.

    Hi,
    An easy way around this is to use the -File parameter. Write up a quick oneliner that calls your script and save it as a .ps1 file. As soon as you have a working caller script, you can use -File C:\path\to\script.ps1 as the arguments and the scheduler will
    just run your script instead of trying to specify all of your parameters directly.
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)
    Thanks Mike.  That did the trick.  I tried the -FILE argument previously with no luck, I should have mentioned that in my original post.  
    Once I created a .PS1 with the arguments I needed and then called that with the scheduled task it went off with out a hitch.  Thanks a milion.  I never would have thought of that.

  • VDI 3.1 cloning fail if one esx from a cluster is in maintenance mode

    hi
    i have a vsphere cluster with 2 esx included and ha and drm enabled
    if one of the esx is in maintenance mode the cloning job failes but with a misleading error message
    INFO: Datastore 'Sun Storage 1' is not available for cloning, it is disconnected or in maintenance mode
    i see here 2 bugs
    1) the wrong error message cause the datastore is neither disconnected nor in maintenance mode
    2) cloning should still possible if one esx server is not available
    br
    Andre

    Hi login,
    It should be possible. You will need to route the output of the counter to a specific RTSI line and then use that line as the sample clock by the MIO board. The function you will want to use to route the counter output to the RTSI bus is the Route Signal.vi in LabVIEW or the Select_Signal() in NI-DAQ function calls. You will want to use constants such as ND_GPCTR[x]_OUTPUT where [x] is the counter number and ND_RTSI_[x] where [x] is the RTSI line number. Your source is the counter output and your signal is the RTSI line of choice.
    Similarly, for the MIO card, you will want to route the RTSI line to the AI Scan Start to route to your scan clock. The constant for this should be ND_IN_SCAN_START and it should be the signal value while your RTSI s
    hould be the source.
    The point is you will need to route the signal for both cards which amounts to 2 calls (or 2 VIs). Anyway, hope that helps. Have a good day.
    Ron
    Applications Engineering
    National Instruments

  • How to determine whether a resource is online in a cluster from a script

    Hello All,
    Environment:
    Solaris 9
    SC3.1/U4 and SC3.2
    RG name:
    dw-rg
    Resources:
    dw-vip - Logical hostname RS
    dw-stor - HA storage RS
    dw-ora - HA Oracle RS
    dw-lis - HA Oracle listiner RS
    Hostnames:
    dwn1
    dwn2
    We have a situation where we are trying to backup an oracle DB's on our clusters. We are performing both hot and cold backups. During a cold backup, we take the database completely down and the other where we put the DB into hot backup mode.
    In the coldbackup case, we simply take the oracle RS offline and in the hotbackup case, the oracle RS in still online. The scripts are ran from cron on each cluster node.
    In the coldbackup case, As a consistency/error check I would like to first check the status of the oracle rs and see if it is online somewhere in the cluster.
    in the hot backup case, I need to run the script from the cluster node that RG/RS is running on.
    Since I am checking status and return codes, I don't want to use scstat and grep to get this information if I can avoid it, but, I would either write a C program or script to do this.
    Any ideas or sugguestions would be greatly appreciated
    Thanks in advance
    George

    You can use the Sun Cluster library functions, have a look at the manpage for scha_calls(3ha).
    In your specific case you could have a cronjob running on each node. The first thing it would do is to check if the resource you are interested is online on the node, like
    RS_STATUS=`/usr/cluster/bin/scha_resource_get -G dw-rg -R dw-ora -O RESOURCE_STATE`
    if [ "$RS_STATUS" != ONLINE ] ; then
            exit 0
    else
            <do what you need to do>
    fiGreets
    Thorsten

  • 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

  • How to enable "persistent mode" in Windows failover cluster manager 2012?

    In Windows Server 2008 R2 there was a checkbox named "Enable persistent mode" on a General tab in the Properties of a cluster resource.
    In Windows Server 2012 that seems to have disappeared.
    My cluster resource is a "generic script" resource (not that it makes any difference).
    How do I enable "persistent mode" for a cluster resource in Windows Server 2012?
    Thanks

    Hi Marcus Griley,
    Enabled by default for VM groups Option is hidden from GUI in 2012, you can use the specify the preferred owner of group to realize the same function, positively not come online
    on a node that is not a possible owner.  If no possible owner nodes are up, then the group will still failover to a node that’s not a possible owner, but it will not come online.
    Preferred Owners in a Cluster
    http://blogs.msdn.com/b/clustering/archive/2008/10/14/9000092.aspx
    Specify preferred owners of a group:
    https://technet.microsoft.com/en-us/library/cc759663(v=ws.10).aspx
    Set group FailOver policy:
    https://technet.microsoft.com/en-us/library/cc786993(v=ws.10).aspx
    Set group FailBack policy:
     https://technet.microsoft.com/en-us/library/cc778570(v=ws.10).aspx- This will help the resources to fail back on the preferred owner.
    I’m glad to be of help to you!
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • SCOM 2012 Maintenance Mode PowerShell Script Problems

    I've seen other questions about this topic before, but none of them seem to address my specific problem, so I am starting a new thread.
    I am writing a script to put a single server (not a group) into maintenance mode.   Here is the command that it ultimately tries to call:
     Start-SCOMMaintenanceMode-Instance$Instance-EndTime$EndTime-Reason$Reason-Comment$Comment     
    So an exmaple would look like this:
    Start-SCOMMaintenanceMode -Instance "$Instance -EndTime "02/03/2014 15:26:00" -Reason "PlannedOther" -Comment "Testing Maintenance Mode"
    When my script tries to run this command, this is the error message that I get:
    Start-SCOMMaintenanceMode : Start time must be before end time for maintenance mode.
    Parameter name: startTime
    At C:\users\x036036\Desktop\Start-SCOMMaintenanceModeForServer.ps1:143 char:21
    +                     Start-SCOMMaintenanceMode -Instance $Instance -EndTime $EndT ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (Microsoft.Syste...anceModeCommand:StartSCMaintenanceModeCommand) [Start-SCOMMaintenance
       Mode], ArgumentOutOfRangeException
        + FullyQualifiedErrorId : ExecutionError,Microsoft.SystemCenter.OperationsManagerV10.Commands.StartSCMaintenanceModeCommand
    I've tried to look at Start-SCOMMaintenanceMode help online, but I don't see that "startTime" is a parameter.  So what is this error message talking about?  What am I missing?  

    Thanks for your help.   I didn't see your response until just now, but I have been playing around with this all since my last response.   I got it to work.  I wish I could pinpoint what exactly I changed to get it to work, but I
    feel like I've been changing so much stuff that I'm not sure any more.
    Just in case anyone finds it useful, here is the code.
    [CmdletBinding(SupportsShouldProcess=$true)]
    param
    [Parameter(Mandatory=$True,
    ValueFromPipeline=$True,
    ValueFromPipelineByPropertyName=$True,
    HelpMessage='What is the server you want to put in Maintenance Mode?')]
    [Alias("Server")]
    [string[]]$ServerName,
    [Parameter(Mandatory=$True,
    ValueFromPipeline=$false,
    ValueFromPipelineByPropertyName=$True,
    HelpMessage='Specifies the time the maintenance will end. The minimum amount of time a resource can be in maintenance mode is 5 minutes. This is a required parameter. Format is 1/29/2014 8:59:26 AM')]
    [Datetime]$end,
    [Parameter(Mandatory=$False,
    ValueFromPipeline=$True,
    ValueFromPipelineByPropertyName=$True,
    HelpMessage='PlannedOther, UnplannedOther, PlannedHardwareMaintenance, UnplannedHardwareMaintenance, PlannedHardwareInstallation, UnplannedHardwareInstallation, PlannedOperatingSystemReconfiguration, UnplannedOperatingSystemReconfiguration, PlannedApplicationMaintenance, ApplicationInstallation, ApplicationUnresponsive, ApplicationUnstable, SecurityIssue, LossOfNetworkConnectivity')]
    [string]$Reason,
    [Parameter(Mandatory=$False,
    ValueFromPipeline=$True,
    ValueFromPipelineByPropertyName=$True,
    HelpMessage='Allows you to type a comment about the maintenance activity.')]
    [string]$Comment,
    [switch]$EventLog
    set-strictmode -version latest
    #$start=Get-Date
    #$currentlog = $start.ToString()
    Write-Verbose "Starting $($myinvocation.mycommand)"
    Write-Verbose "Ready to put ServerName $ServerName in Maintenance Mode"
    Function Start-SCOMMaintenanceModeForServer
    [CmdletBinding(SupportsShouldProcess=$true)]
    param
    [Parameter(Mandatory=$True,
    ValueFromPipeline=$True,
    ValueFromPipelineByPropertyName=$True,
    HelpMessage='What is the server you want to put in Maintenance Mode?')]
    [Alias("Server")]
    [string[]]$ServerName,
    [Parameter(Mandatory=$True,
    ValueFromPipeline=$false,
    ValueFromPipelineByPropertyName=$True,
    HelpMessage='Specifies the time the maintenance will end. The minimum amount of time a resource can be in maintenance mode is 5 minutes. This is a required parameter. Format is 1/29/2014 8:59:26 AM')]
    [Datetime]$end,
    [Parameter(Mandatory=$False,
    ValueFromPipeline=$True,
    ValueFromPipelineByPropertyName=$True,
    HelpMessage='PlannedOther, UnplannedOther, PlannedHardwareMaintenance, UnplannedHardwareMaintenance, PlannedHardwareInstallation, UnplannedHardwareInstallation, PlannedOperatingSystemReconfiguration, UnplannedOperatingSystemReconfiguration, PlannedApplicationMaintenance, ApplicationInstallation, ApplicationUnresponsive, ApplicationUnstable, SecurityIssue, LossOfNetworkConnectivity')]
    [string]$Reason,
    [Parameter(Mandatory=$False,
    ValueFromPipeline=$True,
    ValueFromPipelineByPropertyName=$True,
    HelpMessage='Allows you to type a comment about the maintenance activity.')]
    [string]$Comment,
    [switch]$EventLog
    Begin
    Write-Verbose "Starting Function Start-SCOMMaintenanceModeForServer"
    #Check for minumum Maintenance mode period of 5 mins.
    $start = Get-Date
    $5MinFromNowTime = $start.AddMinutes(5)
    #$end = [datetime]$end
    $end = $end.AddSeconds(5)
    if($end -lt $5MinFromNowTime)
    Write-Error "The time span for the maintenance mode should be at least 5 minutes." -ErrorAction Stop
    Write-Verbose "Following server will be put in Maintenance Mode: $ServerName"
    $MSs = Get-SCOMManagementServer
    } #End Begin
    Process
    Write-Verbose "Checking if server $ServerName is a Management Server"
    #Write-Verbose ($MSs | Select DisplayName)
    if(($MSs | Select DisplayName) -eq $ServerName)
    Write-Verbose "We don't want to put a Management Server in Maintenance Mode. Skipping"
    else
    Write-Verbose "Let's put server $ServerName in Maintenance Mode"
    $Instance = Get-SCOMClassInstance -Name $ServerName
    if ($PSCmdlet.ShouldProcess("Putting $ServerName in Maintenance Mode until $($end).") )
    Write-Verbose ("Start-SCOMMaintenanceMode -Instance " + $Instance + " -EndTime " + $end + " -Reason " + $Reason + " -Comment " + $Comment)
    Start-SCOMMaintenanceMode -Instance $Instance -end $end -Reason $Reason -Comment $Comment
    }#End of whatif
    }#End of else
    if ($PSBoundParameters['EventLog'])
    write-eventlog -LogName "Operations Manager" -Source "OpsMgr SDK Service" -EventID 999 -message "The following Objects are put into in Maintenance Mode until $($end) : $($ServerName)"
    }#End if
    } #End Process
    End
    Write-Verbose "Finished Function Start-SCOMMaintenanceModeForServer Function"
    #Main
    try
    if ($PSBoundParameters['EventLog'])
    write-eventlog -LogName "Operations Manager" -Source "OpsMgr SDK Service" -EventID 998 -message "The $($myinvocation.mycommand) is used to put Objects in Maintenance Mode"
    Write-Verbose "Checking if OperationsManager Module is loaded"
    #Check if OperationsManager Module is loaded.
    if(!(Get-Module OperationsManager))
    Write-Verbose "Importing OperationsManager Module"
    Import-Module OperationsManager -ErrorAction Stop
    Write-Verbose "Checking for OM2012 environment"
    #Check if OM2012 is being used.
    if(!(Get-Module OperationsManager).Description -eq "Operations Manager OperationsManagerV10 Module")
    Write-Error "This script is only for OM2012"
    #Call Function
    if ($PSBoundParameters['EventLog'])
    Start-SCOMMaintenanceModeForServer -ServerName $ServerName -end $end -Reason $Reason -Comment $Comment -EventLog
    else
    Start-SCOMMaintenanceModeForServer -ServerName $ServerName -end $end -Reason $Reason -Comment $Comment
    } #End Try
    catch [System.IO.FileNotFoundException]
    "OperationsManager Module not found"
    $_.Exception.Message
    catch
    Write-Warning "Oops something went wrong"
    $_.Exception.Message
    $end=Get-Date
    Write-Debug ("Total processing time {0}" -f ($end-$start).ToString())
    Write-Verbose "Ending $($myinvocation.mycommand)"
    There is one remaining problem with this script.   It does not correctly check to see if something is a management server. We have two management servers. These are the applicable lines, which I still haven't gotten to work yet. First, this retrieves
    the list of my Management servers:
    $MSs=Get-SCOMManagementServer     
    Next, these lines are supposed to check if the server I specified is a management server:
    if(($MSs | Select DisplayName) -eq $ServerName)
    Write-Verbose "We don't want to put a Management Server in Maintenance Mode. Skipping"
    Thanks to the Intellisense pop-up deal, I can see that $MSs does get my two management servers. And I can clearly see that there is a DisplayName column. And I can also see that the $ServerName does match what I put in my command line.   But it doesn't
    seem to catch them if they are actually equal to each other. I don't know if it's because there's two Management Servers, and it doesn't know how to compare like that? Any idea? Is there some sort of loop I need to write so that it compares is to the DisplayName
    for EACH Management Server it finds? Any help would be greatly appreciated.

  • Cluster Maintenance Data_OM_Infotypes,Personnel Actions.

    Hi Seniors,
    I want to check the data for OM Transfer requests which are been trasfered to QA
    I mean Maintain Infotypes-View Cluster MAintenance Data- T778T,T777T &
    MainTain  Personnel Actions- View Cluster MAintenance Data- T778M, T777M.
    i have check the following path to check the infotype & the Personnel Actions in SPRO>>Personnel Management > Organization management >Basic setting >> but therse is no setting as such.
    And thses are the settings which has been transfered to QA ,what are the Impleication these setting going to have in QA once they are vailable in QA>>>Om Setting ,i mean when i create the OM Stracture In OM through-PP01.
    Please guide me on the same.Thanks.
    Edited by: srssaphr09 on Feb 22, 2011 10:36 AM

    Hi Seniors anyupdates...
    Waiting for your valuable inputs.

  • Getting system names of all the nodes that compose a cluster

    I need a way to get the names (weblogic.system.name) of all the servers that compose a cluster from a JSP or a servlet. Can anyone help ?
              System: Weblogic 5.10sp10 on Solaris with SDK 1.3.0
              [att1.html]
              

              Using WLS 5.1 internal APIs, you can do this by the following:
              weblogic.cluster.ClusterManager clusterManager = weblogic.cluster.ClusterManager.theOne();
              com.sun.java.util.collections.Collection c = clusterManager.getClusterMembers();
              weblogic.cluster.ClusterMemberInfo[] infos =(weblogic.cluster.ClusterMemberInfo[])
              c.toArray(new weblogic.cluster.ClusterMemberInfo[0]);
              if (infos != null) {
              for (int i=0; i < infos.length; i++) {
              ClusterMemberInfo info = infos;
              String clusterName = info.name();
              System.out.println("Cluster Name is: " + clusterName);
              "Laurent PAILLARD" <[email protected]> wrote:
              >C'est un message de format MIME en plusieurs parties.
              >
              >
              >I need a way to get the names (weblogic.system.name) of all the servers
              >=
              >that compose a cluster from a JSP or a servlet. Can anyone help ?
              >
              >System: Weblogic 5.10sp10 on Solaris with SDK 1.3.0
              >
              >
              ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
              ><HTML><HEAD>
              ><META http-equiv=3DContent-Type content=3D"text/html; =
              >charset=3Diso-8859-1">
              ><META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
              ><STYLE></STYLE>
              ></HEAD>
              ><BODY bgColor=3D#ffffff>
              ><DIV><FONT face=3DArial size=3D2>I need a way to get the=20
              >names (weblogic.system.name) of all the servers that compose a =
              >cluster from=20
              >a JSP or a servlet. Can anyone help ?</FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>System: Weblogic 5.10sp10 on Solaris
              >=
              >with SDK=20
              >1.3.0</FONT></DIV></BODY></HTML>
              >
              >

  • Unable to bind a cluster-aware stateless session EJBObject to the name

    I have been struggling with "Unable to deploy EJB" because of
    "Unable to bind a cluster-aware stateless session EJBObject to the name"
    I'm using WL6.1 sp2.
    Anyone could give me a hint?
    Thanks!

    In config.xml remove the <Application></Application> tag for Ejb.
    Application Deployed="" Name=""
    Path="">
    <EJBComponent Name="" Targets="" URI=""/> </Application>
    gary <[email protected]> wrote:
    Hi guys, hope you can help:
    I had to change the packages of some ejbs and now when I try to deploy
    the new .jar file I get the error below. I have tried deleting the ejb's
    off the server, rebooted the server and nothing seems to work. Any help
    would be appreciated. (Weblogic version 6.1)
    Thanks in advance,
    Gary
    Unable to deploy EJB: quizinterface from etvquiz-ejb.jar:
    Unable to bind a cluster-aware stateless session EJBObject to the name:
    channel4.quizinterface_EO. Please ensure that the jndi-name in the weblogic-ejb-jar.xml
    is correct. The error was:
    javax.naming.NameAlreadyBoundException: Can't rebind anything but a replica-aware
    stub to a name that is currently bound to a replica-aware stub; remaining
    name ''
    <<no stack trace available>>
    >
    <Nov 1, 2002 1:57:46 PM GMT> <Error> <Management> <Error deploying application
    .\config\mydomain\app
    lications\etvquiz: java.lang.reflect.UndeclaredThrowableException>

  • Powershell script for put the particular service in to Maintenance mode

    Hi Everyone,
    I have requinquent to schedule the Maintenance mode for service. If anyone help with script to put the service into maintenance mode, then i can schedule the same through Task Scheduler. 
    Thanks in advance.
    Regards
    Karthick

    Hi,
    Please have a look on:
    http://technet.microsoft.com/en-us/library/hh918505(v=sc.20).aspx
    http://blog.coretech.dk/msk/operations-manager-2012-maintenance-mode/
    Cheers
    Christoph Maresch | My blogs: blog.cmaresch.at | XING:
    Christoph Maresch
    | Linkedin:
    Christoph Maresch

  • Add a machine to Managed Server using silent mode script in wls12c (x64)

    Hi,
    I am Kanakaraju. I am new to this silent installation of weblogic server and domain creation. my requirement while creating domain with production mode is,
    I need to add followings to the domain.
    1. Data source
    2. JMSServer
    3. ConnectionFactory
    4. JMSModule
    5. Queue
    6. Machine which can be assigned to Managed Server.
    7. subdeployment
    I can add only first 3 (Data source, JMSManager, Connection factory), but can't add remaining.
    when i use "+create JMSQueue "PfPerformanceProfileQueue" as queue;+", it is throwing exception like JMSQueue is not found.
    Can anybody please help me creating the script to add these?
    Following is my Silent mode script
    read template from "C:\Oracle\Weblogic12\wlserver_12.1\common\templates\domains\wls.jar";
    set CreateStartMenu "false";
    set JavaHome "C:\bea10_3_3\jrockit_160_17_R28.0.0-679";
    set ServerStartMode "prod";
    find Server "AdminServer" as AdminServer;
    set AdminServer.ListenAddress "";
    set AdminServer.ListenPort "7003";
    set AdminServer.SSL.Enabled "true";
    set AdminServer.SSL.ListenPort "7002";
    //We can directly create a new managed server.
    create Server "ManagedServer_1" as ManagedServer_1;
    set ManagedServer_1.ListenAddress "";
    set ManagedServer_1.ListenPort "7001";
    set ManagedServer_1.SSL.Enabled "true";
    set ManagedServer_1.SSL.ListenPort "7002";
    //Create JDBC datasource and targeting it to cluster
    create JDBCConnectionPool "xxxxDSName" as xxxxxDSName;
    set MVestDSName.DriverName "oracle.jdbc.OracleDriver";
    set MVestDSName.URL "jdbc:oracle:thin:@(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)";
    set MVestDSName.Password "xxxxxxx";
    set MVestDSName.Properties "user=xxxxxxx_user";
    assign JDBCConnectionPool "*" to target "ManagedServer_1";
    //create JMS server
    create JMSServer "MVestJMSServer" as jmsserver;
    assign JMSServer "*" to target "ManagedServer_1";
    //create JMS queue, default subdeployment will be created and targeted. Not sure
    create JMSConnectionFactory "xxxxxConnectionFactory" as connectionFactory;
    set connectionFactory.JNDIName "jms/xxxxxConnectionFactory"; //JNDI name for Queue
    assign JMSConnectionFactory "*" to Target "ManagedServer_1"; //Target queue to JMS server
    //create JMS queue, default subdeployment will be created and targeted. Not sure
    //create JMSQueue "PfPerformanceProfileQueue" as queue;
    //set queue.JNDIName "jms/PfPerformanceProfileQueue"; //JNDI name for Queue
    //set queue.StoreEnabled "false";
    //set queue.JMSServer "JMSServer"; //Target queue to JMS server
    //use templates default weblogic user
    find User "weblogic" as u1;
    set u1.password "weblogic1";
    //create a new user
    create User "Admin" as u2;
    set u2.password "weblogic1";
    //assign User "Admin" to Group "Administators";
    write domain to "C:\Oracle\Weblogic12\user_projects\domains\silent-domain"; // The domain name will be "silent-domain"
    close template;
    Edited by: 998028 on 4 Apr, 2013 5:35 AM
    Edited by: 998028 on 9 Apr, 2013 6:28 AM

    Hi,
    I am Kanakaraju. I am new to this silent installation of weblogic server and domain creation. my requirement while creating domain with production mode is,
    I need to add followings to the domain.
    1. Data source
    2. JMSServer
    3. ConnectionFactory
    4. JMSModule
    5. Queue
    6. Machine which can be assigned to Managed Server.
    7. subdeployment
    I can add only first 3 (Data source, JMSManager, Connection factory), but can't add remaining.
    when i use "+create JMSQueue "PfPerformanceProfileQueue" as queue;+", it is throwing exception like JMSQueue is not found.
    Can anybody please help me creating the script to add these?
    Following is my Silent mode script
    read template from "C:\Oracle\Weblogic12\wlserver_12.1\common\templates\domains\wls.jar";
    set CreateStartMenu "false";
    set JavaHome "C:\bea10_3_3\jrockit_160_17_R28.0.0-679";
    set ServerStartMode "prod";
    find Server "AdminServer" as AdminServer;
    set AdminServer.ListenAddress "";
    set AdminServer.ListenPort "7003";
    set AdminServer.SSL.Enabled "true";
    set AdminServer.SSL.ListenPort "7002";
    //We can directly create a new managed server.
    create Server "ManagedServer_1" as ManagedServer_1;
    set ManagedServer_1.ListenAddress "";
    set ManagedServer_1.ListenPort "7001";
    set ManagedServer_1.SSL.Enabled "true";
    set ManagedServer_1.SSL.ListenPort "7002";
    //Create JDBC datasource and targeting it to cluster
    create JDBCConnectionPool "xxxxDSName" as xxxxxDSName;
    set MVestDSName.DriverName "oracle.jdbc.OracleDriver";
    set MVestDSName.URL "jdbc:oracle:thin:@(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)";
    set MVestDSName.Password "xxxxxxx";
    set MVestDSName.Properties "user=xxxxxxx_user";
    assign JDBCConnectionPool "*" to target "ManagedServer_1";
    //create JMS server
    create JMSServer "MVestJMSServer" as jmsserver;
    assign JMSServer "*" to target "ManagedServer_1";
    //create JMS queue, default subdeployment will be created and targeted. Not sure
    create JMSConnectionFactory "xxxxxConnectionFactory" as connectionFactory;
    set connectionFactory.JNDIName "jms/xxxxxConnectionFactory"; //JNDI name for Queue
    assign JMSConnectionFactory "*" to Target "ManagedServer_1"; //Target queue to JMS server
    //create JMS queue, default subdeployment will be created and targeted. Not sure
    //create JMSQueue "PfPerformanceProfileQueue" as queue;
    //set queue.JNDIName "jms/PfPerformanceProfileQueue"; //JNDI name for Queue
    //set queue.StoreEnabled "false";
    //set queue.JMSServer "JMSServer"; //Target queue to JMS server
    //use templates default weblogic user
    find User "weblogic" as u1;
    set u1.password "weblogic1";
    //create a new user
    create User "Admin" as u2;
    set u2.password "weblogic1";
    //assign User "Admin" to Group "Administators";
    write domain to "C:\Oracle\Weblogic12\user_projects\domains\silent-domain"; // The domain name will be "silent-domain"
    close template;
    Edited by: 998028 on 4 Apr, 2013 5:35 AM
    Edited by: 998028 on 9 Apr, 2013 6:28 AM

  • Maintainence Mode script for SCOM 2012

     Hi All
     Currently we use PowerShell script to place servers in maintenance mode (SCOM 2007 ). While executing the script we specify a text file which contains list of agents.
     Am looking for same type of script which can work for SCOM 2012. After searching I got the MM tool for placing agent or group in Maintenance. Instead I would need the script to get agents from text file. Also it should check if agent is part of
    cluster and place related cluster also in MM.
    Let me know , if any one can help me here.
    Regards
    Madhavi

    Hi,
    The below two links should be helpful for you, please go through them:
    SCOM 2012: Put Cluster Node and Cluster Object in Maintenance Mode
    OpsMgr 2012: Group Maintenance Mode via PowerShell (the way it should be)
    http://www.systemcentercentral.com/opsmgr-2012-group-maintenance-mode-via-powershell-the-way-it-should-be/
    Please Note: Since site is not hosted by Microsoft, the link may change without notice. Microsoft does 
    not guarantee the accuracy of this information the web.
    Regards,
    Yan Li
    Regards, Yan Li

  • OM2012 – Putting a Monitor in maintenance mode

    Hi there,
    I need to write a powershell script to put a Monitor in Maintenance mode. This is easily doable manually on the console whenever an alert comes up by putting the alert in Maintenance Mode.
    So far I managed to make my script to put the class of the Monitor into maintenance, as per bellow
    i.e. if the monitor is “Total CPU Utilization Percentage”, it would put  Microsoft Windows Server 2012 R2 Datacenter in maintenance mode for the computer $ComputerName.
    $ComputerName = Read-Host “Enter computer name”
    $MonitorName = “Total CPU Utilization Percentage”
    $Monitors=Get-SCOMMonitor -ComputerName $strComputerName | where {$_.DisplayName -eq $MonitorName}
    $Time = ((Get-Date).AddMinutes(6))
    foreach ($Monitor in $Monitors) {
    $Instance = Get-SCOMclass -name $Monitor.target.identifier.path | Get-SCOMClassInstance #| where {$_.Path -eq $ComputerName}
    Start-SCOMMaintenanceMode -Instance $Instance -EndTime $Time -Comment: “Server maintenance”
    I can’t figure our how to simply put “Total CPU Utilization Percentage” (or any other Monitor) in maintenance mode
    Thanks for your help !

    Yes, use the "Start Maintenance Mode" Activtiy of the Integration Pack for OpsMgr.
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

Maybe you are looking for

  • Invoice Posting Errors

    I get the following Invoice errors when I try to release to accounting. Could anybody help me understand how I can fix these? Some Invoices are many years old ones. 1) No charge item requiring a price. 2)No charge item requiring a price. 3)Tax statem

  • HT5429 Map Issues

    For any location if i search it shows Directions are not available but with other map service providers its working

  • PCI6534, Pattern Gen Loop, Dig_block_out, count var won't work

    I am trying to use the pattern generation loop and the count variable in the Dig_block_out function to control the frequency of a repeated block of output. Most values for count hang up the program, but some work fine. I need to be able to use any nu

  • HT4059 where are my audiobooks

    i just bought an audiboook, and i can see it in my purchased but i can't find it in any section. where would it be? and how can i sync it to my ipod suffle (3rd gen) and also my iphone (4)?

  • Zooming help

    Hi, Zooming is a concept that originates from the metaphor of the sound of an airplane flying towards the earth. This means getting nearer to the object of interest, seeing more detail. In computer graphics this has been partly realized as getting ne