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

<channel>
	<title>teknoglot: &#187; X-Plat</title>
	<atom:link href="http://www.teknoglot.se/tag/x-plat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.teknoglot.se</link>
	<description>Techspeak for the socially diminished</description>
	<lastBuildDate>Fri, 18 May 2012 12:28:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux Discovery – Not Enough Entropy</title>
		<link>http://www.teknoglot.se/linux/sles/linux-discovery-not-enough-entropy/</link>
		<comments>http://www.teknoglot.se/linux/sles/linux-discovery-not-enough-entropy/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 11:37:08 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpsMgr]]></category>
		<category><![CDATA[TroubleShooting]]></category>
		<category><![CDATA[X-Plat]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/?p=243</guid>
		<description><![CDATA[Here’s a little trouble-shooting guide for discovering Linux systems from OpsMgr R2 when getting the following error from the wizard: But first, a little background on the actual “problem”. To generate the certificate, the entropy needs to be high enough to generate random data for the certificate creation. Without the certificate, the OpsMgr agent won’t [...]]]></description>
			<content:encoded><![CDATA[<p>Here’s a little trouble-shooting guide for discovering Linux systems from OpsMgr R2 when getting the following error from the wizard:</p>
<pre class="brush: xml; title: ; notranslate">&lt;stdout&gt;Generating certificate with hostname=&quot;COMPUTERNAME&quot;

[/home/serviceb/TfsCoreWrkSpcRedhat/source/code/tools/scx_ssl_config/scxsslcert.cpp:198]

Failed to allocate resource of type random data: Failed to get random data - not enough entropy

&lt;/stdout&gt;&lt;stderr&gt;error: %post(scx-1.0.4-248.i386) scriptlet failed, exit status 1

&lt;/stderr&gt;&lt;returnCode&gt;1&lt;/returnCode&gt;

&lt;DataItem type=&quot;Microsoft.SSH.SSHCommandData&quot; time=&quot;2009-08-05T11:15:01.5800358-04:00&quot; sourceHealthServiceId=&quot;0EB1D6DA-202C-7FC5-3D46-BDBB9208547D&quot;&gt;&lt;SSHCommandData&gt;&lt;stdout&gt;Generating certificate with hostname=&quot;COMPUTERNAME&quot;

[/home/serviceb/TfsCoreWrkSpcRedhat/source/code/tools/scx_ssl_config/scxsslcert.cpp:198]

Failed to allocate resource of type random data: Failed to get random data - not enough entropy

&lt;/stdout&gt;&lt;stderr&gt;error: %post(scx-1.0.4-248.i386) scriptlet failed, exit status 1

&lt;/stderr&gt;&lt;returnCode&gt;1&lt;/returnCode&gt;&lt;/SSHCommandData&gt;&lt;/DataItem&gt;
</pre>
<p>But first, a little background on the actual “problem”. To generate the certificate, the <em>entropy</em> needs to be high enough to generate random data for the certificate creation. Without the certificate, the OpsMgr agent won’t be able to open up communications with the <acronym title="Management Server">MS</acronym>. So, what creates this entropy we need? Bluntly put, a selection of hardware components that are likely to produce non-predictable data. Like a keyboard, mouse and a monitor or videocard. Of course, there’s a lot more to it, but we really don’t need to know this. What <em>we</em> need to know is that there has to be a “bit bucket” of more than 256bytes of entropy for the certificate creation process to succeed. We also need to know that more enterprise-ish servers, like rack- or blade-servers tend to be void of things like directly attached keyboards, mouses and monitors that the linux kernel needs to be able to generate entropy. And herein lies the problem. If you have a new server that is not in full service (likely since we are trying to deploy the monitoring on it) which means that there’s not much random data flowing through the hardware and there’s no keyboard or mouse or monitor connected to it there is quite the risk that the system entropy is going to be very low. Of the linux systems that I have been deploying OpsMgr agents to, about half have failed because of “Not enough entropy”. So, here’s the steps I usually takes to ensure that discovery works. I use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY</a> to connect to the soon-to-be-monitored servers. This guide also assumes that you have SU rights on the system since all of these steps (except #1) needs it.</p>
<ol>
<li>Check you current entropy
<pre class="brush: plain; title: ; notranslate">cat /proc/sys/kernel/random/entropy_avail</pre>
<p>Is it less than, or close to, 256? It probably is. If you don’t feel like connecting a mouse and start wiggling it around—not really feasible in a data center—and see if the entropy increases, you can generate your own random data.</li>
<li>Generate you own random data.<br />
Be advised that this forced entropy will not be as random as the system-created on and thus not as secure. How much more insecure it is, I don’t know, and quite frankly I prefer to have my systems monitored yet slightly less secure than not monitored at all. Anyway, you can force your own random data by running:</p>
<pre class="brush: plain; title: ; notranslate">dd if=/dev/urandom of=~/.rnd bs=1 count=1024</pre>
<p>This creates a .rnd file with 1024B of random data that the certificate creation process will use instead of the system entropy if the file exists.</li>
<li>Uninstall and re-discover<br />
The first failed attempt of discovery will most likely leave a non-working agent installation that we have to remove. Otherwise we will just be stuck with an “Access Denied” error. Run:</p>
<pre class="brush: plain; title: ; notranslate">rpm –e scx</pre>
<p>Now, try to discover the system again.</li>
<li>Failed again?<br />
Try generating the certificate manually by running:</p>
<pre class="brush: plain; title: ; notranslate">/opt/microsoft/scx/bin/tools/scxsslconfig -f –v
/opt/microsoft/scx/bin/tools/scxadmin –restart</pre>
<p>Retry discovery again.</li>
<li>Still fails?<br />
Uninstall the agent once more as instructed in step 3.</li>
</ol>
<p>Stese steps have solved my problems 100% on both SUSE and RedHat and hopefully they will help you too.</p>
<p>Interestingely enough, these problems seems to be connected to some changes in the 2.6 kernel and basically everything that uses SSL-ish certificates will be affected. Even though the symptoms may be a bit more subtle, like time-outs and disconnects. For “headless” servers like those I usually to administer where the random data tend to be much lower, there’s even specialised hardware whose sole purpose is to generate random data, like the <a href="http://www.entropykey.co.uk/">Entropy Key</a>. I have also been told that new servers is likely to be equipped with entropy chipsets to make sure that there’s chaos enough to avoid these new-found oddities.</p>
<blockquote><p>Sources:<br />
<a title="http://social.technet.microsoft.com/Forums/en-US/crossplatformsles/thread/f94ec905-23ac-4444-b9f8-644fec3ae357" href="http://social.technet.microsoft.com/Forums/en-US/crossplatformsles/thread/f94ec905-23ac-4444-b9f8-644fec3ae357">http://social.technet.microsoft.com/Forums/en-US/crossplatformsles/thread/f94ec905-23ac-4444-b9f8-644fec3ae357</a></p>
<p><a title="http://www.askrenzo.com/oracle/SCOM/SCOM_discovering_nodes.html" href="http://www.askrenzo.com/oracle/SCOM/SCOM_discovering_nodes.html">http://www.askrenzo.com/oracle/SCOM/SCOM_discovering_nodes.html<br />
</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/linux/sles/linux-discovery-not-enough-entropy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Microsoft Adds support for SUSE 11 in OpsMgr R2</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/microsoft-adds-support-for-suse-11-in-opsmgr-r2/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/microsoft-adds-support-for-suse-11-in-opsmgr-r2/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 06:59:10 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Management Pack]]></category>
		<category><![CDATA[OpsMgr]]></category>
		<category><![CDATA[SUSE 11]]></category>
		<category><![CDATA[X-Plat]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/ms/opsmgr2007/microsoft-adds-support-for-suse-11-in-opsmgr-r2/</guid>
		<description><![CDATA[This update hasn’t showed up in the MP Catalog yet, but the System Center Operations Manager 2007 R2 Cross Platform Update can be downloaded here. Besides SUSE 11 support, here’s the short overview. The System Center Operations Manager 2007 R2 Cross Platform Update adds fixes for a defunct process issue on Unix/Linux Servers, as well [...]]]></description>
			<content:encoded><![CDATA[<p>This update hasn’t showed up in the <acronym title="Management Pack">MP</acronym> Catalog yet, but the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4a41a8be-0a37-4bd2-b5b1-026468b317fb">System Center Operations Manager 2007 R2 Cross Platform Update can be downloaded here</a>.</p>
<p>Besides SUSE 11 support, here’s the short overview.</p>
<blockquote><p>The System Center Operations Manager 2007 R2 Cross Platform Update adds fixes for a defunct process issue on Unix/Linux Servers, as well as, adds support for SUSE Linux Enterprise Server 11 (both 32-bit and 64-bit versions) and Solaris Zone support.      <br /><b>Feature Summary:</b>       <br />The System Center Operations Manager 2007 R2 Cross Platform Update supports the monitoring of Unix/Linux Servers including: </p>
<ul>
<li>Monitoring of SUSE Linux Enterprise Server 11 servers (both 32-bit and 64-bit versions) </li>
<li>Support of Solaris Zones </li>
<li>Fix for defunct Process issue </li>
<li>The Cross Platform Agent may not discover soft partitions on Solaris systems. Therefore, the disk provider may be unloaded, and the Cross Platform Agent may stop collecting information from the system disks. </li>
<li>The Cross Platform Agent may not restart after the AIX server reboots. </li>
</ul>
<p>The latest versions of all the Operations Manager 2007 R2 Unix/Linux agents are included in this update.</p>
</blockquote>
<p>Perfect timing, I must say, since I really need this today. <img src='http://www.teknoglot.se/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><em><strong>Update:</strong></em>    <br />This is no small MP-update, which probably is the reason that we do not find it in the MP Catalog, but a ~250MB OpsMgr R2 Software Update. You need to run this on all Operations Manager Servers (RMS/MS, GW?) since it actually updates many of the agent Cross Platform binaries. It does add a new MP för SUSE 11 that you have to import from disk if you need it.</p>
<p>So, the installation goes somewhat like this:</p>
<ol>
<li>Install the Software Update (pick the right Architecture) on all OpsMgr R2 Servers</li>
<li>Import the SUSE 11 MP if necessary</li>
<li>Re-discover your Unix/Linux machines.</li>
</ol>
<p>Files updated in this update for R2:</p>
<ul>
<li>.Microsoft.Enterprisemanagement.UI.Administration.dll (Version 6.1.7043.1)</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.aix.5.ppc.lpp.gz</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.aix.6.ppc.lpp.gz</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.hpux.11iv2.ia64.depot.Z</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.hpux.11iv2.parisc.depot.Z</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.hpux.11iv3.ia64.depot.Z</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.hpux.11iv3.parisc.depot.Z</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.rhel.4.x64.rpm</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.rhel.4.x86.rpm</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.rhel.5.x64.rpm</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.rhel.5.x86.rpm</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.sles.10.x64.rpm</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.sles.10.x86.rpm</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.sles.9.x86.rpm</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.solaris.10.sparc.pkg.Z</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.solaris.10.x86.pkg.Z</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.solaris.8.sparc.pkg.Z</li>
<li>.AgentManagementUnixAgentsscx-1.0.4-248.solaris.9.sparc.pkg.Z</li>
</ul>
<p>Files added:</p>
<ul>
<li>Microsoft.Linux.SLES.11.MP</li>
</ul>
<p>All in all, the update contains the following fixes:</p>
<ul>
<li>KB969342</li>
<li>KB973583</li>
<li>Q954049</li>
<li>Q956240</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/microsoft-adds-support-for-suse-11-in-opsmgr-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

