<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for sporticia</title>
	<atom:link href="http://www.sporticia.com/blog/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sporticia.com/blog</link>
	<description>stuff I know, stuff I discover, stuff I see.......just stuff really</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:21:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Make Nagios Web Interface Read-Only&#8230;.. by Stefan</title>
		<link>http://www.sporticia.com/blog/unix/make-nagios-web-interface-read-only/comment-page-1#comment-23372</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 01 Feb 2012 11:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=435#comment-23372</guid>
		<description>This is exaclty what I need and it works great!
many thanks!</description>
		<content:encoded><![CDATA[<p>This is exaclty what I need and it works great!<br />
many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Windows Error &#8220;The application failed to initialize properly (0xc0000135)&#8221; Solved&#8230;&#8230;. by salman</title>
		<link>http://www.sporticia.com/blog/microsoft/windows-error-the-application-failed-to-initialize-properly-0xc0000135-solved/comment-page-1#comment-22513</link>
		<dc:creator>salman</dc:creator>
		<pubDate>Tue, 17 Jan 2012 06:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=1295#comment-22513</guid>
		<description>Excellent its work for me</description>
		<content:encoded><![CDATA[<p>Excellent its work for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VMWare ESXi 4.1 CLI VM Does Not Start&#8230;&#8230;. by dga</title>
		<link>http://www.sporticia.com/blog/vmware/vmware-esxi-4-1-cli-vm-does-not-start/comment-page-1#comment-18800</link>
		<dc:creator>dga</dc:creator>
		<pubDate>Sat, 26 Nov 2011 23:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=1016#comment-18800</guid>
		<description>Thank you for this! My VM that has vsphere cli installed crashed and I needed to reboot the vm from the host (ESXi 5) remotely so your post was invaluable!

vim-cmd /vmsvc/power.reset (vm ID)

Also I omitted the first forward slash by accident at first and got stuck.</description>
		<content:encoded><![CDATA[<p>Thank you for this! My VM that has vsphere cli installed crashed and I needed to reboot the vm from the host (ESXi 5) remotely so your post was invaluable!</p>
<p>vim-cmd /vmsvc/power.reset (vm ID)</p>
<p>Also I omitted the first forward slash by accident at first and got stuck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hello James&#8230;&#8230;. by James McIntosh</title>
		<link>http://www.sporticia.com/blog/friends/hello-james/comment-page-1#comment-17979</link>
		<dc:creator>James McIntosh</dc:creator>
		<pubDate>Tue, 15 Nov 2011 12:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=1299#comment-17979</guid>
		<description>Hi Scott,

Just got round to reading this, love it!  keep well and see ya soon

Jx</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>Just got round to reading this, love it!  keep well and see ya soon</p>
<p>Jx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VMWare ESXi 4.1 CLI VM Does Not Start&#8230;&#8230;. by szilvasyz</title>
		<link>http://www.sporticia.com/blog/vmware/vmware-esxi-4-1-cli-vm-does-not-start/comment-page-1#comment-16694</link>
		<dc:creator>szilvasyz</dc:creator>
		<pubDate>Thu, 27 Oct 2011 11:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=1016#comment-16694</guid>
		<description>Sorry, parameters were cutted from commands because of the angle brackets...

List pending messgaes: vim-cmd vmsvc/message (VMID)

Answer a message: vim-cmd vmsvc/message (VMID) (MSGID) (ANSWERID)</description>
		<content:encoded><![CDATA[<p>Sorry, parameters were cutted from commands because of the angle brackets&#8230;</p>
<p>List pending messgaes: vim-cmd vmsvc/message (VMID)</p>
<p>Answer a message: vim-cmd vmsvc/message (VMID) (MSGID) (ANSWERID)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VMWare ESXi 4.1 CLI VM Does Not Start&#8230;&#8230;. by szilvasyz</title>
		<link>http://www.sporticia.com/blog/vmware/vmware-esxi-4-1-cli-vm-does-not-start/comment-page-1#comment-16692</link>
		<dc:creator>szilvasyz</dc:creator>
		<pubDate>Thu, 27 Oct 2011 11:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=1016#comment-16692</guid>
		<description>Today I run into the same situation. Searching the web I found, that you can query the actual questions related to a VM, and can also answer them from the command line. First, you must start your &quot;poweron&quot; command in background. After launching the poweron, you can monitor questions with &quot;vim-cmd vmsvc/message &quot; command, as well as you can &quot;answer&quot; a pending question with &quot;vim-cmd vmsvc/message   &quot;. This is a bit awkward way but works.</description>
		<content:encoded><![CDATA[<p>Today I run into the same situation. Searching the web I found, that you can query the actual questions related to a VM, and can also answer them from the command line. First, you must start your &#8220;poweron&#8221; command in background. After launching the poweron, you can monitor questions with &#8220;vim-cmd vmsvc/message &#8221; command, as well as you can &#8220;answer&#8221; a pending question with &#8220;vim-cmd vmsvc/message   &#8220;. This is a bit awkward way but works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Powershell Log File Zipper&#8230;&#8230;. by scottb</title>
		<link>http://www.sporticia.com/blog/microsoft/windows/powershell-log-file-zipper/comment-page-1#comment-15478</link>
		<dc:creator>scottb</dc:creator>
		<pubDate>Thu, 29 Sep 2011 11:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=784#comment-15478</guid>
		<description>Cool !! I left the company shortly after I put that script in, so I never got back round to revising it. Will have a play when I get some free time. Thanks ;op</description>
		<content:encoded><![CDATA[<p>Cool !! I left the company shortly after I put that script in, so I never got back round to revising it. Will have a play when I get some free time. Thanks ;op</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Powershell Log File Zipper&#8230;&#8230;. by Frank Gallagher</title>
		<link>http://www.sporticia.com/blog/microsoft/windows/powershell-log-file-zipper/comment-page-1#comment-15448</link>
		<dc:creator>Frank Gallagher</dc:creator>
		<pubDate>Wed, 28 Sep 2011 18:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=784#comment-15448</guid>
		<description>We modified the script sleep setting based on the information we found here at the URL below. It checks to make sure the the file is present in the zip before moving on to the next file. This change cut the runtime of the script in half for us.

&quot; http://superuser.com/questions/290461/powershell-zip-file-synchronously

In a nutshell, the idea behind this is testing the output zip archive to see if the file has been added.  If not, sleep for a second and try again.  If the filename does not occur in the archive, then we assume the zipping is still occurring.


This seems to work well.  Maybe to be even more “sure”  we can add one more second for cleanup to occur after the file has been added.&quot;

Our version of the script:

#declare functions here
 function new-zipfile {
 param ($zipfile)
 if (! $zipfile.endswith(‘.zip’)) {$zipfile += ‘.zip’}
set-content $zipfile (“PK” + [char]5 + [char]6 + (“$([char]0)” * 18))
 (dir $zipfile).IsReadOnly = $false
 }
 
#define variables here
#some strings and numbers we will need
$ShellApplication = New-Object -com Shell.Application

$thismonthint = get-date -f “MM”
$prevmonthint = (get-date).addmonths(-1).tostring(“MM”)
 
$thisyearlongint = get-date -f “yyyy”
 
$thislogdir = ‘E:\weblogs\W3SVC2\’
$thiszipfile = $thislogdir + $thisyearlongint + $prevmonthint + ‘.zip’
$zipexists = test-path $thiszipfile
 
#start program here
#first pass, check for .zip files of previous months. if exists exit. if not exist, create empty .zip file
 if (! $zipexists)
 {
 echo ‘zip file does not exist, creating zip file’
new-zipfile $thiszipfile
 }
 else
 {
 return
 }

# move all log files where the month number matches the month number of the .zip file
# Jan = 01, Feb = 02, Mar = 03 etc. etc.
foreach ($file in Get-ChildItem $thislogdir)
 {

# exclude the .zip files already in the directory (just in case we get a random month match in their filename)
 if (! $file.name.endswith(“.zip”))
 {

# if the
 if ($file.Name.substring(6,2) -match $prevmonthint)
 {
 $zipfile = $ShellApplication.NameSpace($thiszipfile)
 $zipfile.MoveHere($file.fullname)
while($zipfile.Items().Item($file.name) -Eq $null)
{
  start-sleep -seconds 1
}
}
}
}</description>
		<content:encoded><![CDATA[<p>We modified the script sleep setting based on the information we found here at the URL below. It checks to make sure the the file is present in the zip before moving on to the next file. This change cut the runtime of the script in half for us.</p>
<p>&#8221; <a href="http://superuser.com/questions/290461/powershell-zip-file-synchronously" rel="nofollow">http://superuser.com/questions/290461/powershell-zip-file-synchronously</a></p>
<p>In a nutshell, the idea behind this is testing the output zip archive to see if the file has been added.  If not, sleep for a second and try again.  If the filename does not occur in the archive, then we assume the zipping is still occurring.</p>
<p>This seems to work well.  Maybe to be even more “sure”  we can add one more second for cleanup to occur after the file has been added.&#8221;</p>
<p>Our version of the script:</p>
<p>#declare functions here<br />
 function new-zipfile {<br />
 param ($zipfile)<br />
 if (! $zipfile.endswith(‘.zip’)) {$zipfile += ‘.zip’}<br />
set-content $zipfile (“PK” + [char]5 + [char]6 + (“$([char]0)” * 18))<br />
 (dir $zipfile).IsReadOnly = $false<br />
 }</p>
<p>#define variables here<br />
#some strings and numbers we will need<br />
$ShellApplication = New-Object -com Shell.Application</p>
<p>$thismonthint = get-date -f “MM”<br />
$prevmonthint = (get-date).addmonths(-1).tostring(“MM”)</p>
<p>$thisyearlongint = get-date -f “yyyy”</p>
<p>$thislogdir = ‘E:\weblogs\W3SVC2\’<br />
$thiszipfile = $thislogdir + $thisyearlongint + $prevmonthint + ‘.zip’<br />
$zipexists = test-path $thiszipfile</p>
<p>#start program here<br />
#first pass, check for .zip files of previous months. if exists exit. if not exist, create empty .zip file<br />
 if (! $zipexists)<br />
 {<br />
 echo ‘zip file does not exist, creating zip file’<br />
new-zipfile $thiszipfile<br />
 }<br />
 else<br />
 {<br />
 return<br />
 }</p>
<p># move all log files where the month number matches the month number of the .zip file<br />
# Jan = 01, Feb = 02, Mar = 03 etc. etc.<br />
foreach ($file in Get-ChildItem $thislogdir)<br />
 {</p>
<p># exclude the .zip files already in the directory (just in case we get a random month match in their filename)<br />
 if (! $file.name.endswith(“.zip”))<br />
 {</p>
<p># if the<br />
 if ($file.Name.substring(6,2) -match $prevmonthint)<br />
 {<br />
 $zipfile = $ShellApplication.NameSpace($thiszipfile)<br />
 $zipfile.MoveHere($file.fullname)<br />
while($zipfile.Items().Item($file.name) -Eq $null)<br />
{<br />
  start-sleep -seconds 1<br />
}<br />
}<br />
}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Kaspersky NDIS 6 Filter Causes Network Loss&#8230;.. by Ann@ how to read palms</title>
		<link>http://www.sporticia.com/blog/microsoft/windows/vista-windows/kaspersky-ndis-6-filter-causes-network-loss/comment-page-1#comment-15368</link>
		<dc:creator>Ann@ how to read palms</dc:creator>
		<pubDate>Mon, 26 Sep 2011 15:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=287#comment-15368</guid>
		<description>Windows 7 and M$ Security Essentials is the pair that works best for me. Not to mention, it&#039;s 100 % free (apart from Windows 7 : ))</description>
		<content:encoded><![CDATA[<p>Windows 7 and M$ Security Essentials is the pair that works best for me. Not to mention, it&#8217;s 100 % free (apart from Windows 7 : ))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Companies. Make VPN Easy For Yourselves&#8230;&#8230;. by Making Passwords for An Easier Life&#8230;&#8230;. &#171; sporticia</title>
		<link>http://www.sporticia.com/blog/internet/companies-make-vpn-easy-for-yourselves/comment-page-1#comment-14186</link>
		<dc:creator>Making Passwords for An Easier Life&#8230;&#8230;. &#171; sporticia</dc:creator>
		<pubDate>Fri, 16 Sep 2011 10:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.sporticia.com/blog/?p=1090#comment-14186</guid>
		<description>[...] on the heals of Companies Make VPN Easy For Yourselves&#8230;&#8230;. comes another gem from the school of &#8216;kinda obvious if you think about it&#8217; [...]</description>
		<content:encoded><![CDATA[<p>[...] on the heals of Companies Make VPN Easy For Yourselves&#8230;&#8230;. comes another gem from the school of &#8216;kinda obvious if you think about it&#8217; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

