<?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>Chandan Bharti's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/chandanbharti/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/chandanbharti/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:30:07 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Advanced Threat Analytics(ATA) Deployment and Capabilities Part-II</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/advanced-threat-analyticsata-deployment-and-capabilities-part-ii</link>
      <pubDate>Fri, 28 Apr 2017 01:20:49 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/?p=596</guid>
      <description><![CDATA[Once again bringing an interesting part of Advanced Threat Analytics(ATA). In the previous blog we...]]></description>
      <content:encoded><![CDATA[Once again bringing an interesting part of Advanced Threat Analytics(ATA). In the previous blog we looked into complete setup process. If you have not already got a chance, please take a look at part-1 <a href="https://blogs.technet.microsoft.com/chandanbharti/2017/04/27/advanced-threat-analyticsata-deployment-steps-part-i/">here</a>

<a href="https://blogs.technet.microsoft.com/chandanbharti/2017/04/27/advanced-threat-analyticsata-deployment-steps-part-i/?preview_id=276&amp;preview_nonce=d68f9355bd&amp;_thumbnail_id=595&amp;preview=true">Part-1</a> talks about how to configure and install ATA

In this blog, we will look into few capabilities of ATA. That means, we will try to generate or perform few suspicious activities and see how effective ATA would be to trap that and report. Lab machines setup continues as mentioned on <a href="https://blogs.technet.microsoft.com/chandanbharti/2017/04/27/advanced-threat-analyticsata-deployment-steps-part-i/">part-1</a>. So lets get started.
<blockquote><em><span style="text-decoration: underline"><strong>Note</strong></span></em>:- <em>Please get the environment setup from previous blog</em>. https://blogs.technet.microsoft.com/chandanbharti/2017/04/27/advanced-threat-analyticsata-deployment-steps-part-i/</blockquote>
&nbsp;

Entire concept of this post is to simulate some suspicious action in an environment.

<span style="text-decoration: underline"><strong>Activity 1</strong></span>:- DNS Zone Transfer
<ul>
 	<li>Login to the client machine with user account and open a cmd prompt window and type nslookup --&gt;ENTER</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_1-12-55.jpg"><img width="300" height="115" class="alignnone size-medium wp-image-575" alt="2017-04-26_1-12-55" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_1-12-55-300x115.jpg" /></a>
<ul>
 	<li>Hit exit on cmd prompt to close the window.</li>
 	<li>Log in to ATACenter VM and browse to https://10.1.1.6</li>
 	<li>check notification</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_1-13-48.jpg"><img width="300" height="100" class="alignnone size-medium wp-image-585" alt="2017-04-26_1-13-48" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_1-13-48-300x100.jpg" /></a>
<ul>
 	<li>You should see the activity of DNS activities has been logged.It should be logged with "<strong>Reconnaissance Using DNS</strong>" suspicious activity. Navigate around to check the severity and more information about this.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-16-04.jpg"><img width="300" height="140" class="alignnone size-medium wp-image-606" alt="2017-04-26_1-16-04" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-16-04-300x140.jpg" /></a>
<ul>
 	<li>You should be able to get the details view to get more details.</li>
</ul>
&nbsp;

<span style="text-decoration: underline"><strong>Activity 2:-</strong></span>
<ul>
 	<li>Login to client machine and on cmd prompt, type nslookup --&gt;ENTER</li>
 	<li>Type "ls hallo.com" --&gt;ENTER</li>
 	<li>Type fabricam.com --&gt;ENTER</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-17-37.jpg"><img width="300" height="139" class="alignnone size-medium wp-image-616" alt="2017-04-26_1-17-37" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-17-37-300x139.jpg" /></a>
<ul>
 	<li>Move over to ATACenter VM and browse to console https://10.1.1.6</li>
 	<li>Notice the suspicious activity recorded,</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-19-37.jpg"><img width="300" height="145" class="alignnone size-medium wp-image-625" alt="2017-04-26_1-19-37" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-19-37-300x145.jpg" /></a>

&nbsp;
<ul>
 	<li>Check the details of each activity that you see and also time stamp on it.</li>
</ul>
&nbsp;

<span style="text-decoration: underline"><strong>Activity 3:-</strong></span>
<ul>
 	<li>Login to client machine again with HoneyToken user</li>
</ul>
<blockquote><em><span style="text-decoration: underline"><strong>Note</strong></span></em>: <em>HoneyToken user is the account that is inactive and not used, I have created an account with name Fake User (CONTOSO\ADMINUSER). Whole idea is to check what if suddenly an inactive account gets active one fine day and tries to log in to resources.</em></blockquote>
<ul>
 	<li>Please use password something like WWAATT which is not correct, and i want to make an unsuccessful attempt.</li>
 	<li>Now lets go to ATA center and log into console https://10.1.1.6. You should see something like this</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-28-50.jpg"><img width="300" height="146" class="alignnone size-medium wp-image-665" alt="2017-04-26_1-28-50" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-28-50-300x146.jpg" /></a>

&nbsp;
<ul>
 	<li>Go to details and severity. Most common resolution is suggested and also you should see some action that you can perform.</li>
</ul>
&nbsp;

<span style="text-decoration: underline"><strong>Activity 4:-</strong> </span>Deletion of user accounts in AD.
<ul>
 	<li>Login to DC with domain admin and run dsa.msc to open users and computers console.</li>
 	<li>Navigate to User account OU and select all the user and delete them.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-30-33.jpg"><img width="285" height="300" class="alignnone size-medium wp-image-675" alt="2017-04-26_1-30-33" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-30-33-285x300.jpg" /></a>

&nbsp;
<ul>
 	<li>Once done, close the user and computer console.</li>
 	<li>Go to ATAcenter console https://10.1.1.6 and check the notification. It should show something like "<strong>Massive object deletion Alert</strong>"</li>
</ul>
&nbsp;

<span style="text-decoration: underline"><strong>Activity 5:-</strong></span>
<ul>
 	<li>Log into the client machine. (Please download sysinternal tools and save it in a folder in client machine.)</li>
 	<li>At command prompt, type "psexec \\dc notepad.exe"  (<em>note: note that an account is trying to make a remote connection and execute a command</em>)</li>
 	<li>Exit out of command prompt and log into ATACenter console.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-37-46.jpg"><img width="300" height="175" class="alignnone size-medium wp-image-685" alt="2017-04-26_1-37-46" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-37-46-300x175.jpg" /></a>

&nbsp;
<ul>
 	<li>Go through the details of the activities to understand it better.</li>
</ul>
&nbsp;

<span style="text-decoration: underline"><strong>Activity 6:-</strong></span> Directory service enumeration.
<ul>
 	<li>Log in to client CM and open a command prompt</li>
 	<li>Type these 2 commands. "net user /domain" and "Net group /domain"</li>
 	<li>connect to ATA center console and check on activities you may have received named "Reconnaissance using directory services enumeration"</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-40-55.jpg"><img width="300" height="155" class="alignnone size-medium wp-image-696" alt="2017-04-26_1-40-55" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-40-55-300x155.jpg" /></a>
<ul>
 	<li>Go through the details to get better understanding.</li>
</ul>
<blockquote><em><span style="text-decoration: underline"><strong>Note:-</strong> </span>We are trying to simulate few scenarios that is usually performed during a cyber attacks. These rules can be modified and created at will.</em></blockquote>
Eventually all the notification you received can be visible this way in the console.

<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-41-092.jpg"><img width="122" height="300" class="alignnone size-medium wp-image-716" alt="2017-04-26_1-41-09" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-26_1-41-092-122x300.jpg" /></a>

&nbsp;

&nbsp;

These are some of the magic activities that you can perform to showcase the capabilities of ATA.

In the next blog, i will bring few administrative actions that you can do in the product so stay tuned and happy learning!!

&nbsp;

-Chandan]]></content:encoded>
    </item>
    <item>
      <title>Advanced Threat Analytics(ATA) deployment Steps. Part-I</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/advanced-threat-analyticsata-deployment-steps-part-i</link>
      <pubDate>Thu, 27 Apr 2017 02:49:13 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/?p=276</guid>
      <description><![CDATA[[bing_translator]Hello our solution enthusiasts. In this Post, we will go through Advanced threat...]]></description>
      <content:encoded><![CDATA[<blockquote>[bing_translator]Hello our solution enthusiasts. In this Post, we will go through Advanced threat analytics step by step installation, setup and looking around its capabilities. We will refer this as ATA.</blockquote>
ATA is an on-prem product of Microsoft and helps protect your enterprise in various ways. that could be any anonymous cyber attacks, threats using multiple techniques around your network. Internet is extremely vulnerable to attacks and its our responsibility to keep it secured and get aware of any abnormal and suspicious activities quickly to act. You can read about it <a href="https://docs.microsoft.com/en-us/advanced-threat-analytics/">here</a>.  https://docs.microsoft.com/en-us/advanced-threat-analytics/

As you go through and understand what it is, i will walk you through the installation steps along with Pre and post installation steps.

Don't forget go through <a href="https://blogs.technet.microsoft.com/chandanbharti/2017/04/28/advanced-threat-analyticsata-deployment-and-capabilities-part-ii/">Part2</a> of this blog to understand capabilities of ATA

In this setup, i am using four machines

&nbsp;
<table width="617">
<tbody>
<tr>
<td width="120"><strong>Computer name</strong></td>
<td width="405" style="text-align: center"><strong>Description</strong></td>
</tr>
<tr>
<td>DC</td>
<td>First Domain controller Server 2012 R2 in contoso.com</td>
</tr>
<tr>
<td>DC2</td>
<td>Second DC in same forest running Windows server 2012 R2</td>
</tr>
<tr>
<td>ATACenter</td>
<td>Windows Server 2012 R2 and is member of contoso.com</td>
</tr>
<tr>
<td>ATAGateway</td>
<td>Windows Server 2012 R2 and is member of contoso.com</td>
</tr>
<tr>
<td>Client1</td>
<td>Windows 7 client and is member of domain contoso.com</td>
</tr>
</tbody>
</table>
&nbsp;

I am using hyper-V to host these machines. Lets start with Activity 1.

<span style="text-decoration: underline"><strong>Step1</strong></span>: Configure port mirror on DC
<ul>
 	<li>In Hyper-V manager, go to settings for DC --&gt;Advanced features --&gt;Port mirroring.</li>
 	<li>Change the mirroring mode to Source from drop down menu.</li>
</ul>
&nbsp;

<a href="https://msdnshared.blob.core.windows.net/media/2017/04/test.jpg"><img width="288" height="73" class="alignnone wp-image-337" alt="test" src="https://msdnshared.blob.core.windows.net/media/2017/04/test-300x76.jpg" /></a>

&nbsp;
<ul>
 	<li>Connect to ATAGateway and note down MacAddress. (Remember to have 2 network adaptor for ATA gateway server and i am checking Mac address of 2nd adaptor named capture)</li>
</ul>
On powershell, Type "Get-netAdapter -Name Capture"

<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-25_21-28-48.png"><img width="300" height="53" class="alignnone size-medium wp-image-295" alt="2017-04-25_21-28-48" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-25_21-28-48-300x53.png" /></a>

&nbsp;

And that's my second adaptor

&nbsp;

<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-25_21-31-20.png"><img width="300" height="145" class="alignnone size-medium wp-image-306" alt="2017-04-25_21-31-20" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-25_21-31-20-300x145.png" /></a>
<ul>
 	<li>Scroll down for this adaptor and enable mirroring mode to set it as destination.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-25_21-32-33.png"><img width="300" height="54" class="alignnone size-medium wp-image-316" alt="2017-04-25_21-32-33" src="https://msdnshared.blob.core.windows.net/media/2017/04/2017-04-25_21-32-33-300x54.png" /></a>

&nbsp;
<ul>
 	<li>To verify your port mirroring is success and correctly configured, you can use network monitor tool.</li>
</ul>
<span style="text-decoration: underline"><strong>Step 2</strong></span>: Validate  Service account of ATA
<blockquote><strong><em>Note</em>:</strong> ATAGateway server should be able to query DC via LDAP using the account credentials that ATA is going to use. this is necessary to retrieve the users, computers and other objects. This is a requirement. I will use LDAP connection from ATAGateway to DC using account contoso\ATAService. This account will need <strong>read permission</strong> to access all object that will be monitored.</blockquote>
<ul>
 	<li>On ATAGateway VM, run LDP.exe</li>
 	<li>On connection, client connect on top left corner and enter your DC name. in my case its DC.Contoso.com --&gt;OK</li>
</ul>
(This confirms, name resolution is working)
<ul>
 	<li>Again click on connection and select Bind --&gt;Bind with credential--&gt; Enter. Input credential (Contoso\ATAservice) and click OK, notice the output as you will be expecting when all is good</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_21-50-09.jpg"><img width="300" height="213" class="alignnone size-medium wp-image-345" alt="2017-04-25_21-50-09" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_21-50-09-300x213.jpg" /></a>

&nbsp;
<blockquote><em><strong>Note:</strong></em> If you click on view and expand Tree, you should see objects of domain.</blockquote>
<span style="text-decoration: underline"><strong>Step 3</strong></span>: Assign Permission to ATAService

Note: ATAService account needs to have read permission on deleted object container in domain.
<ul>
 	<li>On elevated cmd prompt, type the command 'dsacls "CN=Deleted Objects,DC=Contoso,DC=Com" /takeownership'  --&gt;ENTER. this will take ownership on deleted object container.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_21-58-57.jpg"><img width="300" height="169" class="alignnone size-medium wp-image-355" alt="2017-04-25_21-58-57" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_21-58-57-300x169.jpg" /></a>

&nbsp;
<ul>
 	<li>Again on elevated cmd prompt type: dsacls "CN=Deleted objects,DC=Contoso,DC=com" /G CONTOSO\ATAService:LCRP  --&gt;ENTER to grant permission to view objects</li>
</ul>
&nbsp;
<blockquote>Note: Upto this point, we have completed our pre installation steps of ATA. Next we will go with installation. Lets start with Step4</blockquote>
<span style="text-decoration: underline"><strong>Step4:</strong></span> ATA center Installation:-
<ul>
 	<li>Run the downloaded setup file.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-39-41.jpg"><img width="300" height="166" class="alignnone size-medium wp-image-366" alt="2017-04-25_23-39-41" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-39-41-300x166.jpg" /></a>

&nbsp;
<ul>
 	<li>As you move forward accepting the EULA with default steps and you reach to below page, Enter details.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-40-42.jpg"><img width="300" height="161" class="alignnone size-medium wp-image-385" alt="2017-04-25_23-40-42" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-40-42-300x161.jpg" /></a>
<blockquote><strong>Note: </strong></blockquote>
<ol>
 	<li>
<blockquote><em>ATA center service IP address is used by ATA Gateway to communicate with ATA Center. ATA console IP is used to connect to ATA console. As you install Gateway, ATA Gateway will register with ATA center using ATA Console IP on port 443</em></blockquote>
</li>
 	<li>
<blockquote><em>In case you have one IP address, you can modify the port number used by ATA center service. ATA console will always use 443</em></blockquote>
</li>
 	<li>
<blockquote><em>In production, we recommend you to use PKI cert instead of self signed certificate.</em></blockquote>
</li>
</ol>
<ul>
 	<li>Launch the page by hitting on launch after completion message. Click Continue to this website(not recommended) hyperlink to continue.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-44-21.jpg"><img width="300" height="164" class="alignnone size-medium wp-image-396" alt="2017-04-25_23-44-21" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-44-21-300x164.jpg" /></a>

&nbsp;
<ul>
 	<li>Enter credential in directory services page</li>
</ul>
&nbsp;

<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-47-43.jpg"><img width="300" height="150" class="alignnone size-medium wp-image-415" alt="2017-04-25_23-47-43" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-47-43-300x150.jpg" /></a>

&nbsp;

<span style="text-decoration: underline"><strong>Step 5:</strong></span> Configure HoneyToken user (User that have no activity)
<ul>
 	<li>On PS prompt, type: Get-AdUser Admin --&gt;ENTER to get SID</li>
</ul>
&nbsp;

<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-52-57.jpg"><img width="300" height="154" class="alignnone size-medium wp-image-416" alt="2017-04-25_23-52-57" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-52-57-300x154.jpg" /></a>

&nbsp;
<ul>
 	<li>Copy the SID and paste under detection settings --&gt;Save  (Don't forget to hit on + next to ID before saving)</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-54-53.jpg"><img width="300" height="163" class="alignnone size-medium wp-image-425" alt="2017-04-25_23-54-53" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-54-53-300x163.jpg" /></a>

&nbsp;
<blockquote><em><strong>Note:</strong> </em>We are done with configuration. Next we will install ATA Gateway</blockquote>
<span style="text-decoration: underline"><strong>Step 6:</strong></span> ATA Gateway Installation steps.
<ul>
 	<li>On ATAGateway server, go to URL https://10.1.1.6 (Console IP address)</li>
 	<li>Click on "Download Gateway setup and install the first Gateway" --&gt; save the file</li>
 	<li>Extract the file and run the setup.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-58-28.jpg"><img width="300" height="175" class="alignnone size-medium wp-image-435" alt="2017-04-25_23-58-28" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-25_23-58-28-300x175.jpg" /></a>

&nbsp;
<blockquote><em><strong>Note:-.</strong></em>Net framework 4.6.1 has to be preinstalled. if preinstalled, it will avoid reboot while installation of ATA Gateway.</blockquote>
<ul>
 	<li>Select the available option as below after you pass welcome window.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-01-03.jpg"><img width="300" height="164" class="alignnone size-medium wp-image-445" alt="2017-04-26_0-01-03" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-01-03-300x164.jpg" /></a>

&nbsp;
<ul>
 	<li>In the next page, we will create a self signed certificate. and enter user name and password --&gt;Install</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-01-46.jpg"><img width="300" height="164" class="alignnone size-medium wp-image-446" alt="2017-04-26_0-01-46" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-01-46-300x164.jpg" /></a>

&nbsp;
<blockquote><em><strong>Note:-</strong></em>The user account is set for gateway and is domain admin here.</blockquote>
<ul>
 	<li>Launch once install is completed.</li>
</ul>
<span style="text-decoration: underline"><strong>Step 7</strong></span>: Configure ATA gateway
<ul>
 	<li>Once you hit Launch in previous step, the page opens. and you see the status of gateway below. Click on <strong>Not Configured</strong></li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-04-09.jpg"><img width="300" height="137" class="alignnone size-medium wp-image-465" alt="2017-04-26_0-04-09" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-04-09-300x137.jpg" /></a>
<ul>
 	<li>Enter the information as below. And select Capture check box (Remember 2 network adapter of ATA gateway from above and we are selecting second adapter) --&gt;Save</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-05-21.jpg"><img width="300" height="167" class="alignnone size-medium wp-image-475" alt="2017-04-26_0-05-21" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-05-21-300x167.jpg" /></a>

&nbsp;
<ul>
 	<li>Verify "<strong>Microsoft Advanced Threat Analytics gateway</strong>" service is running, this may take long time before it reaches to running from starting.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-05-47.jpg"><img width="300" height="66" class="alignnone size-medium wp-image-485" alt="2017-04-26_0-05-47" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-05-47-300x66.jpg" /></a> <a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-07-18.jpg"><img width="300" height="60" class="alignnone size-medium wp-image-495" alt="2017-04-26_0-07-18" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-07-18-300x60.jpg" /></a>

&nbsp;
<ul>
 	<li>Once service is started, verify if user and computer are synced in ATA console.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-16-21.jpg"><img width="300" height="165" class="alignnone size-medium wp-image-515" alt="2017-04-26_0-16-21" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-16-21-300x165.jpg" /></a>

&nbsp;
<blockquote><strong><em>Note</em>:</strong> Once we have ATA gateway installed, we will setup our lightweight Gateway.</blockquote>
<span style="text-decoration: underline"><strong>Step 8:- </strong></span>Install Lightweight gateway.
<ul>
 	<li>On DC2, browse to console IP https://10.1.1.6 and download gateway setup and save it.</li>
 	<li>Run Microsoft <strong>ATA Gateway setup.exe. </strong>(Remember to extract it and not run from zip file)</li>
 	<li>Setup automatically identifies already installed ATAgateway and asks you to install lightweight gateway.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-20-22.jpg"><img width="300" height="160" class="alignnone size-medium wp-image-545" alt="2017-04-26_0-20-22" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-20-22-300x160.jpg" /></a>

&nbsp;
<ul>
 	<li>Enter credential as you did for ATAGateway.</li>
 	<li>Once done, service will turn into running.</li>
</ul>
<a href="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-21-51.jpg"><img width="300" height="114" class="alignnone size-medium wp-image-556" alt="2017-04-26_0-21-51" src="https://msdnshared.blob.core.windows.net/media/2017/05/2017-04-26_0-21-51-300x114.jpg" /></a>

&nbsp;
<blockquote><em><strong>Note</strong>:-</em> First time the service starts will take approx. 15-20 min until it turns from starting to running.</blockquote>
This concludes our Advanced Threat Analytics server setup.

In next blog, we will discuss on how to track suspicious activities across the network. Please check <a href="https://blogs.technet.microsoft.com/chandanbharti/2017/04/28/advanced-threat-analyticsata-deployment-and-capabilities-part-ii/">Blog 2.</a>

&nbsp;

&nbsp;]]></content:encoded>
    </item>
    <item>
      <title>Mobile device management with Intune-Configuring compliance setting</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/mobile-device-management-with-intune-configuring-compliance-setting</link>
      <pubDate>Wed, 20 Aug 2014 21:04:00 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/2014/08/20/mobile-device-management-with-intune-configuring-compliance-setting/</guid>
      <description><![CDATA[Hope you remember the steps to integrate Intune with configmanager
This is part 2 in the series....]]></description>
      <content:encoded><![CDATA[<p></p>
<p>Hope you remember the <span style="color:black;line-height:107%;font-family:&#39;Arial&#39;,&#39;sans-serif&#39;;font-size:9pt;"><a href="/b/chandanbharti/archive/2014/08/20/mobile-device-management-with-intune-and-configuration-manager-2012.aspx"><span style="color:#0563c1;">steps to integrate Intune with configmanager</span></a></span></p>
<p>This is part 2 in the series. My intention is to make your device safe, secured and encrypted.</p>
<p>&nbsp;So what I have for you here is to set policies for your mobile device that has been enrolled. You wouldn&rsquo;t want the device that has company emails and information to be left without password. correct ?. Here I am going to show you, how you can enforce those policies. We have very limited number of steps here</p>
<p>&nbsp;</p>
<ol>
<li>Create a configuration item for the mobile device</li>
<li>Create a baseline for the device</li>
<li>Deploy</li>
</ol>
<p>&nbsp;We ll discuss these in detail. Lets start,</p>
<p>&nbsp;</p>
<p><strong>Step 1</strong>: Go to Assets and Compliance -&gt; Compliance settings --&gt; configuration Item and create a new Configuration Item.</p>
<p>Remember to select Mobile Devices as type of configuration Item.</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0815.1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0815.1.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0815.1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0815.1.png" border="0" /></a></p>
<p></p>
<p>At this point, I am just going to select Password. You can definitely play around with different option.</p>
<p></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6431.2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6431.2.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6431.2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6431.2.png" border="0" /></a></p>
<p></p>
<p>You see a lot of them, Just make password setting as required and define a minimum length of password.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6567.3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6567.3.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6567.3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6567.3.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7357.4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7357.4.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7357.4.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7357.4.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>We are set with Configuration Item created</p>
<p>&nbsp;</p>
<p><strong>Step 2</strong>:&nbsp; Go to Assets and Compliance -&gt; Compliance settings --&gt;Configuration Baselines&nbsp; and create a new baseline and associate the CI that you created in step 1.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5102.5.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5102.5.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5102.5.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5102.5.png" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong>Step 3:</strong> In <span style="color:black;line-height:107%;font-family:&#39;Arial&#39;,&#39;sans-serif&#39;;font-size:9pt;"><a href="/b/chandanbharti/archive/2014/08/20/mobile-device-management-with-intune-and-configuration-manager-2012.aspx"><span style="color:#0563c1;">Part 1</span></a></span>, we created a collection of users, lets target the baseline to this collection. Additionally follow below option for the obvious reasons</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6232.6.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6232.6.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6232.6.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6232.6.png" border="0" /></a></p>
<p></p>
<p>Believe it or not, but we are done. Isn&#39;t that so simple :)</p>
<p>&nbsp;</p>
<p>What&#39;s going to happen now? As soon as the device is enrolled, the policies are enforced and you are prompted to perform even if you don&rsquo;t want to.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7.jpg"><img width="482" height="799" style="width:348px;height:639px;" alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7.jpg" border="0" /></a></p>
<p></p>
<p>This is all about how you manage your mobile device over cloud.</p>
<p>&nbsp;</p>
<p>Any feedback? Please add to the comment section</p>
<p style="margin:0in 0in 8pt;"><span style="color:black;line-height:107%;font-family:&#39;Arial&#39;,&#39;sans-serif&#39;;font-size:9pt;"><a href="/b/chandanbharti/archive/2014/08/20/mobile-device-management-with-intune-and-configuration-manager-2012.aspx"><span style="color:#0563c1;">Please check out part one of this series for Mobile device management</span></a></span></p>
<p></p>
<p>&nbsp;</p>
<p><strong>-Chandan Bharti</strong></p>
<p><strong>Premier Field Engineer-Microsoft</strong></p>]]></content:encoded>
    </item>
    <item>
      <title>Mobile device management with Intune and Configuration Manager 2012</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/mobile-device-management-with-intune-and-configuration-manager-2012</link>
      <pubDate>Wed, 20 Aug 2014 07:25:00 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/2014/08/20/mobile-device-management-with-intune-and-configuration-manager-2012/</guid>
      <description><![CDATA[This blog is all about integration between configmanager 2012 and Intune to manage and deploy...]]></description>
      <content:encoded><![CDATA[<p></p>
<p></p>
<p>This blog is all about integration between configmanager 2012 and Intune to manage and deploy application on mobile device. We have our setting, users and app saved at cloud in extremely secured way. We would definitely like to be trusted by our customer and partners in terms of cloud, Devices and Security handling. To achieve that, we understand the importance and take our extreme steps to maintain privacy. Let&rsquo;s get started with the steps of integration.</p>
<p>&nbsp;<span style="font-family:Times New Roman;font-size:medium;"> </span><a href="/b/chandanbharti/archive/2014/08/21/mobile-device-management-with-intune-configuring-compliance-setting.aspx"><span style="color:#0563c1;">Part &nbsp;2</span></a>&nbsp;is published for configuring the client settings, do look at that too.</p>
<p></p>
<p><strong>1) &nbsp;Register to Windowsintune.com as a trial account</strong></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0218.0.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0218.0.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0218.0.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0218.0.png" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong>2) &nbsp; Add Cloud UPN that you got after above registration, in my case, its Chandan.bharti@chandanbharti.onmicrosoft.com. So my UPN is chandanbharti.onmicrosoft.com</strong></p>
<p>Open active directory domain and trust--&gt; Properties, and add the UPN</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6153.1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6153.1.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6153.1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6153.1.png" border="0" /></a></p>
<p></p>
<p></p>
<p><strong>3) &nbsp;Change UPN for the existing users in AD</strong></p>
<p>Go to active directory users and Computers, and change the UPN for the users that needs to access the portal later. You can script it to make change if you have many users. That way to avoid any manual work</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/1581.2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/1581.2.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/1581.2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/1581.2.png" border="0" /></a></p>
<p></p>
<p><strong>4) &nbsp;After you are done with AD, if you log in to <a href="https://account.manage.microsoft.com/">https://account.manage.microsoft.com/</a> with your credentials,</strong> you have to <b>Install and configure the Directory Synchronization tool.</b></p>
<p>Download the tool from <a href="https://g.microsoftonline.com/0BX10en/571">https://g.microsoftonline.com/0BX10en/571</a> and install it. Installation would take 10 min to complete. Below is a run through directory sync configuration.</p>
<p>&nbsp;</p>
<p>Enter the credential that you used to log into Intune subscription.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8345.3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8345.3.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8345.3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8345.3.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>In the next screen, you have Domain credential, Basically domain Admin in form of domain\user</p>
<p></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0830.4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0830.4.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0830.4.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0830.4.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>Rest are going to be straight forward options. Also let the passwords sync. This process takes 10 min, Monitor the event log to check if sync has gone well and what has synced,</p>
<p>&nbsp;</p>
<p><strong>5) &nbsp;In Configmanager 2012 console, create a collection for the users that you would like as target</strong></p>
<p>In my case, I have created collection &quot;My Intune UserCollection&quot;</p>
<p>&nbsp;</p>
<p><strong>6) &nbsp;Add the subscription that you created now in your configmanager console</strong></p>
<p><strong>&nbsp;</strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8357.5.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8357.5.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8357.5.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8357.5.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>Sign in with your Intune account that you are registered with</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/1524.6.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/1524.6.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/1524.6.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/1524.6.png" border="0" /></a></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/4276.7.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/4276.7.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/4276.7.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/4276.7.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8.png" border="0" /></a></p>
<p></p>
<p>Next, you are asked to configure your settings. I have created collection &quot;My Intune UserCollection&quot; as a target.</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/9.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/9.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/9.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/9.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>For the moment, I am selecting Android device, Reason being, Android has no certificate requirement. But others have, for one month trial account, you don&rsquo;t need certificate for Windows phone 8 as well. We will make use of this at later point, for now let&#39;s go next with below setting as shown.</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/10.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/10.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/10.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/10.png" border="0" /></a></p>
<p></p>
<p>This needs the support team contact information (Optional)</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/11.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/11.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/11.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/11.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>7) &nbsp;Add the site system role &quot;Windows Intune Connector&quot; on your site server.</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/13.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/13.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/13.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/13.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>You can monitor the log file if the installation was a successful . Log File:&nbsp; Connectorsetup.log</p>
<p>&nbsp;</p>
<p>This is to be done in CAS</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/14.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/14.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/14.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/14.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>Looks like role is setup successfully.</p>
<p>&nbsp;</p>
<p>Remaining steps are for creations of apps and deployment to user collection.</p>
<p>Basic steps are</p>
<p style="margin-left:30px;">a) Create application for Company portal</p>
<p style="margin-left:30px;">b) Create application for the mobile app</p>
<p style="margin-left:30px;">c) Deploy these application</p>
<p>&nbsp;</p>
<p>Let&rsquo;s start:</p>
<p>&nbsp;</p>
<p><strong>8) &nbsp;Download below tool for the purpose that is defined below. Basically this contains your sample apps and company portal.</strong></p>
<p><a href="https://www.microsoft.com/en-sg/download/details.aspx?id=39079">https://www.microsoft.com/en-sg/download/details.aspx?id=39079</a></p>
<p>&nbsp;</p>
<p>I have installed it at C:\Program Files (x86)\Microsoft\Support Tool for Windows Intune Trial management of Windows Phone\Support Tool</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Install it on configmanager server.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>9) &nbsp;Now create an application for windows phone (*.xap) with the normal method</strong></p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/15.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/15.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/15.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/15.png" border="0" /></a></p>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/16.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/16.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/16.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/16.png" border="0" /></a></p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/17.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/17.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/17.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/17.png" border="0" /></a></p>
<p>We have targeted company portal to the user collection that we created</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/18.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/18.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/18.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/18.png" border="0" /></a></p>
<p>&nbsp;</p>
<p></p>
<p></p>
<p>Now we have to add the application in Intune subscription that we already created.&nbsp; Remember you were told not check the box for windows phone 8 at above line.&nbsp; Notice below, it&rsquo;s unchecked. But that&rsquo;s not what we want. but not our end goal.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/19.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/19.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/19.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/19.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>10) &nbsp;Open cmd prompt run as administrator and cd to location where support tool is installed.</strong></p>
<p>C:\Program Files (x86)\Microsoft\Support Tool for Windows Intune Trial management of Windows Phone\Support Tool</p>
<p>&nbsp;</p>
<p>This is to activate your trial certificate for Windows phone 8. Run below command</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>C:\Program Files (x86)\Microsoft\Support Tool for Windows Intune Trial management of Windows Phone\Support Tool&gt;<b>ConfigureWP8Settings_Field.vbs &lt;SiteServerName&gt; querysspmodelname</b></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Output: Operation completed successfully</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now we are going to save settings using company portal ID. This ID is your application ID from the console. Also termed as Company Portal ID</p>
<p>&nbsp;</p>
<p>ScopeId_5A69269C-EFC8-4996-AD73-FCABAECD20CC/Application_0904feff-40b7-8844f38a6760a58b</p>
<p>&nbsp;</p>
<p>C:\Program Files (x86)\Microsoft\Support Tool for Windows Intune Trial management of Windows Phone\Support Tool&gt;<b>ConfigureWP8Settings_Field.vbs &lt;SiteServerName&gt; </b></p>
<p><b>savesettings ScopeId_5A69269C-EFC8-4996-AD73-FCABAECD20CC/Application_0904feff-7c83-40b7-8844-f38a6760a58b</b></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now if you visit intune subscription properties back,</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/20.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/20.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/20.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/20.png" border="0" /></a></p>
<p></p>
<p>Notice, Windows Phone 8 Enrollment is enabled.</p>
<p>&nbsp;</p>
<p><em><strong>****Optional****</strong></em></p>
<p><b>Optional step:</b> Only when you have certificate for device in production scenario.</p>
<p>&nbsp;</p>
<p>Command line to codesign the application:&nbsp; If you have certificate for windows Phone 8 in production scenario, You may have to code sign the company portal application.</p>
<p>c:\Windows\System32&gt;XapSignTool.exe sign /f &quot;&lt;Certificate file.PFX&gt;&quot; /p &lt;Password&gt; &quot;&lt;Path of company portal or application ex. ssp.xap&gt;&quot;</p>
<p>&nbsp;</p>
<p>Now to check if application is signed, go to properties of Xap file and check Digital Signature tab for the file.</p>
<p>Idea of company portal is to show LOB application, contact info for the company, you can create your own company portal as well. The one that you download from Microsoft is just a sample.</p>
<p><em><strong>&nbsp;****Optional****</strong></em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>11) &nbsp;Create an application for windows phone. Select below option.</strong></p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/21.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/21.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/21.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/21.png" border="0" /></a></p>
<p></p>
<p>I have selected the one from below location that&rsquo;s where my support tool is installed</p>
<p>&nbsp;</p>
<p><a>\\CM12CAS\c$\Program</a> Files (x86)\Microsoft\Support Tool for Windows Intune Trial management of Windows Phone\Sample Apps\ClickMeV1.1.xap</p>
<p>&nbsp;</p>
<p>Finish the wizard</p>
<p>&nbsp;</p>
<p>And deploy this application to user collection that was created at the initial stage.</p>
<p>&nbsp;</p>
<p>With Intune subscription, we have cloud DP created automatically. Distribute it to the cloud DP</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/22.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/22.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/22.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/22.png" border="0" /></a></p>
<p></p>
<p>Once distributed. You need to look at the log &quot;outgoingcontentmanager.log&quot; if the content is successfully distributed to cloud DP.</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/23.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/23.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/23.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/23.png" border="0" /></a></p>
<p></p>
<p>Now you can deploy the application to the user collection, Remember option of available or required is based on the supportability for the devices. Leave it available for now.</p>
<p>&nbsp;</p>
<p>Creating an application from windows app store</p>
<p>============================================</p>
<p>&nbsp;</p>
<p>Go to Microsoft &nbsp;store for apps and pick up the URL</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/24.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/24.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/24.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/24.png" border="0" /></a></p>
<p>&nbsp;</p>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>My&nbsp;app address is:</p>
<p><a href="https://apps.microsoft.com/windows/en-us/app/tour-spain/258839b5-88ed-4154-bf83-93912dc03257">https://apps.microsoft.com/windows/en-us/app/tour-spain/258839b5-88ed-4154-bf83-93912dc03257</a></p>
<p></p>
<p>In configmanager console, just create a new application from windows store as shown below. And location should have the URL of the application that you copied above,</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/25.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/25.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/25.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/25.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>Complete the wizard</p>
<p>&nbsp;</p>
<p>Deploy the application, you don&rsquo;t need to distribute it to the DP, because it&rsquo;s from cloud and is already distributed</p>
<p>&nbsp;</p>
<p>Here completes you server side configuration and activities.</p>
<p>&nbsp;</p>
<p>Now we are going to enroll the devices and application. Your Intune solution is in cloud</p>
<p>================================================</p>
<p>&nbsp;</p>
<p><strong>12) &nbsp;Add account in windows phone 8,</strong> &nbsp;</p>
<p>Go to settings --&gt;Workplace--&gt;Add account</p>
<p>&nbsp;Add the user name that we migrated from AD to Intune</p>
<p>Click next and add the server name. For the demo, the server name is going to be. Server name: <b>enterpriseenrollment-s.manage.microsoft.com</b></p>
<p>User name is going to be in format of <strong>user@chandanbharti.onmicrosoft.com</strong></p>
<p>&nbsp;</p>
<p>This is how it may look</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/26.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/26.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/26.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/26.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/00/92/02/27.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/27.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/27.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/27.png" border="0" /></a></p>
<p>You should see the device under mobile device in the Configmanager 2012&nbsp;console :)</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/28.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/28.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/28.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/28.png" border="0" /></a></p>
<p></p>
<p>And we should be good. We are all set to manage our mobile devices on cloud&nbsp;:)</p>
<p></p>
<p>I am going to sleep now, when i wake up. i will post another one for&nbsp;<span style="font-family:Times New Roman;font-size:medium;"> </span><span style="color:black;line-height:107%;font-family:&#39;Arial&#39;,&#39;sans-serif&#39;;font-size:9pt;"><a href="/b/chandanbharti/archive/2014/08/21/mobile-device-management-with-intune-configuring-compliance-setting.aspx"><span style="color:#0563c1;">compliance settings that you can configure for mobile devices</span></a>&nbsp; </span>and i am sure, you are going to enjoy reading that.</p>
<p>Any Feedbacks or comments are welcome!!</p>
<p>Few important stuffs that you need to know on reliability on support we have for intune You can follow the link to understand overall process with support involved. <a href="https://technet.microsoft.com/en-US/library/dn646963.aspx">https://technet.microsoft.com/en-US/library/dn646963.aspx</a></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p><strong>-Chandan Bharti, </strong>Premier Field Engineer-Microsoft</p>
<p>&nbsp;</p>
<p></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Red Hat client when ConfigManager 2012 SP1/R2 on HTTPS</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/red-hat-client-when-configmanager-2012-sp1r2-on-https</link>
      <pubDate>Mon, 06 Jan 2014 04:23:42 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/2014/01/06/red-hat-client-when-configmanager-2012-sp1r2-on-https/</guid>
      <description><![CDATA[Linux client installation is straight forward when the site is on...]]></description>
      <content:encoded><![CDATA[<p style="text-align:left;"></p>
<p style="text-align:left;">Linux client installation is straight forward when the site is on HTTP,&nbsp;<a href="/b/chandanbharti/archive/2013/06/26/package-deployment-amp-hardware-inventory-for-linux-in-configmanager-2012-sp1.aspx">https://blogs.technet.com/b/chandanbharti/archive/2013/06/26/package-deployment-amp-hardware-inventory-for-linux-in-configmanager-2012-sp1.aspx</a></p>
<p style="text-align:left;">I have illustrated Linux client installation when the site is on HTTPS.</p>
<p style="text-align:left;"></p>
<p style="text-align:left;">Before you go for client install, Make sure you have PKI in place. Refer <a href="https://technet.microsoft.com/en-us/library/gg682023.aspx">https://technet.microsoft.com/en-us/library/gg682023.aspx</a></p>
<p style="text-align:left;"></p>
<p style="text-align:left;">Create a Linux template by duplicating Workstation template. Make the private key exportable, also make the Subject &quot;Supply in the request&quot;.Issue the new template.&nbsp; This part doesn&rsquo;t have a section in the above document like the Windows and Mac clients do.</p>
<p style="text-align:left;"><strong>Important note: Linux client should always be named with FQDN. It cant be short name. DomainHostName command should return the domain name info.</strong></p>
<p style="text-align:left;"><strong>&nbsp;</strong></p>
<p style="text-align:left;">Lets Start,</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><span style="text-decoration:underline;"><strong style="font-size:12px;">STEP 1:&nbsp;</strong></span><span style="font-size:12px;"> Generate host.key and host.csr on linux client.</span></p>
<p style="text-align:left;"><span style="background-color:#ffff00;">openssl req -newkey rsa:2048 -nodes -keyout host.key -out host.csr -subj /CN=RHEL55A.AB.COM</span></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"></p>
<p style="text-align:left;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/3652.1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/3652.1.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/3652.1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x500/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/3652.1.png" border="0" alt=" " /></a></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">You have host.csr file available at the same location, open the file and you should see below content.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><span style="text-decoration:underline;"><strong>STEP 2:</strong></span> Issue a cert using the contents of the CSR on the Windows CA Cert Server website, using the new Linux template. Copy the content and paste it at the request page to generate the certificate.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/2.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/2.png" border="0" alt=" " /></a></p>
<p style="text-align:left;"></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;Navigate to below path on the page.</p>
<p style="text-align:left;"><a href="https://Servername/certsrv">https://Servername/certsrv</a> --&gt; Request a certificate--&gt; advanced certificate request --&gt; Submit a certificate request by using base-64-encoded</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/3.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/3.png" border="0" alt=" " /></a></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"></p>
<p style="text-align:left;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/4.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/4.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/4.png" border="0" alt=" " /></a></p>
<p style="text-align:left;"></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">Choose base64 when you download or you will have to convert the DER separately. You can save it as host.cer</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">Save the certificate as host.cer.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><span style="text-decoration:underline;"><strong>STEP 3:</strong>&nbsp;</span> Copy host.cer from step 4 to the Linux host and combine host.key, host.cer, and your CA chain (all of it if you have a subordinate CA as well, mine was provided as base64)&nbsp; to create a .pfx file :</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><span style="background-color:#ffff00;">openssl pkcs12 -export -in host.cer -inkey host.key -certfile RootCA.cer -name host -passout pass:1234 -out host.pfx</span></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">I get .pfx file that I can use with installation of client. 1234 is going to be the password of .pfx file.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">-name is the friendly name that can be the name that you like.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5.png" border="0" alt=" " /></a></p>
<p style="text-align:left;"></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">Now that I have it,</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6.png" border="0" alt=" " /></a></p>
<p style="text-align:left;"></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><span style="text-decoration:underline;"><strong>STEP 4:</strong></span></p>
<p style="text-align:left;">Download the Configmanager client for Linux, extract and place it at same location where I have other certificate.&nbsp; It&#39;s not mandatory to have same path, but was convenient for me</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">Now let&#39;s try installing the client using .PFX file that we created last.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><span style="background-color:#ffff00;">./install -mp pri.ab.com -sitecode PRI -UsePKICert host.pfx -certpw 1234 -httpsport 443 -NoCRLCheck ccm-Universalx64.1.0.0.4580.tar</span></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">And this is what you should see once the installation completes.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">=======================================================================================</p>
<p style="text-align:left;"><em>Checking Prerequisites...</em></p>
<p style="text-align:left;"><em>Checking existence of /lib/libssl.so.0.9.8e-fips-rhel5 and /lib/libcrypto.so.0.9.8e-fips-rhel5 ...</em></p>
<p style="text-align:left;"><em>Checking existence of /lib/libssl.so.0.9.8--5 and /lib/libcrypto.so.0.9.8--5 ...</em></p>
<p style="text-align:left;"><em>Checking existence of /lib/libssl.so.0.9.8e and /lib/libcrypto.so.0.9.8e ...</em></p>
<p style="text-align:left;"><em>&nbsp; Found /lib/libssl.so.0.9.8e and /lib/libcrypto.so.0.9.8e ...</em></p>
<p style="text-align:left;"><em>Running preinstall validator</em></p>
<p style="text-align:left;"><em>All pre-install tests succeeded!</em></p>
<p style="text-align:left;"><em>Beginning installation of Config Manager in /opt/microsoft/configmgr</em></p>
<p style="text-align:left;"><em>Creating install directory...</em></p>
<p style="text-align:left;"><em>Extracting archive file to /opt/microsoft/configmgr...</em></p>
<p style="text-align:left;"><em>Installing OMI</em></p>
<p style="text-align:left;"><em>Generating a 2048 bit RSA private key</em></p>
<p style="text-align:left;"><em>.+++</em></p>
<p style="text-align:left;"><em>..............................................+++</em></p>
<p style="text-align:left;"><em>writing new private key to &#39;/opt/microsoft/omi/etc/ssl/certs/omikey.pem&#39;</em></p>
<p style="text-align:left;"><em>-----</em></p>
<p style="text-align:left;"><em>Successfully installed OMI under: /opt/microsoft/omi/.</em></p>
<p style="text-align:left;"><em>Checking existence of /lib/libssl.so.0.9.8e-fips-rhel5 and /lib/libcrypto.so.0.9.8e-fips-rhel5 ...</em></p>
<p style="text-align:left;"><em>Checking existence of /lib/libssl.so.0.9.8--5 and /lib/libcrypto.so.0.9.8--5 ...</em></p>
<p style="text-align:left;"><em>Checking existence of /lib/libssl.so.0.9.8e and /lib/libcrypto.so.0.9.8e ...</em></p>
<p style="text-align:left;"><em>&nbsp; Found /lib/libssl.so.0.9.8e and /lib/libcrypto.so.0.9.8e ...</em></p>
<p style="text-align:left;"><em>Setting CM_HOME in omiserver...</em></p>
<p style="text-align:left;"><em>Disabling HTTP Ports...</em></p>
<p style="text-align:left;"><em>Modifying install scripts for OMI</em></p>
<p style="text-align:left;"><em>Registering Providers...</em></p>
<p style="text-align:left;"><em>Created /opt/microsoft/omi/./etc/omiregister/root-cimv2/scxcmprovider.reg</em></p>
<p style="text-align:left;"><em>Performing post installation cleanup...</em></p>
<p style="text-align:left;"><em>Linking startup script...</em></p>
<p style="text-align:left;"><em>Initializing data store.&nbsp; This may take a few minutes...</em></p>
<p style="text-align:left;"><em>Importing the Client Signing certificate...</em></p>
<p style="text-align:left;"><em>CRL validations will be ignored.</em></p>
<p style="text-align:left;"><em>Loading &amp; validating the certificate</em></p>
<p style="text-align:left;"><em>Successfully verified the Client certificate.</em></p>
<p style="text-align:left;"><em>Imported the issued certificate to the store.</em></p>
<p style="text-align:left;"><em>Installing boot-time scripts...</em></p>
<p style="text-align:left;"><em>Starting Configuration Manager...</em></p>
<p style="text-align:left;"><em>Installation complete.</em></p>
<p style="text-align:left;"><em>[root@RHEL55A Linux-Chandan]#</em></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">=======================================================================================</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><span style="font-size:12px;">&nbsp;</span></p>
<p style="text-align:left;">And you should see the machine in the Configmanager console.</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7.png" border="0" alt=" " /></a></p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">Remember, you don&rsquo;t need to approve the client manually as you have while you install the client on HTTP.</p>
<p style="text-align:left;">In 5-10 min, you should see the inventory available in the resource explorer.</p>
<p></p>
<p>Linux client is ready to communicate to site on HTTPS :)</p>
<p></p>
<p>-Chandan</p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Restricting User to import Computer information and deploy OS to a collection</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/restricting-user-to-import-computer-information-and-deploy-os-to-a-collection</link>
      <pubDate>Tue, 15 Oct 2013 13:46:00 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/2013/10/15/restricting-user-to-import-computer-information-and-deploy-os-to-a-collection/</guid>
      <description><![CDATA[We have RBAC (Role based access control) in Configmanager2012 SP1 and it has a multiple purpose and...]]></description>
      <content:encoded><![CDATA[<p>We have RBAC (Role based access control) in Configmanager<br />2012 SP1 and it has a multiple purpose and can do miracles.</p>
<p>Many a times we get a requirement on how to restrict a user<br />only to do a specific action in the console. In our case, we want a non admin<br />user to perform two operations</p>
<p>1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Import computer information</p>
<p>2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Operating system Deployment</p>
<p>We don&rsquo;t want the user to view the &ldquo;All system collection&rdquo;<br />but still wants to import a computer and target a Task sequence. So let&rsquo;s get started!</p>
<p>Considering you already have a user account created in AD</p>
<p>1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create two collections &ldquo;OSD Test&rdquo; and OSD Test2.<br />Note down the limiting collection of both the collections.</p>
<p><br /> <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6787.1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6787.1.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6787.1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6787.1.png" alt="" border="0" /></a><br />&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;<br />In my case, I have limiting collection for<br />OSD test, you can use limiting collection based on the department name such as<br />Finance, HR, etc. Limiting collection of OSD Test2 is OSD test.</p>
<p>&nbsp;</p>
<p>2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create administrative users. Administration--&gt;Security--&gt;Administrative Users</p>
<p>I have created user named AB\User.</p>
<p>&nbsp;</p>
<p>3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Under Security Roles, Make a copy of &ldquo;Infrastructure<br />Administrator&rdquo; role and name it as &ldquo;Modify Collection&rdquo; and disable every other<br />permission except collection permission.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6131.2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6131.2.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/6131.2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/6131.2.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Under administrative users, go to properties of<br />AB\User we created in Step2 and under Security Roles, add below two roles.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7658.3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7658.3.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7658.3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7658.3.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>And under Security Scopes, Add OSD Test and<br />Default under instance selection.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7870.4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7870.4.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7870.4.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7870.4.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Now open a console with the user AB\User and<br />navigate to Asset and Compliance and check if you are able to see &ldquo;OSD test&rdquo;<br />and &ldquo;OSD test2&rdquo;. Make sure that &ldquo;OSD Test&rdquo; is not modifiable but &ldquo;OSD Test2&rdquo;<br />is. You can check by getting into properties of each of these two collections.</p>
<p>6)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Point to Devices under Assets and Compliance and<br />on the top left, import Computer Information. In my case, I tried importing a<br />single computer</p>
<p><br /> <a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/4186.5.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/4186.5.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/4186.5.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/4186.5.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Under Choose Target collection, select the<br />available collection &ldquo;OSD Test2&rdquo;. And in a while, you should be able to see<br />MyComputer under &ldquo;OSD test2&rdquo; collection. Need patience here J</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7711.6.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7711.6.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7711.6.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7711.6.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now you are good to Deploy TS to the<br />collection with your restricted user account.</p>
<p>&nbsp;</p>
<p>So the idea here is to grant access to the<br />users who are separated by region or departments. And also that I wanted to<br />show you how RBAC works and the way you control the access using this.</p>
<p>Will be happy to see if you have any feedback or<br />would like to see more information.</p>
<p>&nbsp;</p>
<p><span style="font-size: xx-small;">Disclaimer:&nbsp; This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at <a href="https://www.microsoft.com/info/cpyright.htm" target="_blank">https://www.microsoft.com/info/cpyright.htm</a></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Hardware Inventory &amp; Software Deployment to Linux Servers in ConfigManager 2012 SP1</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/hardware-inventory-software-deployment-to-linux-servers-in-configmanager-2012-sp1</link>
      <pubDate>Tue, 25 Jun 2013 14:43:00 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/2013/06/25/hardware-inventory-software-deployment-to-linux-servers-in-configmanager-2012-sp1/</guid>
      <description><![CDATA[By now, you must be aware of client deployment in Linux machine. You can click&nbsp;here. Its time...]]></description>
      <content:encoded><![CDATA[<p>By now, you must be aware of client deployment in Linux machine. You can click&nbsp;<a href="https://blogs.technet.com/b/meacoex/archive/2013/02/13/manage-suse-linux-with-system-center-2012-sp1.aspx">here</a>. Its time to have package deployment in Linux machine.&nbsp;</p>
<p>Before we go ahead with the SW deployment in a Linux machine, we should be aware of supported options&nbsp;<a href="https://technet.microsoft.com/en-us/library/jj573943.aspx">https://technet.microsoft.com/en-us/library/jj573943.aspx</a></p>
<p>i deployed the client, &nbsp;but for some reason, i am unable to see the client in the console, that's when we refer the logs on what went wrong. it may be a single scenario but can have multiple approaches.</p>
<p>after installing the client, i noticed the log located @ <span style="text-decoration: underline;">/var/opt/microsoft/scxcm.log</span></p>
<p>SCXCM.log<br />===========<br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T02:38:34,908Z Error [NetworkInterfaceInfo:1162:5575:47424302669776] for net device sit0 can not map sa_family to AdapterType, sa_family is : 776 LinuxUNIXClient 6/22/2013 8:08:34 AM 1884737912 (0x7056D178)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T02:38:54,544Z Info [scx.client.core.CCMExec:611:5824:47981362380752] Requesting for Policy assignment request and evaluation run LinuxUNIXClient 6/22/2013 8:08:54 AM 3379970920 (0xC9764368)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T02:39:30,929Z Error [scx.client.messaging.HttpBroker:219:5575:1114495296] FAILURE on socket transmission! LinuxUNIXClient 6/22/2013 8:09:30 AM 1114491832 (0x426DCBB8)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T02:39:30,929Z Error [scx.client.messaging.HttpBroker:148:5575:47424302669776] <strong>Failed to connect to server : pri.ab.com On port 80</strong> LinuxUNIXClient 6/22/2013 8:09:30 AM 1884738296 (0x7056D2F8)</span></p>
<pre>&nbsp;</pre>
<p><span>As the error suggests, i tried telnet to the site server on port 80 from Linux machine and i see failure. so aim is to fix that. Once done, i could see the clients appearing in console and go ahead and approve it. If you need more information or detailed logging, you may very well enable TRACE.</span></p>
<p><span>Simply edit<span style="text-decoration: underline;"> /opt/microsoft/configmgr/etc/scxcm.conf</span> from <strong>WARNING to TRACE</strong> at two locations in the conf file and restart the service "<span style="text-decoration: underline;">service /etc/init.d/ccmexecd restart".</span></span></p>
<p><br /><span>As long as the service is not being used or unable to connect to site server, the service ccmexecd will remain stopped, if you try to start it, you may see below error scxcm.log. So the service crashes here.Maybe</span></p>
<pre><br /><br /></pre>
<pre>&nbsp;</pre>
<pre><span style="background-color: #ffff00; font-size: xx-small;">&gt;&lt;06-22-2013 08:14:34.000+330&gt;&lt;thread=47580187459536 (0x7fffe8f61998)&gt;</span><br /><span style="background-color: #ffff00; font-size: xx-small;">terminate called after throwing an instance of 'CCM::Client::Messaging::MessengerException'</span></pre>
<pre>&nbsp;</pre>
<p>If you try to initiate the policy, say HW inventory policy <span style="text-decoration: underline;">"/opt/microsoft/configmgr/bin/ccmexec -rs hinv"</span></p>
<pre><span style="background-color: #ffff00; font-size: xx-small;">[root@localhost init.d]# Logging Configuration File for SCX CM::/opt/microsoft/configmgr/etc/scxcm.conf</span><br /><span style="background-color: #ffff00; font-size: xx-small;">Schedule with id : {00000000-0000-0000-0000-000000000001} was not found. Could not trigger.</span></pre>
<pre>&nbsp;</pre>
<p>This only means that the HW inventory policy is not identified.</p>
&nbsp;
<p>After restarting the service "<span style="text-decoration: underline;">service /etc/init.d/ccmexecd restart"</span>, Monitor the log under <span style="text-decoration: underline;">"/var/opt/microsoft/scxcm.log"</span></p>
<pre>&nbsp;</pre>
<p><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:55:59,370Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class Win32_Service LinuxUNIXClient 6/22/2013 11:25:59 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:00,770Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>Win32_NetworkAdapter</strong> LinuxUNIXClient 6/22/2013 11:26:00 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:00,848Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>Win32_ComputerSystem</strong> LinuxUNIXClient 6/22/2013 11:26:00 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:00,872Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>SMS_Processor</strong> LinuxUNIXClient 6/22/2013 11:26:00 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:00,890Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>SMS_LogicalDisk</strong> LinuxUNIXClient 6/22/2013 11:26:00 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:00,928Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>Win32_DiskDrive</strong> LinuxUNIXClient 6/22/2013 11:26:00 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:00,954Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>Win32_BIOS</strong> LinuxUNIXClient 6/22/2013 11:26:00 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:00,979Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>Win32_NetworkAdapterConfiguration</strong> LinuxUNIXClient 6/22/2013 11:26:00 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:01,025Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>Win32Reg_AddRemovePrograms</strong> LinuxUNIXClient 6/22/2013 11:26:01 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:13,523Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>Win32_DiskPartition LinuxUNIXClient</strong> 6/22/2013 11:26:13 AM 1088359560 (0x40DF0C88)</span><br /><span style="background-color: #ffff00; font-size: xx-small;">2013-06-22T05:56:13,538Z Trace [scx.client.agents.inventory.InvDataStore:786:6473:1088377152] Inventory report preparation has begun for class <strong>Win32_OperatingSystem LinuxUNIXClient</strong> 6/22/2013 11:26:13 AM 1088359560 (0x40DF0C88)</span></p>
<pre>&nbsp;</pre>
<p><span style="font-size: xx-small; background-color: #ffff00;">[scx.client.Agents.Inventory.CollectionTask:833:6473:1088377152] Building HWInv data for class root/cimv2/win32_pnpentity (OMI referenced as win32_pnpentity)</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Notice these instances being discovered. These are specific to Linux machine placed by configmanager provider.&nbsp;</p>
<p>These are the success messages in the log, and if you wait for a while, you should see the HW inventory information under resource explorer. This can take around 15 min to appear. Little bit of patience is required :)</p>
&nbsp;
<p>Now that i see client well connected, i decide to go for package deployment in Linux 5.8 x64.</p>
<p>If you refer the technet as specified above, only legacy method of package deployment is supported currently. No application deployment is supported.&nbsp;</p>
<p>Creation of package works exactly the same way as windows, but the options are restricted. I have included some screenshot below to make you comfortable in creating a package.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0218.Capture.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0218.Capture.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0218.Capture.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0218.Capture.PNG" alt="" 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/00/92/02/2158.Capture.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/2158.Capture.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/2158.Capture.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/2158.Capture.PNG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7288.Capture.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7288.Capture.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7288.Capture.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7288.Capture.PNG" alt="" border="0" /></a></p>
<p>As you can see the command line is what it needs to be passed to Linux client. Remaining option support, please refer to Technet &nbsp;<a href="https://technet.microsoft.com/en-us/library/jj573943.aspx">https://technet.microsoft.com/en-us/library/jj573943.aspx</a></p>
<p>&nbsp;</p>
<p>Once done, create a deployment. Again, not all the options are supported.</p>
<p>It always has to be "required". and can not be available</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8270.Capture.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8270.Capture.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8270.Capture.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8270.Capture.PNG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Rest of the option goes by default.</p>
<p>Once you have the deployment ready, either you can opt to wait till the policy reaches the client, or you can initiate the policy.&nbsp;</p>
<p><span style="text-decoration: underline;">&ldquo;/opt/microsoft/configmgr/bin/ccmexec -rs policy&rdquo;</span></p>
<p>Monitor the scxcm.log</p>
<p><br /><br /><span style="font-size: xx-small; background-color: #ffff00;">2013-06-25T20:16:37,207Z Error [scx.client.agents.softwaredist.RejectPolicyMgr:353:6732:1103982912] query WMI . The query was select * from CCM_RejectedPolicy where AdvertisementID = "PRI20001" and ProgramID = "<strong>RPM Install program"</strong> and PackageID = "<strong>CAS0000B</strong>" and User = "System"</span><br /><span style="font-size: xx-small; background-color: #ffff00;">2013-06-25T20:16:37,367Z Warning [scx.client.agents.softwaredist.CSoftwareDistPolicyMgr:3297:6732:1104892224] Package: CAS0000B LinuxUNIXClient 6/26/2013 1:46:37 AM 1104877576 (0x41DB1808)</span><br /><span style="font-size: xx-small; background-color: #ffff00;">2013-06-25T20:16:37,367Z Warning [scx.client.agents.softwaredist.CSoftwareDistPolicyMgr:3298:6732:1104892224] program: RPM Install program LinuxUNIXClient 6/26/2013 1:46:37 AM 1104877576 (0x41DB1808)</span><br /><span style="font-size: xx-small; background-color: #ffff00;">2013-06-25T20:16:37,368Z Warning [scx.client.agents.softwaredist.CSoftwareDistPolicyMgr:3300:6732:1104892224] initial validation. Check the log for details. LinuxUNIXClient 6/26/2013 1:46:37 AM 1104877576 (0x41DB1808)</span></p>
<p>&nbsp;</p>
<p>We have the policy available, and the client has received the package ID. package is validated and command line is attached.</p>
<p>In the above log, i just have warnings available, but in case you want to see the complete steps of receiving the policy and installation command line, enable trace with the command line specified above.</p>
<p>&nbsp;</p>
<p>-Chandan</p>]]></content:encoded>
    </item>
    <item>
      <title>Setting up and Troubleshooting interop or Universal connector with HPOVO</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/setting-up-and-troubleshooting-interop-or-universal-connector-with-hpovo</link>
      <pubDate>Tue, 03 Jul 2012 15:04:00 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/2012/07/03/setting-up-and-troubleshooting-interop-or-universal-connector-with-hpovo/</guid>
      <description><![CDATA[In this blog, i have not just concentrated on resolving the issue but also to give you a fair idea...]]></description>
      <content:encoded><![CDATA[<p>In this blog, i have not just concentrated on resolving the issue but also to give you a fair idea on where to look if the issue occurs. Basically the locations of logs and some possible solutions of it.&nbsp;</p>
<p>For setting up the connector, check the <a href="https://blogs.technet.com/b/stefan_stranger/archive/2011/08/16/lessons-learned-the-opsmgr-2007-r2-universal-connector.aspx">link</a></p>
<p>After we confirmed that our connector service and Provider are in place. Good to see that.</p>
<p>Look into the log scxcimd.log at <b>/var/opt/Microsoft/scx/log</b></p>
<p>I see below alarming entries. So we are not able to validate the wsman account.</p>
<p><span style="color: #000000; background-color: #ffff99;">06/28/2012-02:13:03 SEVERE&nbsp; cimserver: Provider is not a CMPI style provider. library /opt/microsoft/scx/lib/providers/libSCXInteropProviderModule.so, error ProviderLoadFailure: (/opt/microsoft/scx/lib/providers/libSCXInteropProviderModule.so:SCX_ConnectorProvider):Cannot load library, error: /opt/microsoft/scx/lib/providers/libSCXInteropProviderModule.so: wrong ELF class: ELFCLASS64</span></p>
<p></p>
<p></p>
<p>You can also see this is scinteropd.log</p>
<p></p>
<p><span style="background-color: #ffff99;">&lt;SOAP-ENV:Fault xmlns:SOAP-ENV="https://www.w3.org/2003/05/soap-envelope"&gt;&lt;SOAP-ENV:Code&gt;&lt;SOAP-ENV:Value&gt;SOAP-ENV:Receiver&lt;/SOAP-ENV:Value&gt;&lt;SOAP-ENV:Subcode&gt;&lt;SOAP-ENV:Value&gt;wsman:InternalError&lt;/SOAP-ENV:Value&gt;&lt;/SOAP-ENV:Subcode&gt;&lt;/SOAP-ENV:Code&gt;&lt;SOAP-ENV:Reason&gt;&lt;SOAP-ENV:Text xml:lang="en-US"&gt;CIM_ERR_FAILED: ProviderLoadFailure: (/opt/microsoft/scx/lib/providers/libSCXInteropProviderModule.so:SCX_ConnectorProvider):Cannot load library, error: /opt/microsoft/scx/lib/providers/libSCXInteropProviderModule.so: wrong ELF class: ELFCLASS64&lt;/SOAP-ENV:Text&gt;&lt;/SOAP-ENV:Reason&gt;&lt;/SOAP-ENV:Fault&gt;</span></p>
<p><span style="background-color: #ffff99;">DEBUG Microsoft.SystemCenter.Interop.NoProviderAvailableException: Could not connect to any providers to retrieve update events</span></p>
<p></p>
<p><span style="color: #ff0000;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/2084.capture1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/2084.capture1.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/2084.capture1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/2084.capture1.png" border="0" alt="" /></a></span></p>
<p></p>
<p></p>
<pre><span style="font-family: 'courier new', courier;">Event Type: Error</span><br /><span style="font-family: 'courier new', courier;">Event Source: OpsMgr Connector for HP OpenView Operations</span><br /><span style="font-family: 'courier new', courier;">Event Category: None</span><br /><span style="font-family: 'courier new', courier;">Event ID: 0</span><br /><span style="font-family: 'courier new', courier;">Date: 6/26/2012</span><br /><span style="font-family: 'courier new', courier;">Time: 10:07:49 PM</span><br /><span style="font-family: 'courier new', courier;">User: &lt;MS Name&gt;</span><br /><br /><span style="font-family: 'courier new', courier;">Description:</span><br /><span style="font-family: 'courier new', courier;">Service cannot be started. System.ApplicationException: Could not find configuration for 'OpsMgr Connector for HP OpenView Operations'</span><br /><span style="font-family: 'courier new', courier;"> at Microsoft.SystemCenter.Interop.Configuration.Config.Load(String key)</span><br /><span style="font-family: 'courier new', courier;"> at Microsoft.SystemCenter.Interop.Configuration.Config..ctor(String configName)</span><br /><span style="font-family: 'courier new', courier;"> at Microsoft.SystemCenter.Interop.ConnectorService.OnStart(String[] args)</span><br /><span style="font-family: 'courier new', courier;"> at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)</span><br /><br /><span style="font-family: 'courier new', courier;">For more information, see Help and Support Center at https://go.microsoft.com/fwlink/events.asp.</span></pre>
<p></p>
<p></p>
<p></p>
<p></p>
<p>It only means that some of the library files are not loaded. It doesn&rsquo;t look strange to me. Just to let you know, this happens when we have x64 bit agent installed on x86 machine and vice versa. And that was found true. We definitely did that.</p>
<p></p>
<p>To check what bit (32 or 64) agent installed, run below command,</p>
<p></p>
<p><b>file /opt/microsoft/scx/bin/scxcimserver</b></p>
<p></p>
<p>To check bit information if provider, run below</p>
<p></p>
<p><b>File /opt/microsoft/scx/lib/providers/libSCXInteropProviderModule.so</b></p>
<p><b><br /></b></p>
<p></p>
<p>Both output should match to come to conclusion.</p>
<p></p>
<p>When you enable the verbose logging on the UNIX machine with below command.</p>
<p></p>
<p><strong>scxadmin -log-set all verbose</strong></p>
<p></p>
<p>We were able to see below messages in<strong> cimserver.trc</strong></p>
<p></p>
<p><span style="background-color: #ffff99;">1340870984s-99035us: SSL [30728:4148087648:TLS.cpp:196]: In SSLSocket::incompleteSecureReadOccurred : err = 5 error:00000000:lib(0):func(0):reason(0)</span></p>
<p></p>
<p><span style="background-color: #ffff99;">1340870984s-99044us: Http [30728:4148087648:HTTPConnection.cpp:2075]: Total bytesRead = 0; Bytes read this iteration = 0</span></p>
<p></p>
<p><span style="background-color: #ffff99;">1340870984s-99054us: XmlIO [30728:4148087648:HTTPConnection.cpp:2107]: &lt;!-- No request message received; connection closed: queue id: 20 --&gt;</span></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p><strong>Possibility: </strong></p>
<p></p>
<p>1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The version of OpenSSL on the RHL 5.8 box is slightly incompatible</p>
<p></p>
<p>2) &nbsp; &nbsp; &nbsp;Network issue Or the certificate, however with the current data, I don&rsquo;t see it in log.</p>
<p></p>
<p><strong>&nbsp;</strong></p>
<p></p>
<p>So next step is, install x86 agent on x86 hardware and so on. This should fix the issue. As soon as done, we didn&rsquo;t see any such entries. That was good.</p>
<p></p>
<p>So here is the steps of install on the provider part.</p>
<p></p>
<p>1)&nbsp;&nbsp;&nbsp; Have scx-1.0.4-265.rhel.5.x64.rpm installed which is a provider component, (If x64)</p>
<p></p>
<p>2)&nbsp;&nbsp;&nbsp; Next install MSFTInteropOvo.xxxx&nbsp; (Only if we are going for interop connector)</p>
<p></p>
<p>&nbsp;</p>
<p></p>
<p><b>Note</b>: Provider component 1<sup>st</sup>, Connector on MS 2<sup>nd</sup>.</p>
<p></p>
<p>We did it,</p>
<p></p>
<p>We still can&rsquo;t validate the wsman credential. OK no problem, let&rsquo;s check if this command works</p>
<p></p>
<p>"winrm enumerate <a href="https://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_Processor__cimnamespace=root/scx">https://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_Processor__cimnamespace=root/scx</a> -auth:basic -remote: https://&lt;Linux server&gt;:1270&nbsp; -username:&lt;Username&gt; -password:&lt;Password&gt; -encoding:utf-8 -skipCAcheck -skipCNcheck"</p>
<p></p>
<p>&nbsp;</p>
<p></p>
<p>And it fails with &ldquo;<b>Access denied</b>&rdquo; error. Though I have used root account.</p>
<p></p>
<p>Immediately I think of this link <a href="https://support.microsoft.com/kb/2653882">https://support.microsoft.com/kb/2653882</a>&nbsp; but this is something related to Solaris, here I have Linux 5.8.</p>
<p></p>
<p></p>
<p>I check below file if this exists, may be something wrong with PAM.</p>
<p></p>
<p><b># cat /etc/pam.d/scx</b></p>
<p></p>
<p><b>cat: /etc/pam.d/scx: No such file or directory</b></p>
<p></p>
<p>So the PAM doesn&rsquo;t exist at all here. This is the file, that is created while the install goes on, there should be scx file that should be created automatically. SO we can make use of sshd. So try this</p>
<p></p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="2">
<p><b>&nbsp; &nbsp; cd /etc/pam.d</b></p>
</td>
</tr>
<tr>
<td width="16" valign="top"></td>
<td>
<p><b>cp sshd scx</b></p>
</td>
</tr>
</tbody>
</table>
<p></p>
<p>So SCX file should look like this, when you run command &ldquo;cat scx&rdquo;</p>
<p><span style="color: #ff0000;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8562.capture2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8562.capture2.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/8562.capture2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/8562.capture2.png" border="0" alt="" /></a></span></p>
<p></p>
<p></p>
<p></p>
<p>Now try running your winrm command from above. And it goes success!!!</p>
<p></p>
<p>But still we are not able to validate the WSMAN credentials in the connector configuration wizard.</p>
<p></p>
<p>I can definitely think of checking my certificate, so I run winRM command without &ndash;skipCNcheck and &ndash;skipCAcheck, it works fine, so its not a certificate issue. If there is a failure, you can take a look at</p>
<p></p>
<p><a href="https://support.microsoft.com/kb/2651766">https://support.microsoft.com/kb/2651766</a></p>
<p></p>
<div>
<p>in the application event log, I see below event</p>
<p></p>
</div>
<p></p>
<pre><span style="font-family: 'courier new', courier;">Event Type: Error</span><br /><span style="font-family: 'courier new', courier;">Event Source: OpsMgr Connector for HP OpenView Operations</span><br /><span style="font-family: 'courier new', courier;">Event Category: None</span><br /><span style="font-family: 'courier new', courier;">Event ID: 1500</span><br /><span style="font-family: 'courier new', courier;">Date: 6/28/2012</span><br /><span style="font-family: 'courier new', courier;">Time: 12:37:51 PM</span><br /><span style="font-family: 'courier new', courier;">User: N/A</span><br /><span style="font-family: 'courier new', courier;">Computer: &lt;MS Name&gt;</span><br /><br /><span style="font-family: 'courier new', courier;">Description:</span><br /><span style="font-family: 'courier new', courier;">2012-06-28 12:37:51.511 [Microsoft.SystemCenter.Interop.Framework.Modules.WSManModule] ERROR No providers could be contacted. Could not get update events. Cannot create WSManConfig for any providers</span></pre>
<pre></pre>
<pre></pre>
<p></p>
<p>We couldn&rsquo;t make the wsman validation work, so I decided to manually import the certificate. By using below command by going into the directory</p>
<p>%Program Files%\System center Operations Manager 2007 R2 Connectors\opsMgr Connector For HP OpenView Operations</p>
<p></p>
<p><b>"Scicert &lt;Provider machine&gt; &lt;User account&gt; &lt;Password&gt; &ldquo;OpsMgr Connector for HP Openview Operations&rdquo; silent"</b></p>
<p><b><br /></b></p>
<p>This popped some error</p>
<p><span style="color: #ff0000;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7888.capture3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7888.capture3.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/7888.capture3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/7888.capture3.png" border="0" alt="" /></a></span></p>
<p></p>
<p></p>
<p></p>
<p><span style="background-color: #ffff99;">&ldquo;Connector certificate import operation returned an error code. Certificate installation was not complete. Please refer to connector Deployment Guide for further details&rdquo;</span></p>
<p></p>
<p>Then I found, I had incorrect Operations manager server in the server names. So make sure that you have correct server names here. So this issue can happen when you have incorrect names.</p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/3247.capture4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/3247.capture4.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/3247.capture4.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/3247.capture4.png" border="0" alt="" /></a></p>
<p></p>
<p></p>
<p>As soon as I corrected the operations manager server name, and enter on &ldquo;Configure&rdquo; it returned success!!.</p>
<div>
<p>In case you are seeing below error in the event log.</p>
</div>
<p>OK, now i was able to get my wsman credential validated.&nbsp;</p>
<p></p>
<p><span style="color: #ff0000;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5432.capture5.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5432.capture5.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5432.capture5.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5432.capture5.png" border="0" alt="" /></a>&nbsp; &nbsp;</span></p>
<p></p>
<p></p>
<p><span color="#ff0000" style="color: #000000;">At some point in the event, i still see below event of access denied.</span></p>
<p></p>
<p></p>
<pre><span style="font-family: 'courier new', courier;">Event Type: Error</span><br /><span style="font-family: 'courier new', courier;">Event Source: OpsMgr Connector for HP OpenView Operations</span><br /><span style="font-family: 'courier new', courier;">Event Category: None</span><br /><span style="font-family: 'courier new', courier;">Event ID: 1151</span><br /><span style="font-family: 'courier new', courier;">Date: 6/28/2012</span><br /><span style="font-family: 'courier new', courier;">Time: 12:12:42 PM</span><br /><span style="font-family: 'courier new', courier;">User: N/A</span><br /><span style="font-family: 'courier new', courier;">Computer: Machine name</span></pre>
<pre><span style="font-family: 'courier new', courier;">Description:</span></pre>
<pre><span style="font-family: 'courier new', courier;">2012-06-28 12:12:42.779 [Microsoft.SystemCenter.Interop.Framework.Modules.OpsMgrModule] ERROR Not authorized to connect to server: &lt;Machine name&gt;. The user &lt;User account&gt; does not have sufficient permission to perform the operation.</span></pre>
<p></p>
<p></p>
<p></p>
<p>Remember going through Kevin&rsquo;s blog for checking the rights of the account. <a href="https://blogs.technet.com/b/kevinholman/archive/2010/09/23/installing-the-opsmgr-r2-universal-connector.aspx">https://blogs.technet.com/b/kevinholman/archive/2010/09/23/installing-the-opsmgr-r2-universal-connector.aspx</a></p>
<p></p>
<p>That means, this is the account that runs the connector service. And needs to have below permission.</p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5040.capture6.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5040.capture6.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5040.capture6.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5040.capture6.png" border="0" alt="" /></a></p>
<p></p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5734.capture7.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5734.capture7.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5734.capture7.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5734.capture7.png" border="0" alt="" /></a></p>
<p></p>
<p>After all, I got this after successful validation</p>
<p><span color="#ff0000" style="color: #ff0000;"><span style="color: #000000;">Then I tried forwarding the alerts to the connector and it was success with ticket ID field populated.</span><br /></span></p>
<p></p>
<p><b>Note:-</b></p>
<p>Another one I thought of bringing to notice.</p>
<p>While Integration between SCOM 2007 and HP Operations Manager (OM) on Red Hat Linux.</p>
<p>In the log /var/opt/microsoft/scx/log/scxcimd.log:</p>
<p></p>
<p><span style="background-color: #ffff00;">06/22/2012-15:52:46 INFO&nbsp;&nbsp;&nbsp; cimserver: Authentication failed for user=&lt;opc_adm&gt;</span></p>
<p><span style="background-color: #ffff00;">06/22/2012-15:52:46 INFO&nbsp;&nbsp;&nbsp; cimserver: Authentication failed for user=&lt;opc_adm&gt;</span></p>
<p><span style="background-color: #ffff00;">06/22/2012-15:53:16 INFO&nbsp;&nbsp;&nbsp; cimserver: Authentication failed for user=&lt;opc_adm&gt;</span></p>
<p></p>
<p></p>
<p></p>
<p>Remember, this account is an HPOVO administrator by default. So you may need to check if below steps are correct.</p>
<p>1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Verify is password entered is correct</p>
<p>2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Verify if you are able to log into HPOVO with opc_adm account</p>
<p>&nbsp;</p>
<p>If you are not sure about the password and wondering what password you have entered and how to re-enter the password for account &ldquo;ops_adm&rdquo; ,</p>
<p>To know what password you have entered, try below</p>
<p><b>vi /etc/init.d/scx-scinteropd</b></p>
<p><b><br /></b></p>
<p>Change the log level to 51</p>
<p>-D51 (instead of -D1 or whatever it is now)</p>
<p>that will verify the password is being decrypted successfully</p>
<p>&nbsp;</p>
<p>Once this is done, restart the provider service. Then check the log again. You will see below information along with the password entered. Check <b>scinteropd.log</b></p>
<p>&nbsp;</p>
<p><span style="font-family: 'courier new', courier;"><em>05-29-2012 17:32:46 - INFO: Debug Level = '51'</em></span></p>
<p><span style="font-family: 'courier new', courier;"><em>05-29-2012 17:32:46 - INFO: Instance name = 'SciInst'.</em></span></p>
<p><span style="font-family: 'courier new', courier;"><em>05-29-2012 17:32:46 - INFO: Operator name = 'opc_adm'.</em></span></p>
<p><span style="font-family: 'courier new', courier;"><em>05-29-2012 17:32:46 - INFO: DELETE FROM LOG - Password = <b>&lt;Password&gt;</b></em></span></p>
<p><span style="font-family: 'courier new', courier;"><em>05-29-2012 17:32:46 - ERROR: Cannot connect to the MSI!</em></span></p>
<p><span style="font-family: 'courier new', courier;"><em>05-29-2012 17:32:46 - INFO: opc_connect() - Invalid password!</em></span></p>
<p>&nbsp;</p>
<p>OK, here is how you can update your password of ops_adm. Run below</p>
<p><b>&ldquo;/etc/opt/microsoft/scx/conf/scicrypt.bin &lt;New or correct Password&gt;&rdquo; --&gt; ENTER</b></p>
<p><b><br /></b></p>
<p>This way, you have updated or changed the password. And access denied or password issues should be resolved,</p>
<p>If this doesn&rsquo;t, There are two chances,</p>
<p>1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ops_adm is not able to connect to HPOVO API called &ldquo;opc_connect()&rdquo;</p>
<p>2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; there are chances that MSI&nbsp; "Message Stream Interface" - MSI has been corrupt</p>
<p>&nbsp;</p>
<p>At this point, you may need to engage HPOVO expert to find. But you know where you are with the issue.<b></b></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Create Unix log file unit monitor in SCOM 2007</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/create-unix-log-file-unit-monitor-in-scom-2007</link>
      <pubDate>Thu, 16 Feb 2012 16:01:00 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/2012/02/16/create-unix-log-file-unit-monitor-in-scom-2007/</guid>
      <description><![CDATA[We had number of questions for creating a log file monitor based on good and bad expression. What I...]]></description>
      <content:encoded><![CDATA[<p>We had number of questions for creating a log file monitor based on good and bad expression. What I meant by this is, I want to generate an alert if the entry <strong>ERROR</strong> is seen in the log and reset to healthy when <strong>SUCCESS</strong> is seen in the log. so we&nbsp;don&#39;t&nbsp;have to manually close it.&nbsp;</p>
<p>We already have a template to create a log file rule which you should be able to see under rule section, but here we are just trying to create a Unit Monitor. So lets start in a simple way.</p>
<p></p>
<p><strong>Step 1</strong>: Install an authoring console from tool kit &nbsp;<a href="https://www.microsoft.com/download/en/details.aspx?id=18222">Here</a></p>
<p><a href="https://www.microsoft.com/download/en/details.aspx?id=18222">&nbsp;</a></p>
<p><strong>Step 2</strong>: Create a new MP and add below references to it.</p>
<ul>
<li>Microsoft.Unix.Library</li>
<li>Microsoft.Unix.LogFile.Library</li>
</ul>
<p>Rest libraries are already added. So no worries.</p>
<p><strong>Step 3</strong>: Go to health model Pane and check Monitors.</p>
<p>Create a new monitor (Custom Unit Monitor)</p>
<p><strong>Step 4</strong>: Go to Type LIbrary Pane and right on the blank space to create New composite monitor Type,&nbsp;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Name</strong>: &lt;Name that you want&gt;, Fill the General Tab</p>
<p><span class="Apple-tab-span" style="white-space:pre;"> </span>&nbsp; &nbsp;<strong>&nbsp; &nbsp; &nbsp; &nbsp; States</strong>: State 1--&gt;healthy and State2--&gt;Critical</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>Member Modules:</strong> Click on Add, and uncheck Condition detection and Probe action, and select &quot;Log File Datasource&quot; from the list, (2 times as shown below)</p>
<p><span class="Apple-tab-span" style="white-space:pre;"> </span>&nbsp; &nbsp; Here GoodExpression and BadExpression are the module ID</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5315.Capture1.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5315.Capture1.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5315.Capture1.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5315.Capture1.JPG" border="0" alt=" " /></a></p>
<p><span class="Apple-tab-span" style="white-space:pre;"> </span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<strong>Regular:</strong> Check good Expression box and select Monitor state output from&nbsp;drop down&nbsp;from 2nd box. Double click on &quot;Complete&quot; which is set to &quot;NO&#39; it will turn to &quot;Yes&quot; as below</p>
<p></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/2843.Capture2.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/2843.Capture2.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/2843.Capture2.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/2843.Capture2.JPG" border="0" alt=" " /></a></p>
<p></p>
<p></p>
<p></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre;"> </span><strong>On Demand:</strong> leave it as it is</p>
<p><span class="Apple-tab-span" style="white-space:pre;"> </span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<strong>Configuration Schema</strong>: Its difficult to describe, but below should tell you what to do :)</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5808.Capture3.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5808.Capture3.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/5808.Capture3.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/5808.Capture3.JPG" border="0" alt=" " /></a></p>
<p></p>
<p></p>
<p><span class="Apple-tab-span" style="white-space:pre;"> </span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Overridable Parameters</strong>: Create 3 Parameters.&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0676.Capture4.JPG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0676.Capture4.JPG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/0676.Capture4.JPG" original-url="https://blogs.technet.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/0676.Capture4.JPG" border="0" alt=" " /></a></p>
<p><strong>Step 5</strong>:&nbsp; Name: &lt;name that you want&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>Target</strong>: Unix computer</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>Parent Monitor</strong>: Entity Health &lt;Your wish to select which ever you want&gt;</p>
<p><strong>Step 6</strong>: Hit configuration tab and click on Browse where your Monitor type should be &ldquo;Linux Log File Monitor Type&rdquo;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>Host</strong> :&nbsp; $Target/Property[Type=&quot;Unix!Microsoft.Unix.Computer&quot;]/PrincipalName$</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>LogFile</strong>:&nbsp; &lt;Your log File location and name&gt;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>GoodRegex</strong>:&nbsp; &lt;Value that makes monitor healthy&gt;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>&nbsp;BadRegex</strong>:&nbsp; &lt;Value that makes your monitor critical or unhealthy&gt;</p>
<p><strong>Step 7</strong>: Define your healthy and critical criteria.</p>
<p><strong>Step 8</strong>: Define alerting</p>
<p>And you are done.!!</p>
<p>Save this MP and import to your OpsMgr console. Expressions, Log file &amp; location and targets are overridable parameter here. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p>
<p><strong>Note</strong>: This is again a probe based module so defined expression is queried every 5 min. Either that&rsquo;s a healthy or unhealthy expression. So we have to be patient. So for any state change based on what log has got, it needs to wait for 5 min.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/9202/00/00/03/48/14/73/LinuxLogMonitor.xml" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-9202-00-00-03-48-14-73/LinuxLogMonitor.xml">LinuxLogMonitor.xml</a></p>]]></content:encoded>
    </item>
    <item>
      <title>SCOM 2007- How to create a Diagnostic task for Unix/Linux services</title>
      <link>https://docs.microsoft.com/archive/blogs/chandanbharti/scom-2007-how-to-create-a-diagnostic-task-for-unixlinux-services</link>
      <pubDate>Mon, 26 Dec 2011 13:59:00 GMT</pubDate>
      <dc:creator><![CDATA[Chandan Bharti]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/chandanbharti/2011/12/26/scom-2007-how-to-create-a-diagnostic-task-for-unixlinux-services/</guid>
      <description><![CDATA[I have already shown on how you can create the recovery task for Unix services in my previous...]]></description>
      <content:encoded><![CDATA[<p>I have already shown on how you can create the recovery task for Unix services in my previous blog&nbsp;<a href="https://blogs.technet.com/b/chandanbharti/archive/2011/12/21/creating-the-recovery-task-for-linux-services-in-scom-2007.aspx">Here</a>.&nbsp;And that was meant to run when the state changes from healthy to critical. But personally, i&nbsp;didn't&nbsp;like that. So i feel its good to allow those services to be queries if its stopped or not, and only then run the recovery. Isnt that Cool!!</p>
<p>Here is how you can create a Diagnostic task for Unix/Linux services.</p>
<p></p>
<p>&lt;!-- Add below lines just below the tag &lt;/Discoveries&gt; and right above the tag &lt;Recoveries&gt; --&gt;</p>
<pre>&lt;Diagnostics&gt; <br />  &lt;Diagnostic Accessibility="Public" ID="Microsoft.Unix.ACPID.Restart.Diagnostic" Remotable="true" Target="MicrosoftUnixServiceLibrary!Microsoft.SystemCenter.UnixService" Enabled="false"              Timeout="300" ExecuteOnState="Error" Monitor="MicrosoftUnixServiceLibrary!Microsoft.Unix.Generic.Service.Monitor" Comment="In response"&gt;<br />      &lt;Category&gt;Maintenance&lt;/Category&gt;<br />    &lt;ProbeAction ID="Invoke" TypeID="Unix!Microsoft.Unix.SSHCommand.ProbeAction"&gt;                          <br />     &lt;Host&gt;$Target/Property[Type="MicrosoftUnixServiceLibrary!Microsoft.SystemCenter.UnixService"]/ComputerName$&lt;/Host&gt;<br />     &lt;Port&gt;22&lt;/Port&gt;<br />     &lt;UserName&gt;$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/UserName$&lt;/UserName&gt;<br />    &lt;Password&gt;$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/Password$&lt;/Password&gt;<br />    &lt;Command&gt;/etc/init.d/acpid -status&lt;/Command&gt;<br />    &lt;TimeoutSeconds&gt;20&lt;/TimeoutSeconds&gt;<br />   &lt;/ProbeAction&gt;<br />  &lt;/Diagnostic&gt;<br />&lt;/Diagnostics&gt;<br /><br /></pre>
<p>Once this is done, please add the Display string as well</p>
<p></p>
<pre>&lt;DisplayString ElementID="Microsoft.Unix.ACPID.Restart.Diagnostic"&gt;<br />  &lt;Name&gt;ACPID Diagnostic&lt;/Name&gt; <br />   &lt;Description&gt;WARNING: Running this diagnostic is unsecure, do not run this against machines you do not trust as it may expose credentials to an unknown system.&lt;/Description&gt; <br />&lt;/DisplayString&gt;</pre>
<pre></pre>
<p>Also please make sure to edit your Recovery task Where you have an entry <span style="background-color: #ffff00;">"ExecuteOnState="Error"</span>&nbsp; Described in <a href="https://blogs.technet.com/b/chandanbharti/archive/2011/12/21/creating-the-recovery-task-for-linux-services-in-scom-2007.aspx">https://blogs.technet.com/b/chandanbharti/archive/2011/12/21/creating-the-recovery-task-for-linux-services-in-scom-2007.aspx</a></p>
<p><a href="https://blogs.technet.com/b/chandanbharti/archive/2011/12/21/creating-the-recovery-task-for-linux-services-in-scom-2007.aspx"></a>So basically you have to change it to <span style="background-color: #ffff00;">ExecuteOnDiagnostic="Microsoft.Unix.ACPID.Restart.Diagnostic"<span class="Apple-tab-span" style="white-space: pre; background-color: #ffffff;"> </span></span></p>
<p><span style="background-color: #ffff00;"><span class="Apple-tab-span" style="white-space: pre; background-color: #ffffff;"></span></span></p>
<p><span style="background-color: #ffff00;"><span class="Apple-tab-span" style="white-space: pre; background-color: #ffffff;"></span><span style="background-color: #ffffff;"></span></span></p>
<p><span style="background-color: #ffff00;"><span style="background-color: #ffffff;"></span></span></p>
<p><span style="background-color: #ffff00;"><span style="background-color: #ffffff;">Remember, this is created under a custom MP. Next import the MP to the console. You should see your Diagnostic task created &nbsp; &nbsp;&nbsp;</span></span></p>
<p><span style="background-color: #ffff00;"><span style="background-color: #ffffff;"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/1524.Capture.PNG" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/1524.Capture.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/92/02/1524.Capture.PNG" original-url="https://blogs.technet.com/resized-image.ashx/__size/500x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-92-02/1524.Capture.PNG" border="0" alt="" /></a></span></span></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>-Chandan</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>]]></content:encoded>
    </item>
  </channel>
</rss>