Webdispatcher automating maintenance mode

Hello,
We are looking for a way to put the dispatcher into maintenance mode via a command line argument that we then script to occur at certain predefined times.  Does anyone know how to accomplish this??
Thanks

Hi,
Application version: 11.5.10.2
OS : AIX aix260 3 5
if i try to enable maintenance mode using adadmin then i got this err
An error occurred while running adsetmmd.sql.
Continue as if it were successful [No] :
and
if i run using adsetmmd.sql ENABLE from sql prompt then i got
SQL> @/u01/xxx/xxx/ad/11.5.0/patch/115/sql/adsetmmd.sql ENABLE
declare
ERROR at line 1:
ORA-20000: ORA-24033: no recipients for messageFailed to call the procedure
fnd_apps_mode_util.set_to_maintenance_mode while enabling
maintenance mode.
ORA-06512: at line 38
kindly suggest

Similar Messages

  • How to switch to maintenance mode in Webdispatcher

    Hi, everyone!
    Please tell me how to switch to maintenance mode in webdispatcher by shell scripts.
    I use Webdispatcher on HP-UX.
    Best Regards,
    Masahide Yano

    Hi Masahide
    I was able to write a script to do this.  Hopefully this helps others.
    First, I am assuming the web dispatcher is running with basic authentication. 
    The script did something similair to what wget would do,
    wget -user=<user> -pass=<password> http://<host>:<port>//wdisp/admin/icp/confirm.icp?what=change_maint&p1=1
    The problem with this is that you get a confirmation page.  This page has 3 form parameters, what, token, and p1.  The token is what you will need to extract to make the next call. 
    You then make a call to http://<host>:<port>//wdisp/admin/icp/do_action.icp, passing post parameters, what = "change_maint", token = <what you got from the previous call, and p1 = "1".  1 Enters maintenance mode, and 0 Enters running mode.
    I did this all with a PHP script, and the Snoopy class.  It works very nicely.
    We are also able to add and remove servers out of load balancing, using the same technique.
    Cheers
    Russell

  • "Class instance is already in Maintenance Mode" - but it isn't

    Hello,
    we have a powershell script to set the servers managed by scom agent in maintenance mode (e.g. for windows updates and restart).
    A colleague recognized an error during running this script. It says that instances of the server are still in maintenance mode. But if you check through SCOM it is not. And for resetting maintenance mode with 0 it says it is not in maintenance mode.
    Is it possible to clear maintenance mode for all things wiht a sql statement?
    Script:
    #=============================================================================#
    # Remote-MaintenanceModeV5.ps1 #
    # Powershell Script to put a SCOM agent into maintenance mode. #
    # Autor: Roman Strecker #
    # Date: 14.12.2012 #
    # Bekannte Fehler: Speicher auf dem Zielhost (SCOM) muss hoehergesetzt werden!#
    # winrm set winrm/config/winrs `@`{MaxMemoryPerShellMB=`"512`"`} #
    #=============================================================================#
    param(
    [Parameter(Mandatory = $false)][string]$ComputerName,
    [Parameter(Mandatory = $false)][string]$Dauer
    Function SetMaintenanceMode
    $ok = Test-Connection 10.202.14.29 -Count 1 -Quiet
    if (-not($ok)) {
    $SCOMServer = "srv14v030"
    else{
    $SCOMServer = "srv14v029"
    #Kleinster Zeitinterval bei SCOM sind 6 Minuten!
    if ([int]$Dauer -eq '0') {
    Write-Host "Löschen des Maintenance Modes wird durchgeführt!"
    $DeleteMM = $true
    else {
    if ([int]$Dauer -lt '6') {
    $Dauer = "6"
    $startTime = [DateTime]::Now
    $endTime = $startTime.AddMinutes($Dauer)
    Write-Host "`nFolgende Parameter werden verwendet: `nServername: $ComputerName `nWartungs-Dauer: $Dauer Minuten `nWartungsmodus wird geprüft..."
    #Get-ChildItem env:
    #Erzeuge ein Credential-Objekt für die Verbindung zum SCOM:
    $secpasswd = ConvertTo-SecureString "xxxxxx" -AsPlainText -Force
    $Credential = New-Object System.Management.Automation.PSCredential ("SA_SCOM-ActionAcc", $secpasswd)
    #Erzeuge eine Remote-Session zum SCOM:
    #$Session = New-PSSession -ComputerName $SCOMServer -Authentication kerberos
    $Session = New-PSSession -ComputerName $SCOMServer -Credential $Credential
    $Session = get-pssession
    Invoke-Command -Session $Session -ScriptBlock {
    param($ComputerName, $endTime, $DeleteMM)
    Import-Module OperationsManager
    try {
    $MonitoringObjects = Get-SCOMMonitoringObject | where {$_.DisplayName -like "$ComputerName*"}
    $MObject.ViewName
    catch {
    Write-Host "Fehler beim Verbinden mit dem SCOM ist aufgetreten!`nBitte versuchen Sie es später noch ein Mal."
    Write-Host "Vollständige Fehlermeldung: "$_.Exception.Message
    if ($MonitoringObjects -eq $null) {
    Write-Host "Servername konnte nicht gefunden werden: " $ComputerName
    else {
    foreach ($ComputerInstance in $MonitoringObjects) {
    if ($ComputerInstance.InMaintenanceMode) {
    if ($DeleteMM) {
    #Wartung muss gelöscht werden
    $ComputerInstance.StopMaintenanceMode([DateTime]::Now.ToUniversalTime(), "Recursive")
    $Ausgabe = "Server aus dem Wartungsmodus entfernt."
    else {
    #Server ist Bereits im Wartungsmodus
    $MMEntry = Get-SCOMMaintenanceMode -Instance $ComputerInstance
    Set-SCOMMaintenanceMode -MaintenanceModeEntry $MMEntry -EndTime $EndTime -Comment "Wartungsmodus wird angepasst."
    $Ausgabe = "Wartungsmodus für den Server " + $ComputerName + " ist angepasst bis " + ((Get-SCOMMaintenanceMode -Instance $ComputerInstance).ScheduledEndTime).ToLocalTime()
    else {
    if ($DeleteMM) {
    #Server war nicht im Wartungsmodus und soll gelöscht werden
    $Ausgabe = "Server war nicht im Wartungsmodus!"
    else {
    #Setzen des Servers in die Wartung
    Start-SCOMMaintenanceMode -Instance $ComputerInstance -EndTime $endTime -Reason "PlannedOther" -Comment "Wartungsmodus wird gesetzt."
    $Ausgabe = "Wartungsmodus für den Server " + $ComputerName + " ist gesetzt bis " + ((Get-SCOMMaintenanceMode -Instance $ComputerInstance).ScheduledEndTime).ToLocalTime()
    #Ausgabe für die letzte Instanz:
    Write-Host $Ausgabe
    } -ArgumentList $ComputerName, $endTime, $DeleteMM
    #Schliesse die Remote-Session
    Remove-PSSession -Session $Session
    #MAIN:
    #Prüfung, ob die Parameter eingeben wurden:
    if ($ComputerName -eq '') {
    $ComputerName = Read-Host "Bitte den Servernamen eingeben"
    $Dauer = Read-Host "Bitte die Dauer in Minuten eingeben (0 = Löschen des Wartungsfensters)"
    #Wenn noch immer nichts gesetzt ist, dann abgebrochen:
    if ($ComputerName -eq '' -OR $Dauer -eq '') {
    Write-Host "Vorgang abgebrochen!"
    else {
    SetMaintenanceMode
    Sleep 5
    Regards.

    Hi also in this post :)
    Thats a nice query - thank you. But the systems with the error are not listed.
    Maybe there is an error in our script:
    foreach ($ComputerInstance in $MonitoringObjects) {
    if ($ComputerInstance.InMaintenanceMode) {....$MMEntry = Get-SCOMMaintenanceMode -Instance $ComputerInstance

  • 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

  • 5508-HA standby in Maintenance mode

    My standby controller is in maintenance mode. Other post say to simply reboot the standby but I'm worried about doing this during business hours. Say I did reboot it during business hours, would it affect the active controller? All redundancy links are connected.
    (Cisco Controller) >show redundancy sum
     Redundancy Mode = SSO ENABLED
         Local State = MAINTENANCE
          Peer State = UNKNOWN - Communication Down
                Unit = Secondary - HA SKU
             Unit ID = 00:06:F6:DC:17:00
    Redundancy State = Non Redundant
        Mobility MAC = 68:EF:BD:8E:61:E0
    Maintenance Mode = Enabled
    Maintenance cause= Negotiation Timeout

    No it won't affect the active controller:
    While booting, the WLCs will negotiate the HA role as per the configuration done. Once the role is determined, the configuration is synced from the Active WLC to the Standby WLC via the Redundant Port. Initially WLC is configured, as Secondary will report XML mismatch and will download the configuration from Active and reboot again. During the next reboot after role determination, it will validate the configuration again, report no XML mismatch, and process further in order to establish itself as the Standby WLC
    http://www.cisco.com/c/en/us/td/docs/wireless/controller/technotes/7-5/High_Availability_DG.pdf
    https://supportforums.cisco.com/discussion/11758901/ask-expert-high-availability-wireless-lan-controller-wlc

  • Warning: The system has not been taken off maintenance mode completely

    After I enabled Maintenance mode using adadmin, I ran Compile Flexfields. Then I disabled Maintenance mode. But, on the 11i login page, I keep getting a warning message:
    Warning
    The system has not been taken off maintenance mode completely. Please contact your System Administrator.
    I am sure I disabled the Maintenance mode in adadmin. Why I still get the warning? How to fix it? Thanks a lot.

    Thanks a lot. That is the fix.
    One more question. After I ran "Compile Flexfields", I got
    Number of successful descriptive flex compilations : 7520
    Number of failed descriptive flex compilations : 1
    How can I find the failed description flex? The log does not give info on this. And, how to fix it?
    Thanks a lot for your help.

  • Cairo-dock starts in "maintenance mode"

    Hi,
    I've recently upgraded the cairo-dock, but since then it starts along with the <maintenance mode window>... When I try to close it, it reappears until the wifi connection settles down. I suspect that weather-dock is making troubles when it does not have connection to the internet.
    I've looked through the cairo-dock options, and it has an option to force maintenance mode, but it does not have one to force disabling it unfortunately.
    Anyone has any idea how to get rid of this?

    probably an issue with your configuration. had this once, deleted my .config/cairo-doc ( at least i think thats where it was) folder and it worked again - with default settings.

  • 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

  • Redirect users to page when we take system in maintenance mode.

    I would like to redirect users to page when we take system in maintenance mode. We are on 12.1.3 application. please provide me document which have these details

    Please see old threads which discuss the same topic.
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Redirect+AND+Maintenance&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Maintenance+AND+Message&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Outage+AND+Maintenance&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Please search the forum before posting similar questions.
    Thanks,
    Hussein

  • SCCM 2012 Software Update Management for Windows Servers and how to automatic set SCOM maintenance mode?

    Hi,
    We planning to go one level higher to automat and have more dynamic Software Update Management for Windows Servers. We have SCCM 2012 R2, SCOM 2012 R2 and SCO 2012 R2.
    Our plan is to pur server in an AD-Group to get Update Schedule, from the servers will be importet to an Collection for Automatic Update and reboot. If I understand Everything right SCOM can't read AD-Group and put then in an Schedule maintenance mode. SCOM
    can read reg value as exempel.
    IS there any smar way to make the SCOM Maintenance Mode Schedule dynamic?
    I found this
    http://www.scom2k7.com/scom-2012-maintenance-mode-scheduler/?
    /SaiTech

    You could use Orchestrator to put the servers from a specific collection, or AD group, in maintenance mode in SCOM. For an example see:
    http://www.systemcentercentral.com/orchestrator-how-to-scom-maintenance-mode-for-windows-computers-in-an-sccm-collection/
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Unable to enter maintenance mode - dtrt1000

    Over the last few weeks my box is almost useless.  With frequency it only part records, freezes requiring rebooting, momintary screen blanks, and is generally a pain in the rear.  I've tried to get into maintenance mode to try and reset it, but following the guide from Youview it doesn't work, and the box just starts as normal.
    My understanding is that you (1) Switch the box off from the back (2) Switch it back on after 30secs (3) Press the power button and immediately hold of the -vol button until the splash screen appears...Then you can access the menu.
    I've tried holding the holiding the -vol button before the power button, holding it immediately after power button, holding it until the nearly ready screen, in low and high eco modes etc but get the same result, it just goes straight into normal programes???

    1 Start with the YouView box powered off from the switch on the REAR panel power button
    2. Power back on the YouView box using the REAR panel power button
    3. When the FRONT power button is illuminated with an orange circle, press the FRONT panel power button firmly once and it will turn blue 
    4. Immediately press and hold the "VOL-" button which can be found on the right of the FRONT panel the first silver button. 
    5. A message saying "Enter Maintenance Mode Y/N (Y: POWER)" appears on the TV screen
    So if I understand correctly your experience is that steps 1, 2 & 3 occur but when doing step 4  the message step 5 (does not occur ) and your box boots as normal.
    My own (historic ) experience is that the timing of stages 3 and 4 is quite tight - ie the power button turning blue followed immediately by the VOL- button being pressed and held.
    Your options if the maintenence mode will not  work are to contact BT support and seek their advice or if you are not concerned about the recordings remaining on the box you can do a factory reset from from main Youview menu
    https://community.youview.com/youview/topics/top_tip_soft_reset_reboot_power_cycling_maintenance_mod...

  • All services stuck in maintenance mode

    I've got a problem on Solaris 10. All of the enabled inet services are in maintenance mode. rlogin, ftp, telnet, stlisten, xfs, etc, etc - are all in maintenance mode. The inetadm command shows no online services, only disabled and maintenance. I've tried clearing them with svcadm but they won't clear. It won't show any explanation for why.
    What could be wrong to cause this?
    Thanks for any suggestions.
    Randy

    Thanks very much for the very helpful suggestions. svcs -xv does not show anything helpful - for the Reason, simply "Restarter gave no explanation". The svc:/network/inetd:default is indeed enabled and healthy.
    /var/adm/messages, however, has information that might point to the problem. Regrettably, I don't understand the message and am hoping someone here can enlighten me. For each of the services that is in maintenance mode, these messages appear:
    Nov 3 17:59:44 trsun006 inetd[322]: [ID 702911 daemon.error] Property exec for method inetd_start of instance svc:/network/login:rlogin is invalid
    Nov 3 17:59:44 trsun006 inetd[322]: [ID 702911 daemon.error] Invalid configuration for instance svc:/network/login:rlogin, placing in maintenance
    I don't understand what it means by "Property exec for method inetd_start ... is invalid".
    I issued these commands-
    [trsun006 27] sbin > inetadm -l rlogin | grep exec
    exec="/usr/sbin/in.rlogind"
    [trsun006 28] sbin > ls -l /usr/sbin/in.rlogind
    -r-xr-xr-x 1 root bin 36372 Jan 22 2005 /usr/sbin/in.rlogind*
    How can I debug this problem?
    Randy

  • Need to place the SCOM agents in Maintenance Mode automatically during Patching activity

    Hi,
    I have a requirement to place the SCOM agent servers in MM automatically during shceduled patching every month. I have gone through few blogs but could not find an apt solution for SCOM 2012 R2 environment.
    I think the process should be..
     1. Create a management pack to monitor all servers for event 1074 (or/and 22), which gets triggere during the patching
     2. Write some powershell to put a machine into maintenance mode.
     3. Trigger the powershell script to run when needed.
    Any suggestions please?
    Thanks

    Where doing this in our environment. We have a SCOM monitor looking for Reboot events (ID 1074) where the event contains Shutdown Type: Reboot. the monitor creates an Informational alert which Orchestrator picks up and then sets the machine in MM for 30
    minutes. So its any time the machine is intentionally rebooted. You can have it look for CcmExec in the Event description (assuming you're using SCCM) if you only want it to work when being patched. 
    - Slow is smooth and smooth is fast.

  • 'Update' maintenance mode in transaction PRAA

    Hi,
    We are trying to create an employee vendor using the transaction PRAA by selecting the 'Update' maintenance mode.
    The issue is that the clerk's email address is being copied from the reference vendor if the personnel does not have an email address maintained in the HR records.
    Please could you let me know if this is the standard functionality.
    Thank you.

    Hello
    Not sure that is a standard functionnality. You should check user-exit and BAdIs implemented in your system for PRAA... (there is 2 exit).
    If not you should open an incident to SAP because it doesnt looks like very clean to me to copy the email from template.

  • SQL Query for maintenance mode in SCOM

    Hi all
    I was wondering if I can find a query about this request:
    - Found all the Servers that were restart without the maintenance mode were actived ?
    It's to make a Report To include in Reporting Services.
    sorry for my English :)
    Thank you very much and have a good day

    Your question seems related to SCOM. SCOM may use SQL Server, but to answer the question, I guess one needs to know SCOM, so maybe you should try a forum for that product? I found
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/home?forum=operationsmanagergeneral
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • Changing photo aspect ratio with QT 7 Pro

    Can I use QT 7 Pro to change the aspect ratio of my iPhoto pictures so they can be used in HD video? David

  • Comodo Certificate

    Hello, I have Lync 2013 running on Windows Server 2012 R2. It is fully patched and up to date. I have one Front End Server and one Edge Server. One of our Federated partners uses Comodo certs. He has exported them from his Edge Server, and I have imp

  • Simple collision detection - help needed

    ok, im having trouble with collision detection. i think i've got the first bit right (below) but i cant seem to complete the other behaviour which i plan on atteching to the sprite in channel 73 to complete the collision detection. global gCollision

  • Org.w3c.dom.Document -- text

    Hello. I have parsed org.w3c.dom.Document. Is here a library that can print it to a xml file? Secondly I wish print it as .html, so output should a bit differ from standard .xml output.

  • "progressIndicator" Implementation with Server Feedback

    Hello, I've been browsing examples of implementation for progressIndicator in PHTMLB extension, but unfortunately, all of them simply show estimates of the progress using client-side javascript. I have a requirement to show exact percentage progress