Maintenance Mode Switch for APEX
Is there any way that I can throw an switch in APEX and have it allow users who are currently logged in to finish their sessions (maybe displaying an alert message at the top of their pages asking them to finish what they are doing quickly and logout) but display a message denying new users the ability to login and use APEX. What I am after is a way to gracefully clear users off of my app server so I can take it down without giving a grand maul das boot to active users. Kind of the "The store is now closing, please take your final purchases to the registers at this time." type of announcement. Lock the front doors but let people who are already inside finish their business type of result. If this does not exist, it would be a nice feature to have at the internal workspace control level.
Hi,
A Windows Schedule task,
http://technet.microsoft.com/en-us/library/cc748993.aspx
Please read this one:
Management Pack for the SCOM 2012 Maintenance Mode Scheduler
http://blog.tyang.org/2014/05/22/management-pack-scom-2012-maintenance-mode-scheduler/
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Similar Messages
-
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 -
Clarification on Maintenance mode
Hello,
Just want to know if we can turn the maintenance mode ON for specific agents in agent admin page. We have all the agents connected to our solman system & we have an outage in the Non-Prod landscape. Do we have an option to put the non-prod agents alone in maintenance mode?
Please clarify.Hi
Maintenance Mode is De-activated for Agent on CEN (on SolMan) only and this step ensures that the connected SMDAgent from Managed Systems are disconnected from SMDAgent of Solution Manager.
Otherwise, you need to stop on the respective Managed system.
Swami -
Put servers in Maintenance Mode in SCOM 2012
Hi,
When we put a server in maintenance mode in SCOM 2012 it asks for only the end time. How can we specify the start time for maintenance mode.
ThanksYou can specify the start time for maintenance mode by schedule Maintenance mode.
For how to create schedule for maintenance mode, you can refer below link
http://support.microsoft.com/kb/2704170/en-us
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 -
Hi,
I'm trying to figure out what was the time when server was put into MM. Have a concern as MM history (when i run sql query) shows diff time other than when the server was put into MM actually. What could be the reason?
Thanks,
VarunHi Varun
What version of SCOM are you using? It shouldn't affect the results but will affect the PShell script below.
Is it a timezone difference?
Which timezone are you in compared to UTC time? Is this the difference you are seeing?
Is it Kevins SQL query you are running?
http://blogs.technet.com/b/kevinholman/archive/2009/06/05/maintenance-mode-tying-the-text-of-the-category-to-the-database.aspx
Or from here -
http://blogs.technet.com/b/brianwren/archive/2008/03/11/mms-command-shell-presentation.aspx
View maintenance mode history for an object:
> $mc = get-monitoringClass -name Microsoft.Windows.Computer
> $mo = get-monitoringObject -monitoringClass $mc | where {$_.name -eq 'srv01'}
> $mo | get-maintenanceWindow -history
Cheers
Graham
Regards Graham New System Center 2012 Blog! -
http://www.systemcentersolutions.co.uk
View OpsMgr tips and tricks at
http://systemcentersolutions.wordpress.com/ -
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.
Rahul1. 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 -
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/?
/SaiTechYou 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 -
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 dayYour 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] -
Maintenance Mode For One Monitor
Is it possible to place one monitor in maintenance mode? Not the entire computer or object, but just that one monitor? I don't want other monitors for that object to be silenced though.
Hi,
A Windows Schedule task,
http://technet.microsoft.com/en-us/library/cc748993.aspx
Please read this one:
Management Pack for the SCOM 2012 Maintenance Mode Scheduler
http://blog.tyang.org/2014/05/22/management-pack-scom-2012-maintenance-mode-scheduler/
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Maintenance mode is cancelled for no reason by the system
Hi, very unusual and sporadic problem.
Let's say we put a URL monitor into maintenance mode for 4 hours.
After 2 hours we reboot the URL hosting server.
The maintenance mode has been cancelled and the URL will alert again while we continue to work on it.
Should this happen ? The version is SCOM 2012 SP1 UR6.
Thanks in anticipation.If there is lot of data, Then add this string and userid like '%User name who silenced the URL%'
so this will totally filter the report to only all the servers / items silenced by a specific user.
So it will come like this
USE OperationsManagerDW
SELECT ManagedEntity.DisplayName, MaintenanceModeHistory.*
FROM ManagedEntity WITH (NOLOCK)
INNER JOIN
MaintenanceMode ON ManagedEntity.ManagedEntityRowId = MaintenanceMode.ManagedEntityRowId
INNER JOIN
MaintenanceModeHistory ON MaintenanceMode.MaintenanceModeRowId = MaintenanceModeHistory.MaintenanceModeRowId
where DisplayName Like '%%' and userid like '%User name who silenced the URL%'
Gautam.75801 -
Maintenance Mode for Synthetic Transactions
Hi,
I'm looking for some guidance on how to apply Maintenance Mode to specific Synthetic Transactions correctly via Orchestrator. My setup is Orchestrator 2012 R2 (and SCOM 2012 R2)
I have an existing runbook which seems to run fine for placing a group of windows computers into maintenance mode - I 'think' it is ok, in 2012 there seems to be a single start maintenance mode activity targeting the windows computer object for this, wereas
in 2007 there were 3 objects to target - the windows computer, health service and health service watcher.
So now I'm trying to apply maintenance mode to specific Synthetic Transactions if possible - ie web application transaction monitors which run on 2 servers which are dedicated as watcher nodes for many other ST's aswell. I had thought I had the issue
solved when I created the runbook to set Maintenance Mode targeting the specific Web monitors - when I execute the runbook I can see the spanner maintenance icon appearing against all the 'Closed' alerts from these monitors in the scom console - so I assumed
I was targeting the correct objects.
I've scheduled the runbook to trigger for the time when I know these monitors create alerts (ie when the web services are restarted nightly on the particular server web server and the site will be down) however I am still seeing the alerts come in to the
console (log history shows the runbook started OK on schedule) so I am wondering if there are other objects to put into maintenance - I assume I can't put the watcher node windows computer object into Maintenance Mode as this would be suspending the monitoring
of other Stnthetic transactions running on the watcher node servers?...
Any advice much appreciated...Sure, no worries.
The authentication types can support 4 tyes of authentication from ntlm to basic. If the site does not require authentication all the better, as the monitor will use less resourses and its easier to configure.
R2 supports something like 10000 transactions to be monitored.
Paulpaulk -
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
KarthickHi,
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 -
How to put Mediation Server on Maintenance Mode for LYNC server 2013
how to put the LYNC 2013 Mediation server on Maintenance mode???
Hi,
Did you solve the issue with the help the people above provided?
If you mean server draining feature you can also check Topology option on Lync Server Control Panel, on Topology interface, click “Action” and there is an action called “Prevent new sessions for service”.
Here is a similar case may help you:
http://social.technet.microsoft.com/Forums/lync/en-US/ef3515a9-54c0-4b7a-ab48-45196764d837/how-to-use-lync-server-draining-feature?forum=ocsplanningdeployment
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
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 YanoHi 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 -
HELP: WLC AP-SSO not working (standby unity in maintenance mode)
I have two WLC version 7.3.101.0 with the standby unit having HA-SKU. I have tested the AP-SSO functionality without any problem in lab with direct connection on RP port between two WLC. Once I brought them into data centre in separate location (latency is less than 10ms between the two DC), the standby unity always went into maintenance mode. The booting process on standby unit went to maintenance mode as shown below:
Management Gateway and Peer Redundancy Management interface are not reachable.
Entering maintenance mode...
I have checked on the core switches at 2 data centre that the two WLC RP ports are connected to same VLAN and it is spanned across MAN link (10GB and less than 10ms delay). The spanning tree on those ports are forwarding as well.
I have rebooted the second unit but no luck.
The interface between two DC is using MTU 9216 which I do not think would cause this issue.
Anyone has come across same or similar issue with me or know the solution? If you do, plz enlighten me.
ThanksThanks Leo and Scott for your feedback. I notice there are two newer software for WLC version 7.3.102.0 and 7.4.100.0.
Both of them seem to have many open caveats. In my wireless environment, I also use ISE, MSE and Prime Infrastructure and unfortunately WLC 7.4 does not support prime solution and MSE yet according to below compatibility matrix.
http://www.cisco.com/en/US/docs/wireless/controller/5500/tech_notes/Wireless_Software_Compatibility_Matrix.html
I think I only have choice to do minor upgrade to 7.3.102.0 at this moment (please correct me if I am wrong). This software was published on 30th Jan 2013 so I wonder if someone else has tried this and managed to get WLC AP-SSO setup working flawlessly where 2nd WLC unit is at different location?
Appreciate for more info and advise.
Maybe you are looking for
-
I lecture for a living. My old G4 connected to LCD projector worked great; image displayed on computer monitor is same as that projected by LCD. However my new MacBookPro connected to the LCD projector displays washed out images, as if I designed my
-
HT3702 Do you need to have money on your card to download apps
Do you need to have money on your credit card to download apps from app store?
-
Any pointers to how to do predictive analysis using BI
Hello All Do you have any leads/pointers about how to do forecasting/predictive-analysis using OBIEE? I am looking for how to documents or tutorials. thanks
-
Install or upgrade Gateway 2.0 for Duet Enterprise FP1
Hi, We are checking the technical feasibility for upgrading to Duet Enterprise FP1 from Duet Enterprise 1.0 and followed the Guide from the learning maps for FP1 (Preparing the Environment for Duet Enterprise u2013 Feature Pack 1). However we are con
-
OVM 3: Storage network setup and MD3000i support
Hi, We have a OVM 2.2 cluster in test, and we are going to create a new OVM 3 cluster in the next 2 weeks to run JDE E9 (with a Dell R310 as manager and a Oracle X4170 M2 as main node (+ 2 Dell 2650 nodes that are currenlty running "plain" xen)) I'm