Service Manager SP1 Update Rollup 4 Error

I recently ran across some problems when trying to update System Center Service Manager SP1 with Update Rollup 4 (UR4) (http://www.microsoft.com/en-us/download/details.aspx?id=40836). Here is the error: “Microsoft System Center 2012 Service Pack 1 Service M has stopped working“.   There is a Temp folder on management servers with SCSM setup logs like in the screenshot. The … Read more

Remove Orphaned Connectors in Service Manager

PROBLEM: Recently I came across a Service Manager environment that had some old SCOM 2007 connectors that were no longer being used. These SCOM 2007 connectors would not remove from the SM console and would throw the following error when trying to remove. This is an easy fix. Use the SMLets to remove this connectors … Read more

Windows Server 2003 Support Coming back to DPM 2012 R2

There have been some grumblings since the release of DPM 2012 R2 as it dropped support for Windows Server 2003 even though Windows Server 2003 is still supported by Microsoft. You can see a glimpse of the communities feedback on this at this TechNet thread: http://social.technet.microsoft.com/Forums/en-US/c425421b-b726-4125-82fc-beae8947722c/dpm-2012-r2-agent-update-on-windows-2003-server-x64?forum=dpmsetup Many environments out there (and usually not by the … Read more

Free Hyper-V and System Center Training from MVA

More free training coming soon on Hyper-V and System Center from Microsoft Virtual Academy (www.MicrosoftVirtualAcademy.com). This is going to be one event you don’t want to miss. I am also happy to announce I(@Buchatech) will also be a part of this event answering questions during the System Center 2012 R2 Datacenter session. Here is the … Read more

Monitor Scheduled Tasks with SCOM

Recently I was on a search for a management pack that would let me monitor Scheduled Tasks on Windows servers. A fellow System Center MVP Daniele Grandini let me know that his company Progel has one available. Progel has made the management pack available to the community for free that can monitor Scheduled Tasks on … Read more

Free SCSM, SCOM, DPM Tools for the Community

Wow what an exciting week in the System Center space! Lately there has been several free tools released for various System Center products in the community. I wanted to mention them here in one blog. Service Manager: Advanced Send Mail This one is very cool and something that has been needed for some time. Big … Read more

Enable Proxy as SCOM Console Task

Here comes another post about a console task. This time it is in SCOM. I have been doing something for a while that makes life a little bit easier. What I do is add a console task to SCOM that enables proxy on monitored servers when it is launched.

NOTE: For a discussion on why you would enable proxy on monitored servers visit this link:

http://social.technet.microsoft.com/Forums/systemcenter/en-US/a373b34d-9b01-486c-a4f2-4b1f19bea46e/why-enable-scom-proxy-agent-?forum=operationsmanagergeneral

The nice thing about this console task is that it searches through monitored servers, finds the ones that do not have proxy enabled, enables them and then outputs who they are. This is possible thanks to a tool that Mark Manty of Microsoft built called SetAgentProxyEnabled. You can find that tool here:

http://blogs.technet.com/b/markmanty/archive/2012/02/02/automate-setting-allow-agent-to-act-as-proxy-on-scom-agents.aspx

Here is the process I use to add this tool as a console task in SCOM.

  • Create a windows share on one of the management servers. I call it something like SCOMTasks.
  • Extract the tool into this share.
  • In SCOM navigate to Authoring>Management Pack Objects>Tasks.
  • Right click on Tasks and select Create a new Task.
  • In the Create Task Wizard expand Console Tasks and select Command line. Select or create a new management pack to store this task in and click Next.

clip_image001

Read more

Launch a Runbook from a Service Manager Console Task

I recently ran across the question of “How Can I Launch a Runbook from a Console Task?” in this forum thread:

http://social.technet.microsoft.com/Forums/systemcenter/en-US/5cd957fa-5114-41fe-a727-3294df74a7b0/how-can-i-launch-a-runbook-from-a-console-task?forum=customization .

I started thinking about how this could be useful in certain scenarios and how this would work. I decided to figure this out and blog about it so here it is. First you will need a tool that can connect to Orchestrators web service and start runbooks. There is such a tool called Orchestrator Remote Tools 2.51.

With this tool you also have the ability to discover information about runbooks on an Orchestrator server, pass parameters to the tool and see the status on if the runbook started successfully or failed. This tool has a GUI and command line interface.

This tool only discovers runbooks that have an “Initialize Data” activity. This tool launches runbooks looking to a generated .XML template with information about the runbook or it can launch runbooks directly without the XML template file (CLI mode only). for The tool consists of three components:

  1. UI Generator (ORTUIGenerator.exe): This is what discovers all your runbooks and allows you to browse them. You also use this component to generate the XML template files.
  2. Remote Runbook Launcher (ORTRunbookLauncher.exe): Is the graphical way to launch runbooks.
  3. Remote Runbook Launcher CLI (ORTRunbookLauncherCLI.exe): Is the command line way to launch runbooks.

You can learn more about the tool here:

http://blogs.technet.com/b/yasc/archive/2011/11/17/orchestrator-remote-tools-2-0-fka-the-opalis-ui-generator.aspx

It can be downloaded here:

http://orchestrator.codeplex.com/releases/view/76983

Let’s work with the tool to prepare for using it with Service Manager. Create a share on your Service Manager management server. This can be something like \\SMSERVER\ORT\.

Copy the Orchestrator Remote Tools into it. You should have the following:

clip_image001[4]

Now click on ORTUIGenerator.exe . You will see this popup message:

clip_image002[4]

Click OK. This is telling you it is the first time you have run the tool and you need to put in your Orchestrator settings.

You will see the following window and will need to complete all the fields.

NOTE: Once you put in the data base server it will automatically pull in the Orchestrator database. If your SCORCH DB is not named Orchestrator you will be able to click the drop down and select it.

Click Save when you are done. Clicking Save will create a Config.xml file in your ORT directory.

clip_image003[4]

Now the UI Generator window will pop up. This is the window you use to generate the .XML template file.

On the left hand side you are able to browse through the discovered runbooks. Keep in mind it only finds runbooks that have an “Initialize Data” activity. To configure the template for a runbook browse to it on the right hand side, select it and click the “Get details for the selected runbook” button. It will then expose the settings of the “Initialize Data” activity for the runbook on the right hand side. Here is where you can configure values for the parameters and give the runbook a description for those that will be running it. Note you are not required to configure values for the parameters. When you are ready to generate the .XML template click on the “Create Runbook Launcher configuration file” button.

clip_image004[4]

You should now have a policy_template.xml in your ORT directory. By default when you run ORTRunbookLauncher.exe or ORTRunbookLauncherCLI.exe the policy_template.xml will be used allowing you to only have settings for one runbook at a time. You can elect to use another file by using the /ORTXML switch. What this does is allows you to store multiple XML templates in the same directory by different names and launch the specific one you want.

The /ORTXML switch only works using ORTRunbookLauncherCLI.exe as it is passed as a parameter. Another way around this if you are stuck on using the GUI component is to create multiple folders and put the exe’s, config file in each folder as it will have its own policy_template.xml file. That however could become a nightmare to manage and requires more space. I recommend using the /ORTXML switch.

Let’s look at the GUI component. In the ORT folder launch ORTRunbookLauncher.exe. The Runbook Launcher window will pop up. It should look similar to the following screenshot.

Input the parameters and click “Start Runbook” button.

clip_image005[4]

It is that easy to remotely launch a runbook using this tool. Using the ORTRunbookLauncherCLI.exe is basically doing the same thing except it is running from a command line allowing you to pass in the values for the parameters right in the command. The syntax for starting a runbook using the ORTRunbookLauncherCLI.exe would look like this:

ORTRunbookLauncherCLI.exe /LastName=Sinatra /Location=”Building 45″ /Department=Sales /Title=”VP of Sales” /FirstName=Frank /SamAccount=Franks /”Reporting To”=”John Adams”

 

NOTE: If the parameters’ names or values have spaces, you need to enclose them using double quotes.

clip_image006[4]

Ok, so now let’s combine the tool with Service Manager and its CMDB. Think about all the possibilities. There are a lot of useful scenarios in which these two could be utilized. A couple of possibilities I can think of off the top of my head are: Pass a user from Service Managers CMDB to this tool as a parameter and have a runbook disable a user in AD, pick up a computer from the CMDB pass it as a parameter to a runbook and move the computer from one OU to another in AD.

I don’t see this tool as a replacement for using Runbooks with Service Requests in Service Manager. I see this as more of a way to give the administrative team a quick and easy way to launch runbooks without ever leaving the Service Manager console.

Let’s look at how we can bring the Orchestrator Remote Tools and Service Manager together, create a console task and accomplish a task.

For this blog post we are going to use a very simple disable user runbook. To do this we need to create a console task using the ORT tool. Use the following steps to do this:

Read more

System Center 2012 Service Manager Unleashed

I am excited to be a coauthor of another System Center book. This book is on System Center 2012 Service Manager and is a part of the Unleashed series! The book is set to publish in June. The authors consist of: Microsoft System Center MVP Kerrie Meyler Microsoft System Center MVP Kurt Van Hoecke Sam … Read more

New Dashboard for SCOM 2012

There is another cool solution from Coretech. Coretech has recently released a new Dashboard for SCOM 2012. This dashboard does a good job of presenting the health of your Business and IT Service in an easy to see format. It gives you a single place to show the health of the Distributed Applications and the … Read more