<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Private and Hybrid Cloud</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/systemcenteril/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/systemcenteril/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 06:17:31 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SCOM 1801 Install Linux Agent</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/scom-1801-install-linux-agent</link>
      <pubDate>Fri, 06 Jul 2018 13:23:58 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/?p=155</guid>
      <description><![CDATA[Supported platforms

 	IBM AIX 6.1
 	IBM AIX 7 (Power)
 	HP-UX 11i v3 IA64
 	Red Hat Enterprise...]]></description>
      <content:encoded><![CDATA[Supported platforms
<ol>
 	<li class="selected"><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#ibm-aix-61">IBM AIX 6.1</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#ibm-aix-7-power">IBM AIX 7 (Power)</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#hp-ux-11i-v3-ia64">HP-UX 11i v3 IA64</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#red-hat-enterprise-linux-server-5">Red Hat Enterprise Linux Server 5</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#red-hat-enterprise-linux-server-6">Red Hat Enterprise Linux Server 6</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#red-hat-enterprise-linux-server-7">Red Hat Enterprise Linux Server 7</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#red-hat-enterprise-linux-server-7-power">Red Hat Enterprise Linux Server 7 (Power)</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#solaris-10-sparc">Solaris 10 SPARC</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#solaris-10-x86">Solaris 10 x86</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#solaris-11-sparc">Solaris 11 SPARC</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#solaris-11-x86">Solaris 11 x86</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#solaris-utf-8-support">Solaris UTF-8 Support</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#suse-linux-enterprise-server-10">SUSE Linux Enterprise Server 10</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#suse-linux-enterprise-server-11">SUSE Linux Enterprise Server 11</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#suse-linux-enterprise-server-12">SUSE Linux Enterprise Server 12</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#universal-linux-debian-packagebrdebian-ubuntu-server">Universal Linux (Debian package)Debian, Ubuntu Server</a></li>
 	<li class=""><a href="https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801#universal-linux-rpm-packagebrcentos-oracle-linux">Universal Linux (RPM package)CentOS, Oracle Linux</a></li>
</ol>
https://docs.microsoft.com/en-us/system-center/scom/plan-supported-crossplat-os?view=sc-om-1801

&nbsp;

============================================================================================================

&nbsp;

<b>Install agents through Discovery Wizard (recommended)</b>

&nbsp;
<ul>
 	<li style="list-style-type: none">
<ul>
 	<li style="list-style-type: none">
<ol>
 	<li>Import the latest Linux Management pack.</li>
 	<li>Administration pane à Device Management à UNIX/Linux Computers à Right Click à Choose <b><i>Discovery Wizard</i></b>.</li>
 	<li>Choose <b><i>UNIX/Linux Computers </i></b>à Next</li>
 	<li>Add <b><i>Discovery Criteria </i></b>à Enter the IP of the Linux Server under <b><i>Discover Scope</i></b> and the <b><i>SSH Port</i></b>; <b><i>Discovery Type </i></b>à All Computers; <b><i>Credentials </i></b>à either choose the configured Runa's credentials or click “<b><i>Set Credentials</i></b>” and set the credentials (both User name and password or SSH key) à Click Ok; <b><i>Save</i></b> the Discovery Criteria.</li>
 	<li>Select <b><i>target resource pool </i></b>à click <b><i>Discover</i></b></li>
 	<li>Select the Linux Server that was discovered under “<b>Manageable computers</b>” à Click <b>Manage.</b></li>
</ol>
</li>
</ul>
</li>
</ul>
&nbsp;

<b>Install agents manually</b>

&nbsp;

<strong>- Install the Linux agent through command line -</strong>
<ul>
 	<li>To install the Red Hat Enterprise package, type: <b>sh ./omsagent-&lt;version&gt;.rhel.&lt;version&gt;.&lt;arch&gt;.sh --install --enable-OpsMgr</b></li>
</ul>
<strong>- Certificate Signing – sign agent certificates and copy the signed certificates to the Linux servers -</strong>
<ul>
 	<li><i><b>If there are existing certificates on the system, they are reused during agent installation</b>. New certificates are not created. Certificates are not automatically deleted when you uninstall an agent. <b>You must manually delete the certificates that are listed in the folder /etc/opt/microsoft/scx/ssl for UNIX and /etc/opt/microsoft/omsagent/scom/certs folder for Linux. To regenerate the certificates at install, you must remove this folder before agent installation</b><b>.</b></i></li>
</ul>
<ul>
 	<li>On the computer that is running the UNIX or Linux operating system, l<b>ocate the file /etc/opt/microsoft/scx/ssl/scx-host-&lt;hostname&gt;.pem</b> and securely copy or<b> transfer it to any location on the computer that is hosting Operations Manager.</b></li>
</ul>
<ul>
 	<li>On the computer that is hosting Operations Manager, on the Windows desktop, click Start, and then click Run.</li>
</ul>
<ul>
 	<li>In the Run dialog box, type cmd, and then press Enter.</li>
</ul>
<ul>
 	<li>Change directories to the location where you copied the pem file.</li>
</ul>
<ul>
 	<li>Type the command<b> s</b><b>cxcertconfig -sign scx-host-&lt;hostname&gt;.pem scx_new.pem</b><b>,</b> and then press Enter. This command <b>will self-sign your certificate (scx-host-&lt;hostname&gt;.pem) and then save the new certificate (scx-host-&lt;hostname&gt;_new.pem).</b> <b>Securely copy or transfer the scx_new.pem file into the /etc/opt/microsoft/scx/ssl folder on the computer that is hosting the UNIX or Linux operating system. This replaces the original scx-host-&lt;hostname&gt;.pem file</b>.</li>
</ul>
<ul>
 	<li>Restart the agent by typing scxadmin –restart.</li>
</ul>
&nbsp;

<strong>- Discover the Linux servers through Discovery Wizard.</strong>

&nbsp;

Link - <a href="https://docs.microsoft.com/en-us/system-center/scom/manage-install-crossplat-agent-cmdline?view=sc-om-1801">https://docs.microsoft.com/en-us/system-center/scom/manage-install-crossplat-agent-cmdline?view=sc-om-1801</a>

&nbsp;

==========================================================================================================

&nbsp;

<b>Known Issues:</b>

-- -- -- -- -- -- -- -- -- -- -- --

<strong>Issue</strong>:

You trying to add servers to SCOM. Servers get successfully discovered in SCOM but when I try to sign the certificate using "manage" I get the following error : Certificate signing operation was not successful

&nbsp;

<strong>Resolution</strong>:

Most likely the system name for the Linux system "mydevlinuxbox.com" does not match what is in your DNS. SCOM will lookup the name in DNS and see if it matches the name that was generated in the  certificate of the agent. If they do not match you will see the error you posted.

On the agent run:

openssl x509 -in /etc/opt/Microsoft/scx/ssl/scx.pem -text

Look at the CN name returned and see if it matches what a nslookup returns for the system from the SCOM server. If it does not then this is your problem. You can either fix the DNS entry or if you want to rename the name in the certificate to match what is in DNS run the following command on the agent.

/opt/Microsoft/scx/bin/tools/scxsslconfig -h &lt;hostname&gt; -d &lt;domain name&gt; -f -v

Where &lt;hostname&gt; and &lt;domain name&gt; are the DNS versions.

Once complete re-run the discovery wizard in SCOM and see if it can now manage the agent.

-- -- -- -- -- -- -- -- -- -- -- --

<strong>Issue</strong>:

Discovery was not successful, Message: platform not supported

&nbsp;

<strong>Resolution</strong>:

Remove the existing Linux MPs and reinstall the latest ones from the download site and see if that helps.

-- -- -- -- -- -- -- -- -- -- -- --

<strong>Issue</strong>:

Upgrade to 1801 - some RHEL servers updated to version 7.2 over the weekend, and all the agents grayed out. When they attempted to re-run discovery, this error occurred:

Unexpected DiscoveryResult.ErrorData type.  Please file <b>bug</b> report.

&nbsp;

<strong>Resolution</strong>:

them remove the agent from the console and uninstalled manually – then the discovery was successful

-- -- -- -- -- -- -- -- -- -- -- --

<strong>Issue</strong>:

<b>Downloaded Kit</b> folder [%ProgramFiles%\Microsoft System Center\Operations Manager\Server\AgentManagement\UnixAgents\DownloadedKits] is not available though we have installed UNIX\LINUX Management Package

&nbsp;

<strong>Resolution</strong>:

Open Issue]]></content:encoded>
    </item>
    <item>
      <title>Implementing previous post by using Visual Studio Authoring Extension</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/implementing-previous-post-by-using-visual-studio-authoring-extension</link>
      <pubDate>Tue, 05 Apr 2016 11:11:00 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2016/04/05/implementing-previous-post-by-using-visual-studio-authoring-extension/</guid>
      <description><![CDATA[Implementation the previous post &quot;SCOM Rule contains timed script and Alert without...]]></description>
      <content:encoded><![CDATA[<p>Implementation the previous post &quot;SCOM Rule contains timed script and Alert without condition&quot; are already been covered by Jonathan Almquist -&nbsp; https://blogs.technet.microsoft.com/jonathanalmquist/2010/05/25/how-to-generate-an-alert-directly-from-a-script-based-rule/</p>
<p>but Jonathan explains how to write this rule by <span style="text-decoration:underline;"><strong>MP Authoring</strong></span> tool, I will show you how to create this rule by using&nbsp;<span style="text-decoration:underline;"><strong>Visual Studio Authoring Extension</strong></span>:</p>
<p><br />first you need to download the VSAE : https://www.microsoft.com/en-us/download/details.aspx?id=30169</p>
<p># Create New Project</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/New%20Project.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/New-Project.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/New%20Project.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/New-Project.png" border="0" /></a></p>
<p># Select SCOM Version</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/OpsMgr%202012%20R2%202.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/OpsMgr-2012-R2-2.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/OpsMgr%202012%20R2%202.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/OpsMgr-2012-R2-2.png" border="0" /></a></p>
<p># Create New Folder</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Add%20Folder%203.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Add-Folder-3.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Add%20Folder%203.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Add-Folder-3.png" border="0" /></a></p>
<p># Rule (Custom)</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Add%20New%20Item%20Custom%20Rule%204.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Add-New-Item-Custom-Rule-4.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Add%20New%20Item%20Custom%20Rule%204.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Add-New-Item-Custom-Rule-4.png" border="0" /></a></p>
<p># Select the Rule,&nbsp;in right side look on the following options: Data Source / Condition Detection / Write Action</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Rule1%205.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Rule1-5.JPG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Rule1%205.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Rule1-5.JPG" border="0" /></a></p>
<p># Data Source ... Select &quot;TimedScript.PropertyBag&quot;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/In%20DS%20Select%20Property%20bag.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/In-DS-Select-Property-bag.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/In%20DS%20Select%20Property%20bag.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/In-DS-Select-Property-bag.png" border="0" /></a></p>
<p># In Data Source Configuration, write the Script, and click OK</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Script%20Body.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Script-Body.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Script%20Body.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Script-Body.png" border="0" /></a></p>
<p># First Select Target Class, In Condition Detection Type ID, Select System.ExpressionFilter</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/CD%20Expression%20filter%20and%20target.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/CD-Expression-filter-and-target.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/CD%20Expression%20filter%20and%20target.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/CD-Expression-filter-and-target.png" border="0" /></a></p>
<p># Condition Detection Configuration, Config the Property Bag Output</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/CD%20Settings%20Expression.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/CD-Settings-Expression.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/CD%20Settings%20Expression.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/CD-Settings-Expression.png" border="0" /></a></p>
<p># Write Action ... Select GenerateAlert TypeID</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/WA%20Select%20Generate%20Alert.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/WA-Select-Generate-Alert.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/WA%20Select%20Generate%20Alert.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/WA-Select-Generate-Alert.png" border="0" /></a></p>
<p># Data Source Configuration ...</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/WA%20Generate%20Alert.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/WA-Generate-Alert.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/WA%20Generate%20Alert.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/WA-Generate-Alert.png" border="0" /></a></p>
<p># Build Solution</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/6404.Build%20Solution.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/6404.Build-Solution.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/6404.Build%20Solution.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/6404.Build-Solution.png" border="0" /></a></p>
<p># Management Pack file location</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/4061.Path%20of%20XML%20MP.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/4061.Path-of-XML-MP.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/4061.Path%20of%20XML%20MP.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/4061.Path-of-XML-MP.png" border="0" /></a></p>
<p># in Solution folder - bin\debug, copy XML file, and Import it to SCOM</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/5282.XML%20under%20bin%20,%20debug.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/5282.XML-under-bin-_2C00_-debug.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/5282.XML%20under%20bin%20,%20debug.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/5282.XML-under-bin-_2C00_-debug.png" border="0" /></a></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>SCOM Rule contains timed script and Alert without condition</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/scom-rule-contains-timed-script-and-alert-without-condition</link>
      <pubDate>Sun, 03 Apr 2016 14:07:00 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2016/04/03/scom-rule-contains-timed-script-and-alert-without-condition/</guid>
      <description><![CDATA[Organization demand is to running script and alert the result to forward the content to other...]]></description>
      <content:encoded><![CDATA[<p>Organization demand is to running script and alert the result to forward the content to other systems.</p>
<p>Implementation by creating -&nbsp;Custom&nbsp;Rule that contains Data Source to running the script in every X time, and Condition (in this example the condition every time will be true) and Write Action to Alerts with Property bag content</p>
<p><strong><span style="font-size:small;">Data Source -&quot;<span>Windows!Microsoft.Windows.TimedScript.PropertyBagProvider</span>&quot;:</span></strong></p>
<p><br /><span style="font-size:x-small;">-&lt;DataSource ID=&quot;DS&quot; TypeID=&quot;Windows!Microsoft.Windows.TimedScript.PropertyBagProvider&quot;&gt;</span></p>
<p><span style="font-size:xx-small;">&lt;IntervalSeconds&gt;120&lt;/IntervalSeconds&gt;</span></p>
<p><span style="font-size:xx-small;">&lt;SyncTime/&gt;</span></p>
<p><span style="font-size:xx-small;">&lt;ScriptName&gt;log.vbs&lt;/ScriptName&gt;</span></p>
<p><span style="font-size:xx-small;">&lt;Arguments/&gt;</span></p>
<p><span style="font-size:xx-small;">&lt;ScriptBody&gt; Option Explicit Dim oAPI,oBag,sMyScriptValue, shell Set oAPI=CreateObject(&quot;MOM.ScriptAPI&quot;) Set oBag=oAPI.CreatePropertyBag() sMyScriptValue=&quot;AlertCondition&quot; Set shell=CreateObject(&quot;WScript.Shell&quot;) shell.LogEvent 4,&quot;start the script&quot; Call oBag.AddValue(&quot;MyScriptPropertyName&quot;,sMyScriptValue) Call oAPI.Return(oBag) &lt;/ScriptBody&gt;</span></p>
<p><span style="font-size:xx-small;">&lt;TimeoutSeconds&gt;60&lt;/TimeoutSeconds&gt;</span></p>
<p><span style="font-size:xx-small;">&lt;/DataSource&gt;</span></p>
<p></p>
<p><strong>Condition Detection</strong> - <span style="font-size:small;">&quot;<strong>System!System.ExpressionFilter</strong>&quot;:</span></p>
<p><br /><span style="font-size:x-small;">-&lt;ConditionDetection ID=&quot;CD&quot; TypeID=&quot;System!System.ExpressionFilter&quot;&gt;</span></p>
<p><br /><span style="font-size:x-small;">-&lt;Expression&gt;</span></p>
<p><br /><span style="font-size:x-small;">-&lt;SimpleExpression&gt;</span></p>
<p><br /><span style="font-size:x-small;">-&lt;ValueExpression&gt;</span></p>
<p><span style="font-size:x-small;">&lt;XPathQuery Type=&quot;String&quot;&gt;Property[@Name=&#39;MyScriptPropertyName&#39;]&lt;/XPathQuery&gt;</span></p>
<p><span style="font-size:x-small;">&lt;/ValueExpression&gt;</span></p>
<p><span style="font-size:x-small;">&lt;Operator&gt;Equal&lt;/Operator&gt;</span></p>
<p><br /><span style="font-size:x-small;">-&lt;ValueExpression&gt;</span></p>
<p><span style="font-size:x-small;">&lt;Value Type=&quot;String&quot;&gt;AlertCondition&lt;/Value&gt;</span></p>
<p><span style="font-size:x-small;">&lt;/ValueExpression&gt;</span></p>
<p><span style="font-size:x-small;">&lt;/SimpleExpression&gt;</span></p>
<p><span style="font-size:x-small;">&lt;/Expression&gt;</span></p>
<p><span style="font-size:x-small;">&lt;/ConditionDetection&gt;</span></p>
<p><br /><span style="font-size:small;"><strong>Write Action - <span style="font-size:small;"><strong>&quot;Health!System.Health.GenerateAlert&quot;</strong></span>:</strong></span></p>
<p><br /><span style="font-size:x-small;">-&lt;WriteAction Target=&quot;Windows!Microsoft.Windows.Computer&quot; ID=&quot;WA&quot; TypeID=&quot;Health!System.Health.GenerateAlert&quot;&gt;</span></p>
<p><span style="font-size:x-small;">&lt;Priority&gt;2&lt;/Priority&gt;</span></p>
<p><span style="font-size:x-small;">&lt;Severity&gt;2&lt;/Severity&gt;</span></p>
<p><span style="font-size:x-small;">&lt;AlertMessageId&gt;$MPElement[Name=&quot;AlertMessageID81358ed3f16a45f58dfba92b78c5658b&quot;]$&lt;/AlertMessageId&gt;</span></p>
<p><br /><span style="font-size:x-small;">-&lt;AlertParameters&gt;</span></p>
<p><span style="font-size:x-small;">&lt;AlertParameter1&gt;$Data/Property[@Name=&#39;MyScriptPropertyName&#39;]$&lt;/AlertParameter1&gt;</span></p>
<p><span style="font-size:x-small;">&lt;/AlertParameters&gt;</span></p>
<p><span style="font-size:x-small;">&lt;/WriteAction&gt;</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/10401/00/00/03/66/15/64/ScriptandAlert.xml" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-10401-00-00-03-66-15-64/ScriptandAlert.xml">ScriptandAlert.xml</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Deploy SCOM Agent Update Rollup on non-remotely managed agents</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/deploy-scom-agent-update-rollup-on-non-remotely-managed-agents</link>
      <pubDate>Sat, 20 Feb 2016 15:13:00 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2016/02/20/deploy-scom-agent-update-rollup-on-non-remotely-managed-agents/</guid>
      <description><![CDATA[Period of time Microsoft release Update rollups for SCOM system.
[Kevin Holman write post...]]></description>
      <content:encoded><![CDATA[<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">Period of time Microsoft release Update rollups for SCOM system.</span></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;"><span style="font-family:Calibri;">[Kevin Holman write post &quot;step by step update&quot; - </span><a href="/b/kevinholman/archive/2016/01/12/ur8-for-scom-2012-r2-step-by-step.aspx"><span style="color:#0563c1;font-family:Calibri;font-size:medium;">https://blogs.technet.com/b/kevinholman/archive/2016/01/12/ur8-for-scom-2012-r2-step-by-step.aspx</span></a><span style="font-family:Calibri;font-size:medium;"> ] </span></span></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">After you finish to running the updates for all server roles, </span><span style="font-family:Calibri;font-size:medium;">all agents that installed remotely or configure &#39;remotely managed = <b>true</b>&#39; in DB&#39; are enter to Pending management and waiting that you push the Update Rollup to agents remotely.</span></p>
<p dir="LTR"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/0285.PendingManagement.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/0285.PendingManagement.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/0285.PendingManagement.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/0285.PendingManagement.png" border="0" /></a></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">Agents that installed locally because you cannot open the entire desired ports, you must to transfer the update <b>msp</b> file, and running it <b>locally</b> on agents.</span></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">In this post you learn how to push this update automatically [without distribution software like SCCM] by using <b>SCOM rule</b> and <b>file share</b> that all servers have access to it.</span></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">1. Extract the msp file from Agent Update Rollup folder to folder in file share.</span></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">2. Create new rule that &quot;execute a script&quot;: Config schedule and write VB script:</span></p>
<p dir="LTR"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Rule.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Rule.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Rule.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Rule.png" border="0" /></a><br /><span style="font-family:Calibri;"><span style="font-size:medium;"><b>Uncheck &#39;Rule is enabled&#39;</b></span></span></p>
<p dir="LTR"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/2480.Schedule.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/2480.Schedule.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/2480.Schedule.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/2480.Schedule.png" border="0" /></a></p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;">Configure your schedule</span></b></p>
<p dir="LTR"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/0407.Script.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/0407.Script.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/0407.Script.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/0407.Script.png" border="0" /></a></p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;">Write this script, in &lt;&gt; insert the path of the &#39;file share&#39; that all servers can access it.</span></b></p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;">Script: ________________________________________________<br /></span></b></p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>Dim Wshshell, WshProcEnv, System_Architecture, Process_Architecture</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>Set WshSehll = Wscript.CreateObject(&quot;WScript.Shell&quot;)</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>Set WshProcEnv = WshSehll.Environment(&quot;Process&quot;)</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>Process_Architecture = WshProcEnv(&quot;Processor_Architecture&quot;)</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>if Process_Architecture = &quot;x86&quot; then</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>const Event_Success = 0</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>Wshshell.LogEvent Event_Success, &quot;Start UR for x86 Processor_Architecture&quot;</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>WshShell.Run &quot;Msiexec.exe /Update &quot;i386-Agent.msp&quot;</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>else</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>Wshshell.LogEvent Event_Success, &quot;Start UR for 64 bit Processor_Architecture&quot;</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>WshShell.Run &quot;Msiexec.exe /Update &quot;AMD64-Agent.msp&quot;</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;"><span style="font-size:small;"><span style="font-size:small;"></span></span></span></b></p>
<p>End if</p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;">_______________________________________________________<br /></span></b></p>
<p dir="LTR"><b><span style="font-family:Calibri;font-size:medium;">And select Create.</span></b></p>
<p dir="LTR"><span style="font-family:Calibri;"><span style="font-size:medium;">&nbsp;3. Create dynamic group for Override&nbsp;the filter is: select Agent class and add condition &quot;Path List &ndash; Does not match - *UR&lt;Number of this update rollup&gt;*&quot;</span></span></p>
<p dir="LTR"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/3157.Group.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/3157.Group.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/3157.Group.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/3157.Group.png" border="0" /></a></p>
<p dir="LTR"><strong><span style="font-family:Calibri;font-size:medium;">Select Agent class, and &#39;Add&#39;, the condition is &quot;Where Patch List Does not match wildcard *UR&lt;X&gt;*&quot;</span></strong></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">This group include only the agents the Last update rollup does not installed. </span></p>
<p dir="LTR"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/8032.AgentByVersion.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/8032.AgentByVersion.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/8032.AgentByVersion.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/8032.AgentByVersion.png" border="0" /></a></p>
<p dir="LTR"><span style="font-family:Calibri;"><span style="font-size:medium;"><b>Patch List</b> property - under <b>Operations Manager</b> folder in <b>Agent by Version</b> view</span></span></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">4. Find the rule that you create in section 2 and override on this group.</span></p>
<p dir="LTR"><span style="font-family:Calibri;font-size:medium;">5. Because the agent&#39;s service run on Local system&nbsp;and LS don&#39;t have permissions to running installation from share, you need to create <strong>run as profile</strong> with <strong>account </strong>that have permissions,&nbsp;and configure this rule to running with this profile.</span></p>
<p dir="LTR"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/5621.Profile.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/5621.Profile.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/5621.Profile.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/5621.Profile.png" border="0" /></a></p>
<p dir="LTR"><span style="font-size:large;"><strong><span style="font-family:Calibri;">Now in the next interval the script run locally on every agent that does not update and after the update installed, </span></strong></span><span style="font-size:large;"><strong><span style="font-family:Calibri;">agent out automatically from group and the script don&#39;t running on it again. </span></strong></span></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>View Alerts in Powershell Grid Widget</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/view-alerts-in-powershell-grid-widget</link>
      <pubDate>Tue, 19 Jan 2016 12:22:00 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2016/01/19/view-alerts-in-powershell-grid-widget/</guid>
      <description><![CDATA[SCOM 2012 R2 UR2 come with new Widget named 'Powershell Grid' widget

in this post you will learn...]]></description>
      <content:encoded><![CDATA[SCOM 2012 R2 UR2 come with new Widget named 'Powershell Grid' widget

in this post you will learn how to view specific alerts in this widget by using simple Powershell script,

1. write the script.

2. build the grid template commands.

3. create new dashboard select Powershell grid widget, and insert the script with grid commands.

Example:

--------------------------------------------------------------------------------------

$Alerts = Get-SCOMAlert -ResolutionState 0

Foreach ($Alert in $Alerts)

{

$DataObject = $ScriptContext.CreateInstance("xsd://foo!bar/baz")

$DataObject["Id"] = [String]($Alert.id)

$DataObject["Name"] = [String]($Alert.Name)

$DataObject["Severity"] = [String]($Alert.Severity)

$ScriptContext.ReturnCollection.Add($DataObject)

}

--------------------------------------------------------------------------------------

Script in Widget:

<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Script.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Script.png" border="0" /></a>

4.  Result!

<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Alerts.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Alerts.png" border="0" /></a>

you can insert more alerts fields to widget, by adding more $DataObject["&lt;Alert Field&gt;"] = [String]($Alert.&lt;Alert Field&gt;) to final script]]></content:encoded>
    </item>
    <item>
      <title>Monitor SQL Database value return incorrect result</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/monitor-sql-database-value-return-incorrect-result</link>
      <pubDate>Sat, 07 Nov 2015 13:54:52 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2015/11/07/monitor-sql-database-value-return-incorrect-result/</guid>
      <description><![CDATA[Issue:
you have&nbsp;to monitor SQL database value using Unit Monitor / timed script, by VB Script...]]></description>
      <content:encoded><![CDATA[<p><em><strong>Issue</strong></em>:</p>
<p>you have&nbsp;to monitor SQL database value using Unit Monitor / timed script, by VB Script and return the value to property bag, but the result is Misinformation.</p>
<p>for example: Monitoring Specific runbook status from Orchestrator Database, Policies table, column Published, show the runbook status, value &#39;0&#39; Meaning Runbook stopped.</p>
<p><span style="color:#800080;">Dim objCN, strConnection</span><br /><span style="color:#800080;"> Dim objAPI, oBag</span><br /><br /><span style="color:#800080;"> Set objCN = CreateObject(&quot;ADODB.Connection&quot;)</span><br /><span style="color:#800080;"> Set objAPI = CreateObject(&quot;MOM.ScriptAPI&quot;)</span><br /><span style="color:#800080;"> Set oBag = objAPI.CreatePropertyBag()</span><br /><br /><br /><span style="color:#800080;"> strConnection = &quot;Driver={SQL Server};Server=&lt;SQL Server Name&gt;;Database=Orchestrator;Trusted_Connection=TRUE&quot;</span><br /><span style="color:#800080;"> objCN.Open strConnection</span><br /><br /><span style="color:#800080;"> Dim strSQLQuery</span><br /><span style="color:#800080;">strSQLQuery = &quot;Select Published FROM [Orchestartor].[dbo].[Policies] where name = &#39;Runbook Name&#39;&quot;</span><br /><br /><span style="color:#800080;"> Dim objRS</span><br /><span style="color:#800080;"> Set objRS=CreateObject(&quot;ADODB.Recordset&quot;)</span><br /><br /><span style="color:#800080;"> Set objRS = objCN.Execute(strSQLQuery)</span><br /><br /><span style="color:#800080;"> Do Until objRS.EOF</span><br /><span style="color:#800080;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#39;WScript.Echo objRS.Fields(&quot;Published&quot;)</span><br /><span style="color:#800080;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if objRS.Fields(&quot;Published&quot;)&nbsp;= &quot;0&quot; then</span><br /><span style="color:#800080;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><br /><span style="color:#800080;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call oBag.AddValue(&quot;State&quot;,&quot;BAD&quot;)</span><br /><span style="color:#800080;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Call objAPI.Return(oBag)</span><br /><span style="color:#800080;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else</span><br /><span style="color:#800080;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Call oBag.AddValue(&quot;State&quot;,&quot;GOOD&quot;)</span><br /><span style="color:#800080;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Call objAPI.Return(oBag)</span><br /><span style="color:#800080;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if</span><br /><span style="color:#800080;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objRS.MoveNext</span><br /><span style="color:#800080;"> Loop</span><br /><br /><span style="color:#800080;"> objRS.Close</span></p>
<p>The runbook that selected in script status is running [1] but the result of script is &#39;-1&#39; and not 1</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/SQL.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/SQL.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/SQL.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/SQL.png" border="0" /></a></p>
<p><em><strong>Couse</strong></em>:</p>
<p>The reason for that is, because the type of column is&nbsp;<span style="color:#ff0000;">&#39;bit&#39;</span> not <span style="color:#ff0000;">&#39;int&#39;, <span style="color:#000000;">so&nbsp;in INT type&nbsp;if condition are work not in bit type.</span></span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Column.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Column.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Column.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Column.PNG" border="0" /></a><br /></span></span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;"><em><strong>Resolution</strong></em>:</span></span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;">Change the query to casting the result from bit type to INT,&nbsp;</span></span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;">With Casting: &quot;</span></span>Select <span style="color:#ff0000;">cast(Published AS INT)</span> <span style="color:#ff0000;">AS Published</span> FROM [Orchestartor].[dbo].[Policies] where name = &#39;Runbook Name&#39;&quot;</p>
<p>the result of query now is:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Good.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Good.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Good.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Good.PNG" border="0" /></a></p>
<p><span style="color:#ff0000;"><span style="color:#000000;">&nbsp;</span></span></p>
<p><span style="color:#ff0000;font-size:medium;"><span style="color:#000000;">Select the Script with casting inside the query&nbsp;and build the Monitor and the result will be correct..</span></span></p>
<p></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>SCOM Rule - Run PowerShell Script</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/scom-rule-run-powershell-script</link>
      <pubDate>Tue, 27 Oct 2015 14:05:00 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2015/10/27/scom-rule-run-powershell-script/</guid>
      <description><![CDATA[Some times you need to run Powershell Script on Multiple servers&nbsp;during certain times of the...]]></description>
      <content:encoded><![CDATA[<p>Some times you need to run Powershell Script on Multiple servers&nbsp;during certain times of the day,&nbsp;from the Console you have the Rule&nbsp;execution command but you need to save the script file on local&nbsp;targets, and the script also run remotely&nbsp;,&nbsp;by SCOM Console you can only create new rule that running VBScript on local target server, in this post I will show you how you can run also Powershell script on local target and the script will be saved inside the Management Pack and running on Server Locally</p>
<p>workflow like rule must&nbsp;contain Data Source and Write Action (Condition Detection is optional)</p>
<p>In this MP I Config the&nbsp;Data Source&nbsp;- the <strong>timer</strong> and the write action - the <strong>Powershell Script, </strong>[in VB Script rule this is the same but with difference write action type]</p>
<p>-&lt;Rule DiscardLevel=&quot;100&quot; Priority=&quot;Normal&quot; Remotable=&quot;true&quot; ConfirmDelivery=&quot;false&quot; Target=&quot;SystemCenter!Microsoft.SystemCenter.RootManagementServer&quot; Enabled=&quot;true&quot; ID=&quot;MomUIGeneratedRule938ff2117e8d4821b14d1a6be24b60a4&quot;&gt;</p>
<p>&lt;Category&gt;Custom&lt;/Category&gt;</p>
<p>&lt;DataSources&gt;</p>
<p>&lt;DataSource ID=&quot;Scheduler&quot; TypeID=&quot;System!System.Scheduler&quot;&gt;</p>
<p>&lt;Scheduler&gt;</p>
<p>&lt;WeeklySchedule&gt;</p>
<p>&lt;Windows&gt;</p>
<p>&lt;Daily&gt;</p>
<p>&lt;Start&gt;00:00&lt;/Start&gt;</p>
<p>&lt;End&gt;00:00&lt;/End&gt;</p>
<p>&lt;DaysOfWeekMask&gt;6&lt;/DaysOfWeekMask&gt;</p>
<p>&lt;/Daily&gt;</p>
<p>&lt;/Windows&gt;</p>
<p>&lt;/WeeklySchedule&gt;</p>
<p>&lt;ExcludeDates/&gt;</p>
<p>&lt;/Scheduler&gt;</p>
<p>&lt;/DataSource&gt;</p>
<p>&lt;/DataSources&gt;</p>
<p>&lt;WriteActions&gt;</p>
<p>&lt;WriteAction ID=&quot;ExecuteScript&quot; TypeID=&quot;Windows!Microsoft.Windows.PowerShellPropertyBagWriteAction&quot;&gt;</p>
<p>&lt;ScriptName&gt;Rule.ps1&lt;/ScriptName&gt;</p>
<p>&lt;ScriptBody&gt; Write-eventlog -logname &#39;operations manager&#39; -Source &#39;Health Service Script&#39; -EventId 123 -EntryType error -Message &quot;test alert&quot; &lt;/ScriptBody&gt;</p>
<p>&lt;TimeoutSeconds&gt;60&lt;/TimeoutSeconds&gt;</p>
<p>&lt;/WriteAction&gt;</p>
<p>&lt;/WriteActions&gt;</p>
<p>&lt;/Rule&gt;</p>
<p>&lt;/Rules&gt;</p>
<p><strong>The full MP are Attached</strong></p>
<p><strong><br /></strong><strong>Change the Script to your requirement and import the MP than navigate to Console &gt; Authoring &gt; rules &gt; <br /></strong></p>
<p><strong>you can edit the time schedule:<br /></strong></p>
<p><strong><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/ruletime.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/ruletime.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/ruletime.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/ruletime.PNG" border="0" /></a></strong></p>
<p>and look or edit the script:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/scriptpowerhsell.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/scriptpowerhsell.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/scriptpowerhsell.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/scriptpowerhsell.PNG" border="0" /></a></p>
<p><strong>Note! the Target&nbsp;now is Root Management Server, you can change the target depending on your needs</strong></p>
<p><strong>for example: to target on All Windows Server, change the target to Windows!Microsoft.Windows.Server.Computer and so on.<br /></strong></p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/10401/00/00/03/65/64/05/RuleScript.xml" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-10401-00-00-03-65-64-05/RuleScript.xml">RuleScript.xml</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Forward All Line Text to Next Orchestrator Activity</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/forward-all-line-text-to-next-orchestrator-activity</link>
      <pubDate>Tue, 11 Aug 2015 14:58:25 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2015/08/11/forward-all-line-text-to-next-orchestrator-activity/</guid>
      <description><![CDATA[










]]></description>
      <content:encoded><![CDATA[<p></p>
<p style="text-align:center;"></p>
<p style="text-align:center;"></p>
<p style="text-align:center;"></p>
<p style="text-align:center;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/page1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/page1.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/page1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/page1.png" border="0" /></a></p>
<p style="text-align:center;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/page2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/page2.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/page2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/page2.png" border="0" /></a></p>
<p style="text-align:center;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/page3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/page3.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/page3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/page3.png" border="0" /></a></p>
<p style="text-align:center;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/page4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/page4.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/page4.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/page4.png" border="0" /></a><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/7651.page4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/7651.page4.png"></a></p>
<p></p>
<p></p>
<p></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Configure State to SCOM Group that Depending on his Members</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/configure-state-to-scom-group-that-depending-on-his-members</link>
      <pubDate>Mon, 03 Aug 2015 14:14:00 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2015/08/03/configure-state-to-scom-group-that-depending-on-his-members/</guid>
      <description><![CDATA[your create Group in SCOM Console called &quot;My Group&quot; with computer object...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size:medium;">your create Group in SCOM Console called &quot;My Group&quot; with computer object member</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Group.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Group.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Group.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Group.PNG" border="0" /></a></p>
<p><span style="font-size:medium;">In&nbsp;Discover Inventory under Monitoring tab, you can see that on group didn&#39;t have State, that because group was&nbsp;not inherited the monitors from is members</span></p>
<p><span style="font-size:medium;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/DI.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/DI.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/DI.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/DI.PNG" border="0" /></a></span></p>
<p><span style="font-size:medium;">to configure state that depend on members status [Useful in dashboards], you need to create Dependency monitor</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Depe.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Depe.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Depe.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Depe.PNG" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Depe2.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Depe2.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Depe2.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Depe2.PNG" border="0" /></a>&nbsp;</p>
<p><span style="font-size:medium;">Configure Dependency Monitor on a group membership <strong>[choice the second]</strong></span></p>
<p><span style="font-size:medium;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Last.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Last.PNG"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/04/01/Last.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-04-01/Last.PNG" border="0" /></a></span></p>
<p><span style="font-size:medium;">as you can see the Group now get the State from is Member</span></p>
<p></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Problem with installing Orchestrator and SCOM on the same server</title>
      <link>https://docs.microsoft.com/archive/blogs/systemcenteril/problem-with-installing-orchestrator-and-scom-on-the-same-server</link>
      <pubDate>Wed, 04 Feb 2015 13:43:00 GMT</pubDate>
      <dc:creator><![CDATA[yoel borovski]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/systemcenteril/2015/02/04/problem-with-installing-orchestrator-and-scom-on-the-same-server/</guid>
      <description><![CDATA[I came across many environments installed the system center Orchestrator server on the SCOM server,...]]></description>
      <content:encoded><![CDATA[<p><span class="hps">I came across many</span> <span class="hps">environments</span> <span class="hps">installed the</span> system center <span class="hps">Orchestrator</span> <span class="hps">server</span> <span class="hps">on the</span> <span class="hps">SCOM</span> <span class="hps">server</span><span>,</span> <span class="hps">since</span> <span class="hps">their</span> <span class="hps">main use of</span> <span class="hps">the</span> <span class="hps">Orchestrator</span> <span class="hps">server</span> <span class="hps">messaging</span> <span class="hps">is</span> <span class="hps">for</span> <span class="hps">the</span> <span class="hps">SCOM</span> <span class="hps">server</span><span>, by using System Center integration&nbsp;Pack for&nbsp;OM called with activity &#39;Monitor Alert&#39;&nbsp;</span>&nbsp;<span class="hps">and</span> <span class="hps">install</span> <span class="hps">it on him</span> <span class="hps">anyway</span><span>,</span></p>
<p><span><span class="hps">Indeed</span> <span class="hps">ongoing work</span> <span class="hps">properly</span> <span class="hps">and</span> <span class="hps">delivered</span> <span class="hps">messages</span><span>,</span> <span class="hps">but</span> <span class="hps">when doing</span> <span class="hps">Restart to</span>&nbsp;<span class="hps">the server</span><span>,</span> <span class="hps">the</span> <span class="hps">Runbooks</span> <span class="hps">work with</span> <span class="hps">the</span> <span class="hps">SCOM</span> <span class="hps">and</span> <span class="hps">use</span> <span class="hps">its</span> <span class="hps">Activities</span> <span class="hps">are</span> <span class="hps">aborted, and you must to run them manually.</span></span></p>
<p><span><span class="hps"><span class="hps">The explanation</span> <span class="hps">for this is,</span> <span class="hps">because</span> <span class="hps">during</span> <span class="hps">the startup of</span> <span class="hps">the server</span> , <span class="hps">the</span> <span class="hps">service</span> <span class="hps">of</span> <span class="hps">the</span> <span class="hps">Orchestrator &#39;Orchestrator Runbook Service&#39;</span> <span class="hps">rising</span> <span class="hps">along with</span> <span class="hps">the</span> <span class="hps">services</span> <span class="hps">of</span> <span class="hps">the</span> <span class="hps">SCOM</span><span>,</span> <span class="hps">and</span> <span class="hps">boot</span> <span class="hps">the</span> <span class="hps">Runbooks</span> <span class="hps">performed</span> <span class="hps">before</span> <span class="hps">carried out</span> <span class="hps">Connectoin</span> <span class="hps">to</span> <span class="hps">DB</span> <span class="hps">of</span> <span class="hps">the</span> <span class="hps">SCOM</span> <span class="hps">then</span> <span class="hps">the</span> <span class="hps">Monitor</span> <span class="hps">Alert</span> <span class="hps">Activity</span> <span class="hps">for example</span><span>,</span> <span class="hps">is trying to communicate</span> <span class="hps">to</span> <span class="hps">the</span> <span class="hps">SCOM</span> <span class="hps">and</span> <span class="hps">get</span> <span class="hps">the answer</span> <span class="hps">Aborted</span><span>,</span></span></span></p>
<p><span><span class="hps"><span><span class="hps">You can see this</span> <span class="hps">by making</span> <span class="hps">Stopping</span> <span class="hps">to</span> <span class="hps">Services - Data Access and Runbook Service</span> <span class="hps">and make</span> <span class="hps">a start</span> <span class="hps">only for</span> <span class="hps">the</span> <span class="hps">Runbook</span> <span class="hps">Service</span> <span class="hps">when approached</span> <span class="hps">to</span> <span class="hps">Runbook</span> <span class="hps">Designer</span> <span class="hps">view of</span> <span class="hps">processes related</span> <span class="hps">to</span> <span class="hps">SCOM</span> <span class="hps">arrested</span><span>,</span><br /><span class="hps">In fact</span> <span class="hps">the simplest solution</span> <span class="hps">that</span> <span class="hps">can be done</span> <span class="hps">by setting</span> <span class="hps">Dependencies</span> <span class="hps">on</span> <span class="hps">the</span> <span class="hps">Runbook</span> <span class="hps">Service</span> <span class="hps">in</span> <span class="hps">SCOM</span> <span class="hps">Services.</span> <span class="hps">And thus</span> <span class="hps">will</span> <span class="hps">initially</span> <span class="hps">Start</span> <span class="hps">of</span> <span class="hps">Data Access</span><span>,</span><br /> <span class="hps">In practice</span> <span class="hps">since</span> <span class="hps">Operation</span> <span class="hps">Start</span> <span class="hps">to Data</span> <span class="hps">Access</span> <span class="hps">and</span> <span class="hps">immediately afterwards</span> <span class="hps">start</span> <span class="hps">to</span> <span class="hps">Runbook</span> <span class="hps">Service</span> <span class="hps">without waiting</span> <span class="hps">to perform</span> <span class="hps">the</span> <span class="hps">actual</span> <span class="hps">Connection</span><span>,</span> <span class="hps">still</span> <span class="hps">received</span> <span class="hps">Aborted</span> <span class="hps">after</span> <span class="hps">restart</span><span>.</span></span></span></span></p>
<p><span><span class="hps"><span><span><span class="hps">Therefore</span> <span class="hps">need to make</span> <span class="hps">a distinction between</span> <span class="hps">the</span> <span class="hps">Orchestrator</span> <span class="hps">and</span> <span class="hps">the</span> <span class="hps">SCOM</span> <span class="hps">server</span> <span class="hps">for</span> <span class="hps">each application</span><span>.</span></span></span></span></span><span><span class="hps"><span><span class="hps"><br /><span class="hps">A temporary solution</span> <span class="hps">that can be done</span> <span class="hps">is</span><span>:</span><br /><span class="hps">Manage</span> <span class="hps">Startup</span> <span class="hps">Services</span> <span class="hps">server</span> <span class="hps">by</span> <span class="hps">script</span><span>,</span> <span class="hps">and</span> <span class="hps">because when</span> <span class="hps">the</span> <span class="hps">service</span> <span class="hps">is</span> <span class="hps">in</span> <span class="hps">Automatic</span> <span class="hps">mode</span> <span class="hps">is</span> <span class="hps">immediately rises</span> <span class="hps">during</span> <span class="hps">the</span> <span class="hps">Boot</span><span>,</span> <span class="hps">define</span> <span class="hps">a script</span> <span class="hps">to move it</span> <span class="hps">during</span> <span class="hps">the</span> <span class="hps">Shutdown</span> <span class="hps">to</span> <span class="hps">Manual</span>&nbsp;mode, and in startup <span class="hps">setting</span> <span class="hps">the order of</span> <span class="hps">the start of</span> <span class="hps">the</span> <span class="hps">Services includes</span> <span class="hps alt-edited">waiting</span> <span class="hps">twenty</span> <span class="hps">seconds</span> <span class="hps">of</span> <span class="hps">booting</span> <span class="hps">the</span> <span class="hps">Services</span> <span class="hps">of</span> <span class="hps">SCOM</span> <span class="hps">in</span> <span class="hps">the</span> <span class="hps">boot</span> <span class="hps">of</span> <span class="hps">the</span> <span class="hps">orchestartor</span> <span class="hps">Services</span> <span class="hps">to</span> have <span class="hps">enough</span> <span class="hps"></span>time to <span class="hps">create a</span> <span class="hps">Connection</span> <span class="hps">to</span> <span class="hps">DB</span><span>,</span> <span class="hps">and</span> <span class="hps">back </span><span class="hps">the</span> <span class="hps">Services</span> to <span class="hps">Automatic</span> <span class="hps">mode</span><span>.</span></span></span></span></span></p>
<p><span><span class="hps"><span><span class="hps"><span>this can be done by using group policy in computer settings running Script in Startup and Shutdown:<br /></span></span></span></span></span></p>
<p></p>
<p>#&nbsp;for Shutdown Script create batch file with&nbsp;Commands to change the services mode to manual&nbsp;in Shutdown process:</p>
<p>sc config &quot;OMSDK&quot; start=Demand</p>
<p>sc config &quot;cshost&quot; start=Demand</p>
<p>sc config &quot;Healthservice&quot; start=Demand</p>
<p>sc config &quot;orunbook&quot; start=Demand</p>
<p># for Startup Script create batch file with the commands for Startup process to order the services starting, and change the Mode to Automatic</p>
<p>sc start OMSDK</p>
<p>sc start cshost</p>
<p>sc start healthservice</p>
<p>timeout 20</p>
<p>sc start orunbook</p>
<p>sc config &quot;OMSDK&quot; start=Demand</p>
<p>sc config &quot;cshost&quot; start=Demand</p>
<p>sc config &quot;Healthservice&quot; start=Demand</p>
<p>sc config &quot;orunbook&quot; start=Demand</p>
<p></p>
<p><span style="font-size:medium;">then after restart the server, the runbooks continue to running.</span></p>
<p></p>
<p></p>
<p></p>
<p><span><span class="hps"><span>&nbsp;</span></span></span></p>
<p></p>
<p><span><span class="hps">&nbsp;</span></span></p>]]></content:encoded>
    </item>
  </channel>
</rss>