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

<channel>
	<title>Pario TechnoBlob &#187; Misc</title>
	<atom:link href="http://pario.no/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Howto combine two columns into one in mysql</title>
		<link>http://pario.no/2009/09/06/howto-combine-two-columns-into-one-in-mysql/</link>
		<comments>http://pario.no/2009/09/06/howto-combine-two-columns-into-one-in-mysql/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 21:10:37 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1195</guid>
		<description><![CDATA[This is how you can combine (or concatenate or merge) data from two table columns into one column using a mysql SQL query. SELECT CONCAT(firstname,lastname) AS 'name' FROM tablename The result would be &#8220;firstname lastname&#8221; If you would like to insert this data into a new column INSERT INTO tablename (full_name) SELECT CONCAT(firstname,lastname) AS 'name' [...]]]></description>
			<content:encoded><![CDATA[<p>This is how you can combine (or concatenate or merge) data from two table columns into one column using a mysql SQL query.</p>
<pre>
SELECT CONCAT(firstname,lastname) AS 'name' FROM tablename</pre>
<p>The result would be &#8220;firstname lastname&#8221;</p>
<p>If you would like to insert this data into a new column</p>
<pre>
INSERT INTO tablename (full_name) SELECT CONCAT(firstname,lastname) AS 'name' FROM tablename</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMDkvMDYvaG93dG8tY29tYmluZS10d28tY29sdW1ucy1pbnRvLW9uZS1pbi1teXNxbC88d3B0Yj5Ib3d0byBjb21iaW5lIHR3byBjb2x1bW5zIGludG8gb25lIGluIG15c3FsPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/09/06/howto-combine-two-columns-into-one-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting VMware vSphere Client to run on Windows 7 RTM</title>
		<link>http://pario.no/2009/08/14/getting-vmware-vsphere-client-to-run-on-windows-7-rtm/</link>
		<comments>http://pario.no/2009/08/14/getting-vmware-vsphere-client-to-run-on-windows-7-rtm/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 08:57:47 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere Client]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1172</guid>
		<description><![CDATA[This post describes how you can get your VMware vSphere Client version 4 running on a 32-bit Windows 7 (RTM) installation until VMware makes an update to fix this Microsoft .Net problem. Be aware that this method of getting the client to run is not recommended in a production environment since you are running the [...]]]></description>
			<content:encoded><![CDATA[<p>This post describes how you can get your VMware vSphere Client version 4 running on a 32-bit Windows 7 (RTM) installation until VMware makes an update to fix this Microsoft .Net problem. Be aware that this method of getting the client to run is not recommended in a production environment since you are running the client in development mode.</p>
<p>First you need to edit the <strong>VpxClient.exe.config</strong> file located in your <strong>C:\Program Files\Vmware\Infrastructure\Virtual Infrastructure Client\Launcher</strong> folder and make it look like the code below</p>
<pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;configuration&gt;
&lt;system.net&gt;
&lt;connectionManagement&gt;
&lt;clear/&gt;
&lt;add address="*" maxconnection="8" /&gt;
&lt;/connectionManagement&gt;
&lt;/system.net&gt;
&lt;appSettings&gt;
&lt;add key = "protocolports" value = "https:443"/&gt;
&lt;/appSettings&gt;
&lt;runtime&gt;
&lt;developmentMode developerInstallation="true"/&gt;
&lt;/runtime&gt;
&lt;/configuration&gt;</pre>
<p>Next we have to ensure that you we the .Net <strong>system.dll</strong> from a non Windows 7 machine.</p>
<p>It&#8217;s possible to <a href="/wp-content/uploads/2009/08/v4on7.zip">download the config file and the DLL filer from here</a>.</p>
<p>Place the modified config file in your <strong>C:\Program Files\Vmware\Infrastructure\Virtual Infrastructure Client\Launcher</strong> folder.</p>
<p>Then we create a new folder called <strong>Lib</strong> in the folder noted above and place the downloaded DLL file in the folder.</p>
<p style="text-align: center;"><img class="size-full wp-image-1183 aligncenter" title="windows-7-environment-settings" src="http://pario.no/wp-content/uploads/2009/08/windows-7-environment-settings.png" alt="windows-7-environment-settings" width="421" height="470" /><br />
<img class="size-full wp-image-1184 aligncenter" title="windows-7-environment-settings-2" src="http://pario.no/wp-content/uploads/2009/08/windows-7-environment-settings-2.png" alt="windows-7-environment-settings-2" width="385" height="432" />Reboot your PC and VMware vSphere Client should now work without any error messages.</p>
<p>Edit your system properties and create a new &#8216;Environment Variable&#8221; Name it &#8220;Devpath&#8221; with the value of <strong>C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib</strong>. You can locate these variables under Control Panel &#8211;&gt; System and Security &#8211;&gt; System &#8211;&gt; Advanced system settings</p>
<p>This post came to life after reading <a href="http://communities.vmware.com/thread/211440;jsessionid=9070EDBB25EBB10DF749FBD17999DC82?start=0&amp;tstart=0">this thread on the VMware Communties discussion forum</a>. The thread also describes how to make VMware vSphere Client to work on 64-bit Windows 7 but I&#8217;m not going to describe that in this post.</p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/communities.vmware.com\/thread\/211440;jsessionid=9070EDBB25EBB10DF749FBD17999DC82?start=0&amp;tstart=0"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMDgvMTQvZ2V0dGluZy12bXdhcmUtdnNwaGVyZS1jbGllbnQtdG8tcnVuLW9uLXdpbmRvd3MtNy1ydG0vPHdwdGI%2BR2V0dGluZyBWTXdhcmUgdlNwaGVyZSBDbGllbnQgdG8gcnVuIG9uIFdpbmRvd3MgNyBSVE08d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/08/14/getting-vmware-vsphere-client-to-run-on-windows-7-rtm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suspend a VMware Workstation host from command line</title>
		<link>http://pario.no/2009/08/07/suspend-a-vmware-workstation-host-from-command-line/</link>
		<comments>http://pario.no/2009/08/07/suspend-a-vmware-workstation-host-from-command-line/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 15:02:52 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vmrun]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMware Workstation]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1164</guid>
		<description><![CDATA[This post gives a short description of how to suspend a VMware Workstation 6.5.x host on a Ubuntu 9.04 Workstation but it shouldn&#8217;t be any problem to follow it on other linux distributions. Lately I&#8217;ve experienced that one of my VMware hosts lock up and my mouse cursor stops responding. The keyboard doesn&#8217;t let me [...]]]></description>
			<content:encoded><![CDATA[<p>This post gives a short description of how to suspend a VMware Workstation 6.5.x host on a Ubuntu 9.04 Workstation but it shouldn&#8217;t be any problem to follow it on other linux distributions. Lately I&#8217;ve experienced that one of my VMware hosts lock up and my mouse cursor stops responding. The keyboard doesn&#8217;t let me switch applications (Alt+Tab) because the Tab-key doesn&#8217;t respond. The solution to my problem was to suspend the virtual machine from the console.</p>
<ol>
<li>First you have to switch to a console by pressing Ctrl+Alt+F1 &#8211; This lets you login to a console.</li>
<li>Suspend the virtual machine by issuing the following command from the console
<pre>
# vmrun suspend /path/to/the/vmx-file/vmxfile.vmx</pre>
</li>
</ol>
<p>Switch back to your graphical desktop by pressing Ctrl+Alt+F7. You will now see that the suspend indicator is hard at work suspending the virtual machine that is causing problems. When the host has been suspended you can shutdown VMware Workstation as you normally do.</p>
<p>To make sure that VMware haven&#8217;t got any processes that are defunct stop and start the VMware daemon. </p>
<p><strong>Note:</strong><br />
Remember to shut down or suspend all virtual machines before issuing the following commands from the console to avoid losing data</p>
<p>Stopping the VMware daemon</p>
<pre>
# /etc/init.d/vmware stop

Stopping VMware services:
   Virtual machine communication interface                             done
   Virtual machine monitor                                             done
   Blocking file system                                                done</pre>
<p>Starting the VMware daemon</p>
<pre>
# /etc/init.d/vmware start

Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   Blocking file system                                                done
   Virtual ethernet                                                    done
   Shared Memory Available                                             done
</pre>
<p>Start VMware as you normally do and resume the host. The host should now work without any problems.</p>
<p>The vmrun command gives you other options as well like list, start, stop, reset and upgradevm, but I won&#8217;t describe the use of these in this post.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMDgvMDcvc3VzcGVuZC1hLXZtd2FyZS13b3Jrc3RhdGlvbi1ob3N0LWZyb20tY29tbWFuZC1saW5lLzx3cHRiPlN1c3BlbmQgYSBWTXdhcmUgV29ya3N0YXRpb24gaG9zdCBmcm9tIGNvbW1hbmQgbGluZTx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/08/07/suspend-a-vmware-workstation-host-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace RPMforge packages with Redhats own on a RHEL5 system</title>
		<link>http://pario.no/2009/05/25/replace-rpmforge-packages-with-redhats-own-on-a-rhel5-system/</link>
		<comments>http://pario.no/2009/05/25/replace-rpmforge-packages-with-redhats-own-on-a-rhel5-system/#comments</comments>
		<pubDate>Mon, 25 May 2009 09:19:30 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[RHEL4]]></category>
		<category><![CDATA[rhel5]]></category>
		<category><![CDATA[rpmforge]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1096</guid>
		<description><![CDATA[This post came to life after experiencing some upgrade problems with missing dependencies and RPM packages from RPMforge and Redhat Enterprise Linux Client release 5. The prosess to remove or replace the packages was to remove RPMforge as a package repository and replace the blocking packages with Redhats own packages. The process of replacing RPMforge [...]]]></description>
			<content:encoded><![CDATA[<p>This post came to life after experiencing some upgrade problems with missing dependencies and RPM packages from RPMforge and Redhat Enterprise Linux Client release 5. The prosess to remove or replace the packages was to remove RPMforge as a package repository and replace the blocking packages with Redhats own packages.</p>
<p><strong>The process of replacing RPMforge packages with Redhats own packages</strong><br />
First we remove rpmforge as package repository</p>
<pre>
rpm -e rpmforge</pre>
<p>This command removes the <strong>/etc/yum.repos.d/rpmforge.repo</strong> file.</p>
<p>Then we list all packages installed from the RPMforge repository to get an overview of the packages causing problems on the system.</p>
<pre>
rpm -qa --queryformat %{NAME}-%{VERSION}-%{ARCH}-%{RELEASE}\\n|sort|grep el5.rf</pre>
<p>The result</p>
<pre>
dnsmasq-2.47-x86_64-1.el5.rf
libsndfile-1.0.17-x86_64-1.el5.rf
lftp-3.7.12-x86_64-1.el5.rf
...</pre>
<p>The <strong>rf</strong> ending tells you that these packages are RPMforge packages. This command also tells you if it is 32bit (i386) or 64bit  (x86_64) packages. I&#8217;ve described the prosess of removing 32- and 64bits packages in a earlier post named <a href"=http://pario.no/2007/11/23/remove-duplicate-packages-when-querying-the-rpm-database/">Remove duplicate packages when querying the rpm database</a>.</p>
<p>Howto remove 64bit packages</p>
<pre>
yum remove libsndfile.x86_64</pre>
<p>Next we will download the packages we want to replace, in my case dnsmasq</p>
<p><strong>On a RHEL5 system</strong></p>
<pre>
yumdownloader dnsmasq</pre>
<p>If you don&#8217;t have yumdownloader in your system you have to install the <strong>yum-utils</strong> package.</p>
<p><strong>On a RHEL4 system</strong></p>
<pre>
up2date -d dnsmasq</pre>
<p>Then we replace the RPMforge RPM package with Redhats own package</p>
<pre>
# rpm -Uvh --replacepkgs --oldpackage dnsmasq-2.45-1.el5_2.1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:dnsmasq                ########################################### [100%]</pre>
<p>If you don&#8217;t use the <strong>&#8211;oldpackage</strong> option you might get an error message like this</p>
<pre>
package dnsmasq-2.47-1.el5.rf.x86_64 (which is newer than dnsmasq-2.45-1.el5_2.1.x86_64) is already installed</pre>
<p>I continued removing RPMForge packages until yum managed to resolve any unresolved dependencies.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMDUvMjUvcmVwbGFjZS1ycG1mb3JnZS1wYWNrYWdlcy13aXRoLXJlZGhhdHMtb3duLW9uLWEtcmhlbDUtc3lzdGVtLzx3cHRiPlJlcGxhY2UgUlBNZm9yZ2UgcGFja2FnZXMgd2l0aCBSZWRoYXRzIG93biBvbiBhIFJIRUw1IHN5c3RlbTx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/05/25/replace-rpmforge-packages-with-redhats-own-on-a-rhel5-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Windows Print Accounting using Event Viewer data</title>
		<link>http://pario.no/2009/05/15/simple-windows-print-accounting-using-event-viewer-data/</link>
		<comments>http://pario.no/2009/05/15/simple-windows-print-accounting-using-event-viewer-data/#comments</comments>
		<pubDate>Fri, 15 May 2009 06:40:35 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[Event Properties]]></category>
		<category><![CDATA[Event Viewer]]></category>
		<category><![CDATA[eventquery.vbs]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1034</guid>
		<description><![CDATA[This post continues where my previous post titled Export events including Event Properties from Windows Event Viewer left off. The data I&#8217;m going to work with was exported using eventquery.vbs and saved in a CSV-file, comma separated file and it is presented in the form shown below. "Information","10","12.05.2009 13:24:48","Print","Servername","None","AD\username","Document 232, filename.pdf owned by username was [...]]]></description>
			<content:encoded><![CDATA[<p>This post continues where my previous post titled <a href="http://pario.no/2009/05/13/exporting-events-including-event-properties-from-windows-event-viewer/">Export events including Event Properties from Windows Event Viewer</a> left off.</p>
<p>The data I&#8217;m going to work with was exported using <strong>eventquery.vbs</strong> and saved in a CSV-file, comma separated file and it is presented in the form shown below.</p>
<pre>
"Information","10","12.05.2009 13:24:48","Print","Servername","None","AD\username","Document 232, filename.pdf owned by username was printed on printername via port IP_192.168.0.254. Size in bytes: 279232; pages printed: 18"</pre>
<p>I&#8217;m interested in the username, date/time printed and pages printed and will now show how I&#8217;ve accomplished that using some simple linux console commands.</p>
<pre>
awk -F, '{print $7 " " $3 " " $4 " " $NF}' Event_Viewer_System.csv | grep printername | awk '{print $1 "," $2 "," $3 "," $NF}' | sed 's/\"//g'|sort > PrintAccounting.csv</pre>
<p><strong>Result</strong></p>
<pre>
username,14.05.2009,12:58:41,18
username,15.05.2009,09:24:13,2
username,15.05.2009,09:25:00,37
username,15.05.2009,09:30:03,2
username,15.05.2009,09:30:29,2
...</pre>
<p>Where the fields contain username, date, time and the amount of printed pages.</p>
<p>A short description on whats being done</p>
<ul>
<li>print out column 7, 3, 4 and last column where the separator is a comma (,) from the file Event_Viewer_System.csv</li>
<li>filter out the printer you are interested in</li>
<li>filter out again the data we are interested in</li>
<li>remove quote sign (&#8220;) from the list</li>
<li>sort the list ny username</li>
<li>redirect the output to a file</li>
</ul>
<p>And that&#8217;s how you make a primitive print accounting system from data gathered in a Windows Server.<br />
This particular example has been testen on data from a Windows 2003 Server, but I think it can be performed on other versions of Windows as well.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMDUvMTUvc2ltcGxlLXdpbmRvd3MtcHJpbnQtYWNjb3VudGluZy11c2luZy1ldmVudC12aWV3ZXItZGF0YS88d3B0Yj5TaW1wbGUgV2luZG93cyBQcmludCBBY2NvdW50aW5nIHVzaW5nIEV2ZW50IFZpZXdlciBkYXRhPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/05/15/simple-windows-print-accounting-using-event-viewer-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

