<?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"
	>

<channel>
	<title>Note to Self:</title>
	<atom:link href="http://www.trusler.org/alex/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.trusler.org/alex</link>
	<description>My online notebook.</description>
	<pubDate>Fri, 09 Jul 2010 00:41:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Reset XP local GPOs</title>
		<link>http://www.trusler.org/alex/?p=16</link>
		<comments>http://www.trusler.org/alex/?p=16#comments</comments>
		<pubDate>Fri, 09 Jul 2010 00:39:40 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=16</guid>
		<description><![CDATA[1. secedit /configure /db reset /cfg &#8220;c:\windows\security\templates\setup security.inf&#8221; /overwrite
2. del c:\windows\system32\grouppolicy\machine\registry.pol
3. Reboot
]]></description>
			<content:encoded><![CDATA[<p>1. secedit /configure /db reset /cfg &#8220;c:\windows\security\templates\setup security.inf&#8221; /overwrite<br />
2. del c:\windows\system32\grouppolicy\machine\registry.pol<br />
3. Reboot</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=16</wfw:commentRss>
		</item>
		<item>
		<title>VMWare stuck tasks</title>
		<link>http://www.trusler.org/alex/?p=15</link>
		<comments>http://www.trusler.org/alex/?p=15#comments</comments>
		<pubDate>Mon, 23 Feb 2009 17:40:05 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=15</guid>
		<description><![CDATA[Sometimes I get a stuck or repeating task that prevent&#8217;s operations.  This seams to clear it up almost every time:

service mgmt-vmware restart

I&#8217;ve read that if that doesn&#8217;t work to try:

service vmware-vpxa restart

]]></description>
			<content:encoded><![CDATA[<p>Sometimes I get a stuck or repeating task that prevent&#8217;s operations.  This seams to clear it up almost every time:</p>
<blockquote>
<div><strong>service mgmt-vmware restart</strong></div>
</blockquote>
<div>I&#8217;ve read that if that doesn&#8217;t work to try:</div>
<blockquote>
<div><strong>service vmware-vpxa restart</strong></div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=15</wfw:commentRss>
		</item>
		<item>
		<title>Stopping a stuck VM from the command line:</title>
		<link>http://www.trusler.org/alex/?p=13</link>
		<comments>http://www.trusler.org/alex/?p=13#comments</comments>
		<pubDate>Wed, 12 Nov 2008 15:25:11 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=13</guid>
		<description><![CDATA[I don&#8217;t think servers should ever need to be rebooted.  I have a cluster set up with VMotion, but I just don&#8217;t like the idea that I need to reboot the server to stop one VM.  That&#8217;s why I got so frustrated when one of my VM&#8217;s got a repeating message saying the redo log [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t think servers should ever need to be rebooted.  I have a cluster set up with VMotion, but I just don&#8217;t like the idea that I need to reboot the server to stop one VM.  That&#8217;s why I got so frustrated when one of my VM&#8217;s got a repeating message saying the redo log was corrupt.  Every time I clicked OK, I got the same message.  Normally I would need to reboot the host and remove the redo logs.  Here is a better way I found on a blog:<br />
1. Log into your box and find the VM.<br />
#cat /proc/vmware/vm/*/names</p>
<p>2. Your VM will have a 4 digit number.  Then, find the ID to kill (replace 1111 with your number):<br />
# less /proc/vmware/vm/1111/cpu/status</p>
<p>3. Under &#8220;group&#8221; find the vm.2222. Then type this command to kill the machine:</p>
<p>/usr/lib/vmware/bin/vmkload_app -k 9 2222</p>
<p>=========</p>
<p>For ESX 4:</p>
<ol>
<li><span style="font-size: 10pt; font-family: Arial;"><span style="font-family: Arial; font-size: x-small;">List all running virtual machines to find the  vmxCartelID of the affected virtual machine with the command:
<p></span><span style="font-family: Courier New; font-size: x-small;"># /usr/lib/vmware/bin/vmdumper -l</span></span><span style="font-family: Courier New; font-size: x-small;"></p>
<p></span></li>
<li>
<div><span style="font-family: Arial; font-size: x-small;">Scroll through the list until you see  your virtual machine&#8217;s name. The output appears similar to:</p>
<p></span><span style="font-family: Courier New; font-size: x-small;">vmid=5151       pid=-1   cfgFile=&#8221;/vmfs/volumes/4a16a48a-d807aa7e-e674-001e4ffc52e9/mdineeen_test/vm_test.vmx&#8221;   uuid=&#8221;56 4d a6 db 0a e2 e5 3e-a9 2b 31 4b 69 29 15 19&#8243;   displayName=&#8221;vm_test&#8221;  vmxCartelID=####</p>
<p></span></div>
</li>
<li>
<div><span style="font-family: Arial; font-size: x-small;">Run the following command to shut the  virtual machine down with the vmxCartelID:</p>
<p><span style="font-family: Courier New;"># /usr/lib/vmware/bin/vmkload_app -k 9 ####</span></span></div>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=13</wfw:commentRss>
		</item>
		<item>
		<title>Rename extentions</title>
		<link>http://www.trusler.org/alex/?p=12</link>
		<comments>http://www.trusler.org/alex/?p=12#comments</comments>
		<pubDate>Fri, 31 Oct 2008 00:13:08 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=12</guid>
		<description><![CDATA[So we had this propriatary Java program that processed files targeted by an extention name.  When we upgraded another piece of the software, the case of the extention changed.  We could not get the source of the Java programs include files.  Temporarly we had to rename all of the files with upper case extentions.  Here [...]]]></description>
			<content:encoded><![CDATA[<p>So we had this propriatary Java program that processed files targeted by an extention name.  When we upgraded another piece of the software, the case of the extention changed.  We could not get the source of the Java programs include files.  Temporarly we had to rename all of the files with upper case extentions.  Here is what we came up with:</p>
<blockquote><p>For /F &#8220;tokens=1,2* delims=.&#8221; %%f In (&#8217;Dir /B *.pbs&#8217;) Do move &#8220;%%f.%%g&#8221; &#8220;%%f.PBS&#8221;</p></blockquote>
<p>This is a batch file.  For command line only, remeber to remove one % for each variable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=12</wfw:commentRss>
		</item>
		<item>
		<title>Microsoft licensing just went up, big time</title>
		<link>http://www.trusler.org/alex/?p=11</link>
		<comments>http://www.trusler.org/alex/?p=11#comments</comments>
		<pubDate>Sat, 20 Sep 2008 00:52:20 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=11</guid>
		<description><![CDATA[We at work wanted to clearify that we don&#8217;t in fact need client access license for our 700 users if we are running 3rd party software on a Windows box.  The answer is shocking.
To start with, lets look at the license agreement.
Client Access Licensing Requirements

 Every user or device that accesses or uses the Windows [...]]]></description>
			<content:encoded><![CDATA[<p>We at work wanted to clearify that we don&#8217;t in fact need client access license for our 700 users if we are running 3rd party software on a Windows box.  The answer is shocking.</p>
<p>To start with, lets look at the license agreement.<br />
Client Access Licensing Requirements</p>
<ul>
<li> Every user or device that accesses or uses the Windows Server 2008 server software requires the purchase of a Windows Server 2008 Client Access License (Windows Server CAL) except under the following circumstances:</li>
<li> If access to the instances of server software is only through the Internet without being authenticated or otherwise individually identified by the server software or through any other means</li>
<li> If access is to Windows Web Server 2008</li>
<li> If external users are accessing the instances of server software and you have acquired a Windows Server 2008 External Connector license for each server being accessed</li>
<li> For up to two devices or users to access your instances of the server software only to administer those instances</li>
</ul>
<p>My question was, &#8220;What constitutes server software?&#8221;  The answer I got is if you are connecting to the server, you are using Windows sockets.</p>
<p>A phone call to Microsoft confirmed this.</p>
<p>Common practice today is that if you run a service like Lotus Notes or Apache on a Windows machine, you pay for the Server OS and Lotus Notes client access licenses.  With this clarification from Microsoft, you also pay for Windows CALs.</p>
<p>This seems insane to me that Microsoft would take this posistion.  It makes Red Hat and Suse Linux support almost free in comparison.  Calls to the software business allience now will practically force companys to shell out hundreds of thousands to Microsoft, or convert to Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=11</wfw:commentRss>
		</item>
		<item>
		<title>Rename log file</title>
		<link>http://www.trusler.org/alex/?p=10</link>
		<comments>http://www.trusler.org/alex/?p=10#comments</comments>
		<pubDate>Mon, 11 Aug 2008 18:08:19 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=10</guid>
		<description><![CDATA[I needed to automate renaming log files because the size of the log file was slowing down the application.  Here is the resulting batch file.
@echo off
set CURRDATE=%TEMP%\currdate.tmp
date /t &#62; %CURRDATE%
set PARSEARG=&#8221;eol=; tokens=1,2,3,4* delims=/, &#8221;
for /f %PARSEARG% %%i in (%CURRDATE%) do set YYYYMMDD=%%l%%k%%j
ren file.log file_%YYYYMMDD%.log
]]></description>
			<content:encoded><![CDATA[<p>I needed to automate renaming log files because the size of the log file was slowing down the application.  Here is the resulting batch file.</p>
<blockquote><p>@echo off</p>
<p>set CURRDATE=%TEMP%\currdate.tmp</p>
<p>date /t &gt; %CURRDATE%</p>
<p>set PARSEARG=&#8221;eol=; tokens=1,2,3,4* delims=/, &#8221;<br />
for /f %PARSEARG% %%i in (%CURRDATE%) do set YYYYMMDD=%%l%%k%%j</p>
<p>ren file.log file_%YYYYMMDD%.log</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=10</wfw:commentRss>
		</item>
		<item>
		<title>Batch file for account creation</title>
		<link>http://www.trusler.org/alex/?p=9</link>
		<comments>http://www.trusler.org/alex/?p=9#comments</comments>
		<pubDate>Sat, 09 Aug 2008 16:58:19 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=9</guid>
		<description><![CDATA[A few years ago I automated account creation for an organization.  Here is one of the scripts I sill use today.
echo off
REM     Student extract processing script
REM
REM Finds the adds and deletes from the sasi export files
REM and saves them to adds.txt and dels.txt
REM
REM Alex trusler
REM
REM  Please verify the GnuWin32 [...]]]></description>
			<content:encoded><![CDATA[<p>A few years ago I automated account creation for an organization.  Here is one of the scripts I sill use today.</p>
<blockquote><p>echo off<br />
REM     Student extract processing script<br />
REM<br />
REM Finds the adds and deletes from the sasi export files<br />
REM and saves them to adds.txt and dels.txt<br />
REM<br />
REM Alex trusler<br />
REM<br />
REM  Please verify the GnuWin32 bin dir including CoreUtils,<br />
REM  DiffUtils, and Grep is in your path before executing script.<br />
REM  These tools are available at<br />
REM  gnuwin32.sourceforge.net<br />
REM  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>REM if %2 is NULL then display usage<br />
if exist %2 goto else<br />
echo &#8212;<br />
echo &#8212;<br />
echo usage: %0 [file1 old] [file2 new]<br />
echo &#8212;<br />
echo This script will save the output files<br />
echo in your WORKING directory so change your directory<br />
echo to your target directory.<br />
echo &#8212;<br />
echo Also, you can drag the batch file to the command window,<br />
echo Then type a [space], then drag the old Stufile, [space]<br />
echo then drage the new Stufile.  Saves a lot of typing.<br />
echo &#8212;<br />
echo Please verify the GnuWin32 bin dir including CoreUtils,<br />
echo DiffUtils, and Grep is in your path before executing script.<br />
echo These tools are available at<br />
echo gnuwin32.sourceforge.net<br />
pause</p>
<p>goto eof<br />
:else</p>
<p>REM  compair the file from the last import to the current file.<br />
sort %1 &gt; temps1<br />
sort %2 &gt; temps2<br />
diff &#8211;ignore-case temps1 temps2 &gt; tempdiff</p>
<p>REM format and save the output<br />
grep &#8220;&gt; &#8221; tempdiff | cut -b 3-100 &gt; adds.txt</p>
<p>REM Cut the first 16 lines to match only the site and stu ID.<br />
cut -b 1-16 temps1 &gt; temps3<br />
cut -b 1-16 temps2 &gt; temps4<br />
diff &#8211;ignore-case temps3 temps4 &gt; tempdiff</p>
<p>REM format and save the output<br />
grep &#8220;&lt; &#8221; tempdiff | cut -b 3-100 &gt; dels.txt</p>
<p>REM clean up our garbage<br />
del tempdiff<br />
del temps1<br />
del temps2<br />
del temps3<br />
del temps4</p>
<p>REM Tell the user the script has finished<br />
echo Files adds.txt and dels.txt saved.</p>
<p>:eof</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=9</wfw:commentRss>
		</item>
		<item>
		<title>Sub interfaces in Linux</title>
		<link>http://www.trusler.org/alex/?p=8</link>
		<comments>http://www.trusler.org/alex/?p=8#comments</comments>
		<pubDate>Tue, 15 Jul 2008 15:44:49 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=8</guid>
		<description><![CDATA[A friend at work showed me this:
You can add additional IP addresses to your interface.
edit /etc/sysconfig/network-scripts/ifcfg-eth0:1
My origonal nic is eth0, subinterface is eth0:1
DEVICE=eth0:1
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
HWADDR=00:15:58:73:d8:a9
Then bring up the new interface.
]]></description>
			<content:encoded><![CDATA[<p>A friend at work showed me this:</p>
<p>You can add additional IP addresses to your interface.</p>
<blockquote><p>edit /etc/sysconfig/network-scripts/ifcfg-eth0:1</p></blockquote>
<p>My origonal nic is eth0, subinterface is eth0:1</p>
<blockquote><p>DEVICE=eth0:1<br />
ONBOOT=yes<br />
BOOTPROTO=static<br />
IPADDR=192.168.1.2<br />
NETMASK=255.255.255.0<br />
BROADCAST=192.168.1.255<br />
NETWORK=192.168.1.0<br />
HWADDR=00:15:58:73:d8:a9</p></blockquote>
<p>Then bring up the new interface.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=8</wfw:commentRss>
		</item>
		<item>
		<title>Change MAC address</title>
		<link>http://www.trusler.org/alex/?p=7</link>
		<comments>http://www.trusler.org/alex/?p=7#comments</comments>
		<pubDate>Tue, 15 Jul 2008 15:33:56 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=7</guid>
		<description><![CDATA[A friend at work showed me this trick.  It&#8217;s usefull if you change network cards and need your old MAC address.
ifconfig eth0 hw ether 00:00:00:00:00:00
 
 
]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;"><span style="font-family: Courier New;">A friend at work showed me this trick.  It&#8217;s usefull if you change network cards and need your old MAC address.</span></span></p>
<blockquote><p><span style="font-weight: bold;"><span style="font-family: Courier New;">ifconfig eth0 hw ether 00:00:00:00:00:00</span></span></p></blockquote>
<p> </p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
		<item>
		<title>Netware 6.5 SP7 Dell fun</title>
		<link>http://www.trusler.org/alex/?p=6</link>
		<comments>http://www.trusler.org/alex/?p=6#comments</comments>
		<pubDate>Thu, 15 May 2008 23:40:13 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
		
		<category><![CDATA[NetWare]]></category>

		<guid isPermaLink="false">http://www.trusler.org/alex/?p=6</guid>
		<description><![CDATA[Great.
After updating to service pack 7 on a Dell PowerEdge 2650, the thing locks up a few times a day. I was able to get the Remote Access Card to work and found that it was halting on &#8220;Error: Critical Sectioning prevents requested FATFS operation.&#8221; It looks like a storage driver issue.
I checked back after [...]]]></description>
			<content:encoded><![CDATA[<p>Great.</p>
<p>After updating to service pack 7 on a Dell PowerEdge 2650, the thing locks up a few times a day. I was able to get the Remote Access Card to work and found that it was halting on &#8220;Error: Critical Sectioning prevents requested FATFS operation.&#8221; It looks like a storage driver issue.</p>
<p>I checked back after disabling the restart on abend option. It looks like rsync was abending and the server could not write to the abend log because it was a serious lock up. I wonder if indeed the storage driver and rsync are not playing well together.</p>
<p>After a few days, ZLS.NSS abended.</p>
<p>SCSI bios is 3.10</p>
<p>I ran a verify.  Every time it gets to a certain point, I get an abend.</p>
<p>-UPDATE-</p>
<p>The same thing happened on another Dell 2650.  It has to do with the older firmware on these devices.  Both servers where simply replaced.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trusler.org/alex/?feed=rss2&amp;p=6</wfw:commentRss>
		</item>
	</channel>
</rss>
