<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Confused Amused &#187; sql</title>
	<atom:link href="http://www.confusedamused.com/tags/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.confusedamused.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Jul 2010 03:03:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OCS2009-DBUpgrade.msi with a 32-bit SQL Server Back-End</title>
		<link>http://www.confusedamused.com/notebook/ocs2009-dbupgrademsi-with-a-32-bit-sql-server-back-end/</link>
		<comments>http://www.confusedamused.com/notebook/ocs2009-dbupgrademsi-with-a-32-bit-sql-server-back-end/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:02:20 +0000</pubDate>
		<dc:creator>Tom Pacyk</dc:creator>
				<category><![CDATA[Office Communications Server 2007 R2]]></category>
		<category><![CDATA[2005]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[OCS]]></category>
		<category><![CDATA[R2]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[x64]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.confusedamused.com/notebook/ocs2009-dbupgrademsi-with-a-32-bit-sql-server-back-end/</guid>
		<description><![CDATA[I wanted to point out a quick note about KB 969834 aka the OCS2009-DBUpgrade.msi file &#8211; The KB article suggests running the package from your Back-End database server, but if you’re running SQL 2005 x86 you’ll be greeted with the following error:  This installation package is not supported by this processor type.  Basically, [...]]]></description>
			<content:encoded><![CDATA[<p><p>I wanted to point out a quick note about <a href="http://support.microsoft.com/kb/969834">KB 969834</a> aka the OCS2009-DBUpgrade.msi file &#8211; The KB article suggests running the package from your Back-End database server, but if you’re running SQL 2005 x86 you’ll be greeted with the following error:</p>  <blockquote>This installation package is not supported by this processor type.</blockquote>  <p>Basically, the MSI needs to be run from an x64 machine so your only option now is to run the update directly from your Front-End server. If you try to launch from there  you might receive this error:</p>  <blockquote>You must install Microsoft SQL Server 2005 Client Tools before you install Microsoft Office Communications Server 2007 R2 (KB969834).</blockquote>  <p>You could try install the SQL Tools and Service Pack updates from installation, but OCS is looking for very specific versions of the SQL tools. The quickest and easiest way is to just use a couple of downloads from the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=50b97994-8453-4998-8226-fa42ec403d17&amp;DisplayLang=en">Feature Pack for Microsoft SQL Server 2005 &#8211; February 2007</a>.</p>  <p>You’ll want to download and install the following on your R2 Front-End before running the update:</p> <ul> <li>Microsoft SQL Server 2005 Backward Compatibility Components (x64 package)</li> <li>Microsoft SQL Server 2005 Management Objects Collection (x64 package) </li> </ul>  <p>After running those installers you should be able to run the DB upgrade successfully. Don’t forget – you need to run that MSI from a command line with the poolname (Non-FQDN version) parameter. And if you&#8217;re using Server 2008 be sure open the command prompt as Administrator so it runs with elevated rights. Example:</p>  <pre><code>OCS2009-DBUpgrade.msi POOLNAME=MyFirstPool</code></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.confusedamused.com/notebook/ocs2009-dbupgrademsi-with-a-32-bit-sql-server-back-end/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Your OCS Front-End and DPM 2010 Part 3: Recovery</title>
		<link>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-3-recovery/</link>
		<comments>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-3-recovery/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 22:55:46 +0000</pubDate>
		<dc:creator>Tom Pacyk</dc:creator>
				<category><![CDATA[Data Protection Manager 2010]]></category>
		<category><![CDATA[Office Communications Server 2007 R2]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[dpm]]></category>
		<category><![CDATA[OCS]]></category>
		<category><![CDATA[rtc]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.confusedamused.com/?p=535</guid>
		<description><![CDATA[Now would normally be the time where everyone is running around like their head has been cut off because your Front-End server is totally hosed, but because you followed the backup procedures in Part 1 (you did run the backup, right?) restoring service to your OCS server is fairly simple.  Restore the Database  [...]]]></description>
			<content:encoded><![CDATA[<p><p>Now would normally be the time where everyone is running around like their head has been cut off because your Front-End server is totally hosed, but because you followed the backup procedures in Part 1 (you <em>did</em> run the backup, right?) restoring service to your OCS server is fairly simple.</p>  <h4>Restore the Database</h4>  <ol>   <li>Open up the DPM console. </li>    <li>Click the Recovery tab at the top. </li>    <li>We need to restore the SQL database and files separately, but let&#8217;s start with the database. Expand the tree to &lt;Forest Name&gt;\&lt;OCS Server&gt;\All Protected SQL Instances\&lt;OCS Server&gt;\RTC\rtc      <br /></li>    <li>Highlight a suitable recovery date in the calendar and select the RTC database below.      <br /></li>    <li>Right-click and select Recover&#8230;      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200915940pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 1-59-40 PM" border="0" alt="10-9-2009 1-59-40 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200915940pm-thumb.png" width="500" height="392" /></a> </li>    <li>Press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920109pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-01-09 PM" border="0" alt="10-9-2009 2-01-09 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920109pm-thumb.png" width="500" height="396" /></a> </li>    <li>We&#8217;ve successfully screwed up the server to where we might as well recover to the original SQL server. Select that option and press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920112pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-01-12 PM" border="0" alt="10-9-2009 2-01-12 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920112pm-thumb.png" width="500" height="398" /></a> </li>    <li>Select Leave database operational and press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920116pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-01-16 PM" border="0" alt="10-9-2009 2-01-16 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920116pm-thumb.png" width="500" height="399" /></a> </li>    <li>No options needed. Just press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920121pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-01-21 PM" border="0" alt="10-9-2009 2-01-21 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920121pm-thumb.png" width="500" height="398" /></a> </li>    <li>Yup, those are the files we need. Press Recover.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920143pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-01-43 PM" border="0" alt="10-9-2009 2-01-43 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920143pm-thumb.png" width="500" height="399" /></a> </li>    <li>Press Close while the recovery operation occurs.      <br /></li>    <li>If you click the Monitoring tab you can view the jobs in process.      <br /></li> </ol>  <h4>Restore the Files</h4>  <ol>   <li>Now we need to restore files separately. Expand the tree to &lt;Domain Name&gt;\&lt;OCS Server&gt;\All Protected Protected Volumes\&lt;OCS Installation Volume&gt; </li>    <li>Highlight a suitable recovery date in the calendar and select the Program Files folder below.      <br /></li>    <li>Right-click Program Files and select Recover&#8230;      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920628pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-06-28 PM" border="0" alt="10-9-2009 2-06-28 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920628pm-thumb.png" width="500" height="394" /></a> </li>    <li>Press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920634pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-06-34 PM" border="0" alt="10-9-2009 2-06-34 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920634pm-thumb.png" width="500" height="401" /></a> </li>    <li>Select Recover to the original location and press Next.      <br />&#160; <a href="http://www.confusedamused.com/wp-content/pictures/2009/10/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.confusedamused.com/wp-content/pictures/2009/10/image-thumb.png" width="500" height="402" /></a> </li>    <li>Select to Overwrite the existing versions (if any), and then select to Apply the security settings of the recovery point version. Press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920751pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-07-51 PM" border="0" alt="10-9-2009 2-07-51 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920751pm-thumb.png" width="500" height="397" /></a> </li>    <li>Now press Recover.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920758pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-9-2009 2-07-58 PM" border="0" alt="10-9-2009 2-07-58 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200920758pm-thumb.png" width="500" height="400" /></a> </li>    <li>Press Close while the recovery operation occurs.      <br /></li>    <li>If you click the Monitoring tab you can view the jobs in process.      <br /></li> </ol>  <h4>Fix SQL Database Chaining</h4>  <p>One thing DPM won&#8217;t restore is an option within SQL. If you miss this step your Front-End services will fail to start.</p>  <ol>   <li>Open SQL Management Studio (Express). </li>    <li>Press the New Query button. </li>    <li>Enter the following text: <code><pre>sp_dboption 'rtc','db chaining',TRUE</pre></code></li></p>

<p><li>Press Execute. 
    <br /></p>

<pre><code>&lt;br /&gt;&lt;a href="http://www.confusedamused.com/wp-content/pictures/2009/10/image1.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.confusedamused.com/wp-content/pictures/2009/10/image-thumb1.png" width="500" height="258" /&gt;&lt;/a&gt; &lt;/li&gt;
</code></pre>

<p></ol></p>

<h4>Bounce the Server</h4>

<p>If you check your OCS Front-End you&#8217;ll find all the files you deleted previously have now returned. You could probably get away with restarting services as this point, but since the machine was completed hosed I&#8217;m just going to restart the server and cross my fingers.</p>

<h4>Check Functionality</h4>

<p>After the restart all of my OCS services started successfully and my errors have gone away. You can see now my Communicator list still has my contacts and access levels defined. Likewise, Device Updates and client auto updates should function normally now. 
  <br /></p>

<p><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200922618pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-9-2009 2-26-18 PM" border="0" alt="10-9-2009 2-26-18 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200922618pm-thumb.png" width="257" height="413" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-3-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Your OCS Front-End and DPM 2010 Part 2: Destruction</title>
		<link>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-2-destruction/</link>
		<comments>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-2-destruction/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 22:55:35 +0000</pubDate>
		<dc:creator>Tom Pacyk</dc:creator>
				<category><![CDATA[Data Protection Manager 2010]]></category>
		<category><![CDATA[Office Communications Server 2007 R2]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[dpm]]></category>
		<category><![CDATA[OCS]]></category>
		<category><![CDATA[R2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.confusedamused.com/?p=531</guid>
		<description><![CDATA[Now that we’ve verified the DPM backups are running successfully on a regular schedule we can get to really destroying the environment. First up: the RTC database. So shut down your OCS Front-End and SQL services. Then go and delete the RTC.mdf and RTC.ldf files. I know that doesn’t sound like a good idea, but [...]]]></description>
			<content:encoded><![CDATA[<p><p>Now that we’ve verified the DPM backups are running successfully on a regular schedule we can get to really destroying the environment. First up: the RTC database. So shut down your OCS Front-End and SQL services. Then go and delete the RTC.mdf and RTC.ldf files. I know that doesn’t sound like a good idea, but really, delete them.</p>  <p>Open Explorer, jump in to the following volumes and delete the content there:</p>  <ul>   <li>&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Application Host\Application Data </li>    <li>&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Web Components\AutoUpdate </li>    <li>&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Web Components\Data MCU Web\Web </li>    <li>&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Web Components\Data MCU Web\Non-Web </li>    <li>&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Web Components\DeviceUpdateFiles </li> </ul>  <p>Now go and start your SQL services and try starting the OCS services up again. You’ll find a <i>few</i> errors and warnings in your OCS application log because it can’t read the RTC database. Communicator and Live Meeting clients won&#8217;t be able to connect to the server as this point either. Oops!</p>  <p><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/109200914619pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-9-2009 1-46-19 PM" border="0" alt="10-9-2009 1-46-19 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/109200914619pm-thumb.png" width="500" height="299" /></a> </p>  <p>Congratulations, you’ve successfully messed up your Front-End server to the point where it is non-functional. The device update files have been lost, the MOC Auto-Update files have been lost and all your meeting content is gone. In the next section I’ll demonstrate how to get the server back to an operational state with DPM.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-2-destruction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Your OCS Front-End and DPM 2010 Part 1: Backup</title>
		<link>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-1-backup/</link>
		<comments>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-1-backup/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 22:55:25 +0000</pubDate>
		<dc:creator>Tom Pacyk</dc:creator>
				<category><![CDATA[Data Protection Manager 2010]]></category>
		<category><![CDATA[Office Communications Server 2007 R2]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[dpm]]></category>
		<category><![CDATA[OCS]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.confusedamused.com/?p=525</guid>
		<description><![CDATA[The goal of this series is to demonstrate how to recover your OCS Front-End’s RTC database in the event of a disaster where your database or disk hosting the RTC database has become corrupted. Or maybe you’ve recovered a server’s installation and configuration, but now need to recover the user information. I’m going to do [...]]]></description>
			<content:encoded><![CDATA[<p><p>The goal of this series is to demonstrate how to recover your OCS Front-End’s RTC database in the event of a disaster where your database or disk hosting the RTC database has become corrupted. Or maybe you’ve recovered a server’s installation and configuration, but now need to recover the user information. I’m going to do this in 3 different parts: backing up, destroying, recovering. To get started we need to have a semi-realistic OCS environment running so in this example I have a Standard Edition Front-End running where I’ve done the following:</p>  <ul>   <li>Added a few users to my contact list and changed the access levels around. </li>    <li>Uploaded and approved the latest UCUpdates.cab package for phone devices. </li>    <li>Added a MOC hotfix to the auto update feature. </li>    <li>Created a couple of conferences with content in Live Meeting. </li> </ul>  <p>These items may seem a little random, but they’ve been done to illustrate what’s restorable from the RTC database and the file shares on a Front-End. I also have another machine called OR1DEVDPM01 running the beta of DPM 2010, which is what we’ll be using for the backup and restore.</p>  <p>Now that we have a machine running we first need to get this thing backed up before we trash it. You’ll want to create an exception on the OCS machine for the firewall to allow any traffic from the DPM machine. This will allow installation of the DPM agent, and allow backups and restores to occur.</p>  <h3>Install the DPM Agent</h3>  <ol>   <li>Open the DPM console.&#160;&#160; </li>    <li>Click the Management tab at the top.      <br />&#160;<a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940243pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-02-43 PM" border="0" alt="10-1-2009 4-02-43 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940243pm-thumb.png" width="500" height="323" /></a> </li>    <li>Click the Agents tab below the main navigation line.      </li>    <li>Click Install in the action pane.   </li>    <li>Select Install agents and press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940335pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-03-35 PM" border="0" alt="10-1-2009 4-03-35 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940335pm-thumb.png" width="500" height="386" /></a> </li>    <li>Select the server you’re pushing the agent to (OR1DEVOCS01) and press the Add button. Then press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940434pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-04-34 PM" border="0" alt="10-1-2009 4-04-34 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940434pm-thumb.png" width="500" height="386" /></a> </li>    <li>Enter the credentials of an account with administrative rights on the server and press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940736pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-07-36 PM" border="0" alt="10-1-2009 4-07-36 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940736pm-thumb.png" width="500" height="386" /></a> </li>    <li>Since this is a lab and I’m using Server 2008 I’m not too concerned the server restarting, but in production I’d advise opting for the manual restart.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940814pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-08-14 PM" border="0" alt="10-1-2009 4-08-14 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940814pm-thumb.png" width="500" height="385" /></a> </li>    <li>Press Install and then you can click close while the agent deploys.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940821pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-08-21 PM" border="0" alt="10-1-2009 4-08-21 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200940821pm-thumb.png" width="500" height="385" /></a> </li>    <li>After a minute or two the agent status should change to OK. Now we can start backing up the server.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200941749pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-17-49 PM" border="0" alt="10-1-2009 4-17-49 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200941749pm-thumb.png" width="500" height="320" /></a> </li> </ol>  <h3>Add the OCS Protection Group</h3>  <ol>   <li>In the DPM console again click on the Protection tab.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200941853pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-18-53 PM" border="0" alt="10-1-2009 4-18-53 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200941853pm-thumb.png" width="500" height="320" /></a> </li>    <li>Click Create protection group in the action pane.      <br /></li>    <li>Select Servers and press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200941843pm.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="10-1-2009 4-18-43 PM" border="0" alt="10-1-2009 4-18-43 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200941843pm-thumb.png" width="500" height="374" /></a> </li>    <li>Expand the OCS Front-End, OR1DEVOCS01 and you’ll see a few different nodes such as shares, SQL, volumes and system state. <link />The OCS Backup and Restore guide provides some guidance on what actually needs to be backed up from the server. These options pertain to a Standard Edition Front-End so be sure to check the document for any other role. Here are the items we need to select:<br />       <ul>       <li>All SQL Servers\<server li name>&lt;\RTC\rtc&lt;&gt; </li>        <li>All volumes\&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Application Host\Application Data </li>        <li>All volumes\&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Web Components\AutoUpdate </li>        <li>All volumes\&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Web Components\Data MCU Web\Web </li>        <li>All volumes\&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Web Components\Data MCU Web\Non-Web </li>        <li>All volumes\&lt;OCS Installation Volume&gt;\&lt;OCS Installation Folder&gt;\Web Components\DeviceUpdateFiles </li>     </ul>     <a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200943336pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-1-2009 4-33-36 PM" border="0" alt="10-1-2009 4-33-36 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200943336pm-thumb.png" width="500" height="376" /></a>       <br /></li>    <li>You can press OK and ignore the warning that pops up about adding the system state backup. Press Next to continue after selecting all of the above options.      <br /></li>    <li>Name the Protection Group something descriptive. I’m going out on a limb here, but I used OCS Front-Ends as the name. I don’t have any tape libraries hooked up, so I’ll just be opting for short-term protection to disk. Press Next.&#160; <br /> </li>    <li>     <p>I imagine you’ll generally want more than 5 days of backups, but this works for the purpose here. 15 minute synchronizations are OK, but keep in mind OCS uses a simple recovery model in SQL meaning you take full backups and you restore full backups. None of this full, plus incremental and rolling logs forward fun. Just flat out restore of the entire DB and logs at once. The problem here is a simple database recovery model cannot leverage the synchronization feature of DPM like incremental backups can, so we’re limited to being able to restore only from a full backup, or an “Application recovery point” in DPM terms. You’ll see the default is to back up every day at 8 PM which may or may not be acceptable for you.</p>     <a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945126pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-1-2009 4-51-26 PM" border="0" alt="10-1-2009 4-51-26 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945126pm-thumb.png" width="500" height="374" /></a>      <br />      <p>If you press the Modify button you can add in additional time slots to run an express full backup. Unfortunately (hoping this is a beta bug), you can’t select all the time slots and press Add. So just press Add quite a few times until each timeslot is added and you’ll have a recovery point every 30 minutes for your database. The trade off to running with this kind of frequency is the disk space used. Pick a schedule that’s appropriate for your deployment. Press OK to accept the schedule and then press Next to save the short-term goals.</p>     <a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945345pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-1-2009 4-53-45 PM" border="0" alt="10-1-2009 4-53-45 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945345pm-thumb.png" width="459" height="480" /></a>       <br /></li>    <li>On the next page you’ll see the disk allocation. Press Next to continue.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945638pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-1-2009 4-56-38 PM" border="0" alt="10-1-2009 4-56-38 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945638pm-thumb.png" width="500" height="373" /></a> </li>    <li>Select when to create the replica of your data (now) and press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945710pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-1-2009 4-57-10 PM" border="0" alt="10-1-2009 4-57-10 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945710pm-thumb.png" width="500" height="376" /></a> </li>    <li>Choose when to run consistency checks and press Next.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945741pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-1-2009 4-57-41 PM" border="0" alt="10-1-2009 4-57-41 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945741pm-thumb.png" width="500" height="375" /></a> </li>    <li>On the last page you can review your selections and then press Create Group. The initial replica jobs will be created and then you can press Close.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945929pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-1-2009 4-59-29 PM" border="0" alt="10-1-2009 4-59-29 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200945929pm-thumb.png" width="500" height="321" /></a> </li>    <li>If you click the Monitoring tab you can view the jobs in process.      <br /><a href="http://www.confusedamused.com/wp-content/pictures/2009/10/101200950009pm.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="10-1-2009 5-00-09 PM" border="0" alt="10-1-2009 5-00-09 PM" src="http://www.confusedamused.com/wp-content/pictures/2009/10/101200950009pm-thumb.png" width="500" height="318" /></a> </li> </ol>  <p>At this point we should have the backups running from the Front-End server. The next part of this will be destroying the data and blowing up the server. After that I’ll show how to recover everything we destroyed.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.confusedamused.com/notebook/your-ocs-front-end-and-dpm-2010-part-1-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking Communicator Endpoint Versions On Your OCS Pools</title>
		<link>http://www.confusedamused.com/notebook/checking-communicator-endpoint-versions-on-your-ocs-pools/</link>
		<comments>http://www.confusedamused.com/notebook/checking-communicator-endpoint-versions-on-your-ocs-pools/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 20:00:35 +0000</pubDate>
		<dc:creator>Tom Pacyk</dc:creator>
				<category><![CDATA[Office Communications Server 2007]]></category>
		<category><![CDATA[Office Communications Server 2007 R2]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[moc]]></category>
		<category><![CDATA[OCS]]></category>
		<category><![CDATA[R2]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.confusedamused.com/?p=510</guid>
		<description><![CDATA[One of the questions that comes up with OCS deployments that have been around for a while is the question of what clients are connecting to the pool. This can be controlled with client version filters and the auto update feature of R2, but more often than not there are some straggling clients out there. [...]]]></description>
			<content:encoded><![CDATA[<p>One of the questions that comes up with OCS deployments that have been around for a while is the question of what clients are connecting to the pool. This can be controlled with client version filters and the auto update feature of R2, but more often than not there are some straggling clients out there. The challenge for those without some sort of configuration management tool is identifying what users have those old clients.</p>

<p><p>Microsoft has been nice enough to provide a handy tool within the OCS 2007 R2 Management Console that checks what kind of endpoints are connected to your Front-End server. If you open the OCS MMC, click the pool object and then click the database tab you&#8217;ll see a number of reports you can run. One of the more useful ones is the client version summary. Just press Go next to it and you&#8217;ll see it return a list of endpoints. <br />
<a href="http://www.confusedamused.com/wp-content/pictures/2009/09/clientsummary.png"><img src="http://www.confusedamused.com/wp-content/pictures/2009/09/clientsummary-300x200.png" alt="clientsummary" title="clientsummary" width="300" height="200" class="alignnone size-medium wp-image-513" /></a></p>
<p>You can see from the results we still have quite a mix, and even someone still using a Communicator 2005 client! This is useful in providing an overall picture of what&#8217;s been used, but the question I immediately hear next is &#8220;Who&#8217;s using that version?&#8221; Unfortunately, there&#8217;s no easy way to tell in the console. You can run a per-user-report which will tell you the endpoints a particular user is signed in with, but that&#8217;s going to be a tedious effort to chug through a long list of names trying to find the offenders who haven&#8217;t updated their clients. You can see below what searching for a single user returns.<br />
<a href="http://www.confusedamused.com/wp-content/pictures/2009/09/userreport.png"><img src="http://www.confusedamused.com/wp-content/pictures/2009/09/userreport-278x300.png" alt="userreport" title="userreport" width="278" height="300" class="alignnone size-medium wp-image-515" /></a></p>
<p>In order to answer the question of who&#8217;s using what we need to run a SQL query against the RTCDyn database. I&#8217;ll say this is definitely not a recommended/supported task, so be sure you know what you&#8217;re doing here before you start messing around in SQL Management studio. You have the potential to really hose your OCS installation if you start changing database content. The query we&#8217;ll run is just a SELECT statement so we shouldn&#8217;t cause any problems. Still, you&#8217;ve been warned. </p>
<p>Open SQL Management Studio. If you have a standard edition pool you can download and install SQL Management Studio Express for free. Press the New Query button and paste in the following query. Then just press the Execute button. You&#8217;ll get a list back of SIP URIs along with the endpoint they are currently using. </p>
<pre><code>SELECT CAST([SipHeaderFrom] as varchar) as "SIP URI"
      ,CAST([ClientApp] AS varchar) as "Endpoint"
FROM [rtcdyn].[dbo].[Endpoint]
</code></pre>
<p>That will give us a nice long of everything in use and what SIP URI is signed in with that client.<br />
<a href="http://www.confusedamused.com/wp-content/pictures/2009/09/sql1.png"><img src="http://www.confusedamused.com/wp-content/pictures/2009/09/sql1-300x292.png" alt="sql1" title="sql1" width="300" height="292" class="alignnone size-medium wp-image-521" /></a></p>
<p>Say we want to filter because we&#8217;re looking for people with a specific version. In this case, we want to find everyone still using the R1 MOC client so we can add a WHERE clause that searches for strings that match the agent header. </p>
<pre><code>SELECT CAST([SipHeaderFrom] as varchar) as "SIP URI"
      ,CAST([ClientApp] AS varchar) as "Endpoint"
FROM [rtcdyn].[dbo].[Endpoint]
WHERE CAST([ClientApp] as varchar) like '%2.0%'
</code></pre>
<p>You could replace that 2.0 with anything else returned in the agent headers such as 3.5, OC, LCC, etc. This only queries the clients that are connected at a specific point in time so you may want to run this from time to time to catch clients that may not have been connected the first time you Hope this helps you identify your clients. </p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.confusedamused.com/notebook/checking-communicator-endpoint-versions-on-your-ocs-pools/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
