Quick Win: An easy way to rotate through SCOM Dashboards

November 19, 2012

In Operations Manager 2012 we can create useful and cool dashboards! This is very meaningful to helpdesk teams, that sometimes make use of a large central monitor to display such dashboards.
But what if you want to publish multiple Dashboards onto that one central monitor?
Here’s a way to do it. Start Internet Explorer and open each dashboard into its own TAB.

Then start a small powershell script that cycles through those different tabs. Make sure you set the focus on your Internet Explorer browser.

do
{
start-sleep -Milliseconds 15000
[System.Windows.Forms.SendKeys]::SendWait(“^{TAB}”)
}
While ($i -ne 0)

or in vbscript

Set WshShell = WScript.CreateObject(“WScript.Shell”)
Do While i=0
  WScript.Sleep(15000)
  WshShell.SendKeys “^{TAB}”
Loop

You are now actually using the SendKeys to initiate a Ctrl + Tab (like you can do manually) to cycle through the Ie Tabs.
This one is real easy and is subject to be improved (Feel free)

Samuel.


Quick Win: SCOM Alert Rule to Detect Server Reboot / Shutdown

October 9, 2012

This is a Quick Win. It only takes a few minutes to create and it gives you an interesting result.

If you have a lot of servers it’s hard to keep track of who’s rebooting which server. With this SCOM rule, you will get a message in Operations Manager telling you who initiated the reboot/shutdown and for which reason. The only thing you have to do, is make people aware to put a nice comment in the shutdown / restart comment field.
This can also be used to detect unexpected reboots or you could start reporting on all reboots on a periodic bases.

Ingrediënts

  • System center operations manager
  • The event id for shutdown / restart (1074 for Win 2008 servers)
  • A logparser (i did this one for you, if you want more info read it here)

Let’s start

Open your Operations Manager console and go to the Authoring pane. Start by making a new “NT Event Log” rule.



Name it and target it to the “Windows Computers”



The reboot event appears in the “System” log.



The Next step is to create some sort of filtering. You can figure out the parameter stuff by using a logparser.

http://blogs.technet.com/b/stefan_stranger/archive/2008/05/13/opsmgr-2007-parameters-explained.aspx



To have a nice output in your alert, you can use this example.


Now if someone restarts a server and correctly fills the comment field you’ll et an output like this