<?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>wehuberconsultingllc.com &#187; IIS</title>
	<atom:link href="http://wehuberconsultingllc.com/wordpress/category/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://wehuberconsultingllc.com/wordpress</link>
	<description></description>
	<lastBuildDate>Fri, 28 Oct 2011 16:15:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Problems upgrading Awstats from 6.9 to 7.0</title>
		<link>http://wehuberconsultingllc.com/wordpress/2011/04/07/problems-upgrading-awstats-from-6-9-to-7-0/</link>
		<comments>http://wehuberconsultingllc.com/wordpress/2011/04/07/problems-upgrading-awstats-from-6-9-to-7-0/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 21:02:16 +0000</pubDate>
		<dc:creator>Bill</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://wehuberconsultingllc.com/wordpress/2011/04/07/problems-upgrading-awstats-from-6-9-to-7-0/</guid>
		<description><![CDATA[I have a working configuration for Advanced Web Statistics 6.9 (build 1.919).&#160; When I upgraded to the latest release (Advanced Web Statistics 7.0 (build 1.971), it did not work. I ran into this problem in 2009 and backed off.&#160; Now it is time to commit some brain power to fixing the problem. Problem When I [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I have a working configuration for <b>A</b><b>dvanced Web Statistics 6.9 (build 1.919).</b>&#160; When I upgraded to the latest release <b>(</b><b>Advanced Web Statistics 7.0 (build 1.971)</b>, it did not work. I ran into this problem in 2009 and backed off.&#160; Now it is time to commit some brain power to fixing the problem.</p>
<h5>Problem</h5>
<p>When I tried to process a log file no statistical data was being collected. No error messages were generated even though many new records were processed. The data file remained very small.</p>
<h5>Analysis</h5>
<p>I set up a test environment in which I could process the data with the new version and debugging turned on. To turn debugging on I changed DebugMessages from 0 to 1 in the configuration file and added &quot;-debug=10&quot; parameter to awstats.pl command used to process the log file. This gave me all of the debug messages printed to the screen. I started processing a log file and interrupted it after it had processed a few lines by hitting Ctrl-C. In the debug output I could see that 7.0 version was having problems with the log format. Some values were parsed correctly and others looked like they were offset by one variable. In my configuration I was using a custom logformat which used a combination of IIS column names and AWSTATS keywords. I don&#8217;t remember how I created it but I suspect I found an example on the Internet. It worked for the last two years but now it seemed to have a problem with cs-username(%logname). </p>
<h5>Solution</h5>
<p>My solution was to convert the IIS column names to the corresponding AWSTATS keywords. Even after using the AWSTATS keywords it was still not parsing correctly. To get the parsing to work correctly, I had to change %logname to %other. In my log files, the value for cs-username(%logname) is a single dash.&#160;&#160; Obviously it is not important or necessary. When I look at the code, line 9027, I see a comment that says the regular expression code allows spaces to support Lotus Notes. As a result it puts two fields into one variable. Naturally the parsing for %other works correctly. After I knew what the problem and answer was, I could find the answer on the Internet. Here is someone else who experienced the same problem, <a title="http://www.internetofficer.com/forum/awstats-iis-installation-and-configuration/awstats-wont-recognize-logname-cs-username-field/" href="http://www.internetofficer.com/forum/awstats-iis-installation-and-configuration/awstats-wont-recognize-logname-cs-username-field/">http://www.internetofficer.com/forum/awstats-iis-installation-and-configuration/awstats-wont-recognize-logname-cs-username-field/</a>. It sure would have been nice if Awstats re-mapped cs-username to %other rather than %logname.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wehuberconsultingllc.com/wordpress/2011/04/07/problems-upgrading-awstats-from-6-9-to-7-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding IP Restrictions to IIS 6</title>
		<link>http://wehuberconsultingllc.com/wordpress/2010/07/25/adding-ip-restrictions-to-iis-6/</link>
		<comments>http://wehuberconsultingllc.com/wordpress/2010/07/25/adding-ip-restrictions-to-iis-6/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 14:04:33 +0000</pubDate>
		<dc:creator>Bill</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[SBS2K-SBS2K3]]></category>

		<guid isPermaLink="false">http://wehuberconsultingllc.com/wordpress/?p=827</guid>
		<description><![CDATA[A big thanks goes out to the obligatorymoniker and his script for programmatically adding IP restrictions to IIS6. I was looking for a better script to add IP restrictions. My previous script added the restrictions one IP range at a time. This script was adequate for a small number of IP restrictions but recently I was asked to add IP restrictions for every country we do not ship to. We had credit card fraud transaction from one of these countries and the boss was mad. After using Perl and a CIDR to merge the adjacent networks,  I still had over 18,000 IP ranges to deny. Using my old script I tried to add these IP ranges to our test system this took over an hour to load. Your script loads the ranges in a couple of seconds.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>A big thanks goes out to the <a title="Link to obligatorymoniker article" href="http://obligatorymoniker.wordpress.com/2009/06/03/technique-to-change-any-iis-6-properties-programatically/">obligatorymoniker</a> and his script for programmatically adding IP restrictions to IIS6. I was looking for a better script to add IP restrictions. My previous script added the restrictions one IP range at a time. This script was adequate for a small number of IP restrictions but recently I was asked to add IP restrictions for every country we do not ship to. We had credit card fraud transaction from one of these countries and the boss was mad. After using Perl and a CIDR to merge the adjacent networks, I still had over 18,000 IP ranges to deny. Using my old script I tried to add these IP ranges to our test system this took over an hour to load. Your script loads the ranges in a couple of seconds. Here is how I did this:</p>
<ol>
<li>I went to <a title="http://www.countryipblocks.net/" href="http://www.countryipblocks.net/">http://www.countryipblocks.net/</a> to get the IP ranges I wanted to block. Beware these ranges include bogon networks(e.g. 192.168.0.0). The first time I applied the IP ranges I blocked myself out. </li>
<li>I used the perl script below to merge the networks. </li>
<li>I used the obligatorymoniker IP Security.vbs script to load the ranges. You will have to change the <code>&quot;IIS://localhost/smtpsvc/1&quot;</code> to the site you want to add the IP restrictions to.</li>
</ol>
<pre class="brush: perl; title: ; notranslate">
use Net::CIDR::Lite;
use NetAddr::IP::Lite;
my $cidr = Net::CIDR::Lite-&gt;new;
# Disallow IPs

open (IPDISALLOW, &quot;ip_disallow.txt&quot;) || die &quot;couldn't open the file!&quot;;

while ($record = &lt;IPDISALLOW&gt;) {
 if (substr($record,0,1) != '#'){
#print $record;
 $cidr-&gt;add($record);
 }
}

close(IPDISALLOW);
#print &quot;$_\n&quot; for $cidr-&gt;list;
foreach ($cidr-&gt;list) {
my $ip = new NetAddr::IP::Lite $_;
#print &quot;The address is &quot;, $ip-&gt;addr, &quot; with mask &quot;, $ip-&gt;mask, &quot;\n&quot; ;
print $ip-&gt;addr, &quot;,&quot;, $ip-&gt;mask,&quot;$_\n&quot;;
} </pre>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wehuberconsultingllc.com/wordpress/2010/07/25/adding-ip-restrictions-to-iis-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>w3wp.exe high cpu usage thread</title>
		<link>http://wehuberconsultingllc.com/wordpress/2010/02/27/w3wp-exe-high-cpu-usage-thread/</link>
		<comments>http://wehuberconsultingllc.com/wordpress/2010/02/27/w3wp-exe-high-cpu-usage-thread/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 22:04:58 +0000</pubDate>
		<dc:creator>Bill</dc:creator>
				<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://wehuberconsultingllc.com/wordpress/2010/02/27/w3wp-exe-high-cpu-usage-thread/</guid>
		<description><![CDATA[Yesterday I learned an important lesson about IIS logs. They do not show you all of the requests hitting your server! Evidently the log does not show canceled requests. Over the last couple of days I was receiving complaints about slow responses from our web site. By the time I would look at the CPU [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Yesterday I learned an important lesson about IIS logs. They do not show you all of the requests hitting your server! Evidently the log does not show canceled requests.</p>
<p>Over the last couple of days I was receiving complaints about slow responses from our web site. By the time I would look at the CPU utilization it would be within the normal range. I looked in the IIS log file for timeouts but could not find any. So I ran a two hour trace on Thursday afternoon. Friday morning I crunched the trace with <a title="Performance Analysis of Logs (PAL) Tool" href="http://www.codeplex.com/PAL">PAL</a> and discovered several unaccountable CPU peaks attributable to w3wp.exe. An Internet search for “w3wp.exe high cpu usage”&#160; led me to this <a href="http://forums.iis.net/p/1146821/1858761.aspx">thread</a> in which several people recommended using <a href="http://iispeek.com/">IISPeek</a> to find the misbehaving request. So I installed a trial version of IISPeek and started watching the transactions coming in. Pretty soon I saw something I was not expecting. A shopping site was coming to our site and trying to retrieve a&#160; product advertising feed. What was surprising was not that the shopping site was retrieving the feed but there was no log of it in the IIS log file.&#160;&#160; This request had been consuming our CPU for several minutes and then disappearing without a trace. I knew this query had some serious performance issues but the IIS log indicated that it had been working on previous days. I did not know it was running so often. With IISPeek and Task Manager running together I could see the impact on the site. Evidently this particular shopping site would time out or cancel the query before our site either returned the data or timed out.&#160; It was at this moment that I figured out that IIS must have a “no harm, no foul” policy about canceled queries. My reliance on the IIS log was a mistake in this case. Since this shopping site was not getting the data, the shopping site would try again at a later time. When I was watching it with IISPeek I was seeing this request about every fifteen minutes. Fortunately I had already developed some web page caching code I could implement quickly and get us over this hump. Within an hour the shopping site had its data and our web site was back to normal. I have solved a lot of web site problems by looking at the IIS log but in this case it was not the right tool for the job. On Monday I am buying a copy of IISPeek!</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wehuberconsultingllc.com/wordpress/2010/02/27/w3wp-exe-high-cpu-usage-thread/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top free tools for Windows server administration</title>
		<link>http://wehuberconsultingllc.com/wordpress/2009/04/09/top-free-tools-for-windows-server-administration/</link>
		<comments>http://wehuberconsultingllc.com/wordpress/2009/04/09/top-free-tools-for-windows-server-administration/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 19:07:42 +0000</pubDate>
		<dc:creator>Bill</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://wehuberconsultingllc.com/wordpress/2009/04/09/top-free-tools-for-windows-server-administration/</guid>
		<description><![CDATA[Every so often you find a tool you have never heard of.&#160; This week the tool that caught my attention was&#160; Performance Analysis of Logs (PAL). It was recommended by Bruce Mackenzie-Low in a newsletter from SearchWindowsServer.com and it looks it will be helpful with the “art” of performance analysis. I played with it a [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Every so often you find a tool you have never heard of.&#160; This week the tool that caught my attention was&#160; <a href="http://www.codeplex.com/PAL"><b>Performance Analysis of Logs (PAL)</b></a>. It was recommended by Bruce Mackenzie-Low in a <a href="http://searchwindowsserver.techtarget.com/news/article/0,289142,sid68_gci1352929,00.html?track=NL-468&amp;ad=698636&amp;asrc=EM_NLT_6517855&amp;uid=815442">newsletter</a> from SearchWindowsServer.com and it looks it will be helpful with the “art” of performance analysis. I played with it a little bit using the IIS and SQL templates. It seemed to provide some helpful insight into potential performance issues. My aim is to analyze our web server for IIS and database bottlenecks.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wehuberconsultingllc.com/wordpress/2009/04/09/top-free-tools-for-windows-server-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.357 seconds -->

