Thursday, June 27, 2013

Orchestrator: Error deploying Service Manager IP to Runbook Servers

I have come across one thing that i thought was nice to mention here. I have been working with a customer that have only one runbook server that includes all the roles.
 
So the other day they needed to add a new runbook server "More horse power" to the solution.
 
So they installed the new server and deployed the new role from the "Deploy manager".
 







 
Select the server name and an account that has administrative privileges to install the Orchestrator runbook server role on the server.
 
 


On the "Deploy Integration Packs or Hotfixes" selected the "Service Manager 2012" integration pack. 

 
 
In the logs the deployment of the Runbook server was successful, but the deployment of the integration pack the status was "Fatal error during installation".

 
 
 
Fatal error in my opinion sounds very bad. So I needed to find some more information about this "Fatal error"....
 
When you deploy new roles, hotfixes and IP in Orchestrator from the Deployment Manager, you can view the logs and see what happened during the installation.
 
Right click and select [View Deployment logs]
 
 

 
Every time you make a change to the roles or add a new feature, there is created a new log.
 
 
So I open up the log from the "Service Manager IP".
 
I searched through the log file and found this:
CAQuietExec: Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.5420
CAQuietExec: Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
CAQuietExec:
CAQuietExec: RegAsm : error RA0000 : Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
CAQuietExec: Error 0x80070064: Command line returned an error.
CAQuietExec: Error 0x80070064: CAQuietExec Failed
 
When a log often contains "The system cannot find the specified file" it mean that something is missing and the version=3.5.0.0 gave me a clue..
 
.Net framework 3.5....
 
So I logged on to the server and installed the .Net 3.5 and hit the deployment button again.
 
This time the deployment was successful, or as we say in Norwegian "Herlig" (trans:Perfect/lovely).
 


 

Orchestrator: What's new in System Center Orchestrator R2?

Here is some information about what has been added to Orchestrator R2.

What’s New

The following new features are added in this release:
  • You can install the Service Management Automation web service and up to three runbook workers from System Center 2012 R2 Orchestrator Setup program. These can be used as part of the Windows Azure Pack for Windows Server configuration or to enable you to run runbooks and perform other automation tasks using Windows PowerShell cmdlets. For evaluation purposes, you should install a single runbook worker on the same computer as the web service.
  • Windows Server 2012 R2 is supported in this release.

New in System Center 2012 R2

  • System Center Integration Pack for Microsoft SharePoint

Updated in System Center 2012 R2

  • Windows Azure Integration Pack for Orchestrator in System Center 2012 SP1 and System Center 2012 R2
  • System Center Integration Pack for System Center 2012 Virtual Machine Manager.
 

Wednesday, June 26, 2013

Orchestrator: Runbook logs Part:1

When it comes down to logging in Orchestrator, sometimes you might be confused on where to find the different logs. In this post I will go through some of the logging options in Orchestrator, and where to find them.

When working with orchestrator there are different types of loges that will give you information about your environment.

Runbook Logs - Will give you information about your runbooks, status and behaviour of your runbook creations.

Activity Events - Show Statuses about your Orchestrator infrastructure.

Audit Trail - List information about other services that interact with orchestrator.

Trace logs - Troubleshoot the Orchestrator environment.

Now reading log files can be hard, when you are not using a logging viewer tool. There are many different types of log viewers out there that will help you in your search through the jungle of text.

After working with SCCM and CMTrace for a while, CMtrace is my new friend in the fight against log files.

You can find CMTrace in ConfigMgr 2012 SP1 Toolkit.

Installs to \Start Menu\Programs\Microsoft System Center 2012 SP1\Configuration Manager Toolkit
Is located in C:\Program Files (x86)\Configmgr 2012 Toolkit SP1\ClientTools"

http://www.microsoft.com/en-us/download/details.aspx?id=36213

Runbook Logs:

Real Time log:

Runbook generates  logs when they are running. The Runbook Designer enables you to view both real-time log information and historic logs.

You can view the real-time log of a runbook on the Log tab in the Log pane of the Runbook Designer. The log has an entry for each running instance of the runbook and the time that it was started. This is real time logs!

If you expand this entry, you can view the activity that is currently running in the Runbook. Double-click the activity to view its details. If you have configured logging for the workbook to include Published Data, this information is included in the activity’s details.

 












Historic Log
 
You can view the historic log of a runbook on the Log History tab in the Log pane of the Runbook Designer.


















This log has an entry for each completed instance of the runbook with its start and end times and completion status. If you double-click an entry, the Runbook Details dialog box opens that includes each activity in the runbook and its completion status. 
 
Now if you need more information about the specific Runbook activities, you can double click on the event and the Runbook details the runbook activities will open up.
 
Default configuration in Orchestrator is not to include all published information in each activity, this would in a production scenario fill up the orchestrator database with logs. In a Development / test runbook you might need to see what is happening in the different stages of the runbook activities and see what is published in each activity.
 
So to turn logging on you need to do the following.
 
1. [Check Out] the Runbook
 
2. Right click on the runbook and Select [Properties]
 
 
3. In the logging pane enable both

"Store Activity specific Published Data"
 
"Store Common Published Data"
 
 
4. Click Finished when done.
 
Now the next time you run your runbook you will se that all the activities are showing their published data in the "Details" window.
 
 

 
 Runbook Audit History
 
The Runbook Audit History tracks the changes to each activity in a runbook. This includes the user that made the change, the date and time that the change occurred, the activity that was changed, and the current and previous values of any changed properties. The audit history is maintained as long as the runbook exists and cannot be cleared.

You can view the "Runbook Audit History" on the Audit History tab of the Runbook Designer. The entries for the currently selected runbook will be displayed. Double-click an entry to open the "Details" dialog box where you can view a list of all activities that were part of the change. Select one of the entries to view the activity that was performed in addition to the old and new values of any properties that were changed.

So when looking at the "Audit History" you can see that we can track information about the changes made to the runbook.
 
 











When clicking on the activity we can se more details about the changes that were done.




 





Often there is more than one administrator making changes in your environment. 
Then you as an administrator need more information about the changes that were done in a runbook. You can "enable required promt for comment" in the runbook.
 
"Enable required promt for comment" ensures that everyone who changes a runbook, have to add a comment when "Checking In" the runbook. The commnent is then added to the comment field in the "Audit History" tab.
 
Now to enable this click on [Options] in the menu bar and Select [Configure]
 
 























In the Configuration window, enable "Prompt for comment on check in"  click [OK]
 
In part 2 I will go through Activity Events, Audit Trail and trace logs.

Link: Part 2