<?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>My Scripts and Tips</title>
	<atom:link href="http://www.tipsandscripts.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tipsandscripts.net</link>
	<description>Various things I've found useful in my travels</description>
	<lastBuildDate>Thu, 21 Jan 2010 08:35:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MRTG error: log file was corrupt or not in sorted order</title>
		<link>http://www.tipsandscripts.net/archives/72</link>
		<comments>http://www.tipsandscripts.net/archives/72#comments</comments>
		<pubDate>Thu, 21 Jan 2010 08:34:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MRTG]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=72</guid>
		<description><![CDATA[You create an MRTG config file to poll for CPU load on a device. When you run mrtg you get errors similar to that below:
Rateup ERROR: /usr/bin/rateup found server.cpu&#039;s log file was corrupt
or not in sorted order:
time: 1263993300.Rateup WARNING: /usr/bin/rateup The backup log file for server.cpu was invalid as well
WARNING: rateup died from Signal 0
with [...]]]></description>
			<content:encoded><![CDATA[<p>You create an MRTG config file to poll for CPU load on a device. When you run mrtg you get errors similar to that below:</p>
<p><pre><code>Rateup ERROR: /usr/bin/rateup found server.cpu&#039;s log file was corrupt
or not in sorted order:
time: 1263993300.Rateup WARNING: /usr/bin/rateup The backup log file for server.cpu was invalid as well
WARNING: rateup died from Signal 0
with Exit Value 1 when doing router &#039;server.cpu&#039;
Signal was 0, Returncode was 1</code></pre></p>
<p>This may be because you have only specified one MIB value. MRTG assumes there will be two values (e.g. Tx and Rx). You can get around this problem by specifying the same value twice. MRTG will then superimpose one on the other. For example:</p>
<p><code>Target[server.cpu]: .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1&amp;amp;.1.3.6.1.4.1.9.9.109.1.1.1.1.5.1:public@192.168.100.1:</code></p>
<p>For more information see <a href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch23_:_Advanced_MRTG_for_Linux" target="_blank">this link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One solution to &#8220;The network path was not found&#8221; Windows error</title>
		<link>http://www.tipsandscripts.net/archives/70</link>
		<comments>http://www.tipsandscripts.net/archives/70#comments</comments>
		<pubDate>Mon, 18 Jan 2010 08:30:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=70</guid>
		<description><![CDATA[I had an issue escalated to me where NetBIOS name resolution didn&#8217;t work on one particular machine. DNS was working &#8211; you could ping by hostname. However, you couldn&#8217;t connect to a remote share using hostnames (although connecting using IP addresses worked).
As a number of other people had already looked at this before me I [...]]]></description>
			<content:encoded><![CDATA[<p>I had an issue escalated to me where NetBIOS name resolution didn&#8217;t work on one particular machine. DNS was working &#8211; you could ping by hostname. However, you couldn&#8217;t connect to a remote share using hostnames (although connecting using IP addresses worked).</p>
<p>As a number of other people had already looked at this before me I assumed that the problem must be particularly fiendish and started Googling. I tried all the recommendations to reset Winsock using netsh etc. Nothing worked. I tried uninstalling anything that might be network related &#8211; that didn&#8217;t work either.</p>
<p>In the end I went back to the basics and found the problem. It seems that somewhere along the line the &#8220;TCP/IP NetBIOS Helper&#8221; service startup was set to Manual. I started the service and everything started working.</p>
<p>I have no idea how this service was changed from Automatic to Manual but it must have been some time ago as the user had been putting up with the problem for months.</p>
<p>So, if you get the above error and can ping the host by name I suggest you first make sure that the &#8220;TCP/IP NetBIOS Helper&#8221; service is running. After that try checking all the hard stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/70/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 and ATI &#8211; Screen does not wake from sleep after RDP</title>
		<link>http://www.tipsandscripts.net/archives/68</link>
		<comments>http://www.tipsandscripts.net/archives/68#comments</comments>
		<pubDate>Tue, 15 Dec 2009 03:04:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ATI]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=68</guid>
		<description><![CDATA[You might have the following problem with Windows 7 64 bit with ATI Radeon 2400 HD (default Windows drivers or latest drivers from ATI). If you RDP to the machine after Windows has put the screen to sleep you might find that when you later try to use the computer, there&#8217;s no signal being sent [...]]]></description>
			<content:encoded><![CDATA[<p>You might have the following problem with Windows 7 64 bit with ATI Radeon 2400 HD (default Windows drivers or latest drivers from ATI). If you RDP to the machine after Windows has put the screen to sleep you might find that when you later try to use the computer, there&#8217;s no signal being sent to the screen.</p>
<p>A work around is to change your power options within Windows Control Panel and set &#8220;Turn off the display:&#8221; to &#8220;Never&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/68/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DynDNS and Cisco 877 Router</title>
		<link>http://www.tipsandscripts.net/archives/56</link>
		<comments>http://www.tipsandscripts.net/archives/56#comments</comments>
		<pubDate>Sun, 06 Dec 2009 13:54:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=56</guid>
		<description><![CDATA[I had a couple of issues getting DynDNS working on a Cisco router. The first issue was: how do I type a question mark within an IOS configuration command? Normally, when you type ? IOS responds with its command help. This is obviously a problem when you&#8217;re trying to enter a URL that contains a [...]]]></description>
			<content:encoded><![CDATA[<p>I had a couple of issues getting <a href="http://www.dyndns.com/" target="_blank">DynDNS</a> working on a Cisco router. The first issue was: how do I type a question mark within an IOS configuration command? Normally, when you type ? IOS responds with its command help. This is obviously a problem when you&#8217;re trying to enter a URL that contains a question mark. The fix, hit Control-v before typing the question mark. Just like Unix.</p>
<p>The second issue I had was with the router not registering with DynDns. Specifying <em>debug ip ddns update</em> showed the following:<br />
<pre><code>Dec&nbsp;&nbsp;6 10:03:00.988: HTTPDNSUPD: Sending request
Dec&nbsp;&nbsp;6 10:03:20.996: HTTPDNSUPD: Call returned Connection time out, update of yourhost.dyndns.net &lt;=&gt; 123.123.123.123 failed</code></pre></p>
<p>It turns out the second issue was with CBAC. I had to add an inspect entry to my router configuration:<br />
<code>ip inspect name CBAC-OUT tcp router-traffic</code></p>
<p>The relevant parts of my configuration are below:<br />
<pre><code>ip inspect name CBAC-OUT tcp router-traffic
ip ddns update method DYNDNS
 HTTP
&nbsp;&nbsp;add http://username:password@members.dyndns.org/nic/update?system=dyndns&amp;hostname=&lt;h&gt;&amp;myip=&lt;a&gt;
 interval maximum 28 0 0 0
 interval minimum 28 0 0 0

interface Dialer0
 ip ddns update hostname putyourdnsnamehere
 ip ddns update DYNDNS host members.dyndns.org
 ip address negotiated
 ip access-group DIALER0_IN-3 in
 ip inspect CBAC-OUT out

ip access-list extended DIALER0_IN-3
 permit icmp any any echo-reply
 permit icmp any any ttl-exceeded
 permit icmp any any time-exceeded
 permit icmp any any packet-too-big
 denyÂ Â  ip any any</code></pre></p>
<p>Thanks to <a href="http://forums.whirlpool.net.au/forum-replies-archive.cfm/1204781.html" target="_blank">this thread at Whirlpool</a> for helping me resolve this problem. For more on the ip inspect tcp router-traffic see <a href="http://blog.ioshints.info/2007/06/inspect-router-generated-traffic.html" target="_blank">Inspect router-generated traffic</a> and it&#8217;s update <a href="http://blog.ioshints.info/2007/07/update-inspect-router-generated-traffic.html" target="_blank">Update: Inspect router-generated traffic</a>. For information on CBAC try the following links:<br />
<a href="http://www.ciscopress.com/articles/article.asp?p=26533" target="_blank">http://www.ciscopress.com/articles/article.asp?p=26533</a><br />
<a href="http://www.dslreports.com/faq/13435" target="_blank">http://www.dslreports.com/faq/13435</a><br />
<a href="http://www.cisco-tips.com/how-to-configure-cisco-router-with-ios-firewall-functionality-%E2%80%93-cbac/" target="_blank">http://www.cisco-tips.com/how-to-configure-cisco-router-with-ios-firewall-functionality-%E2%80%93-cbac/</a><br />
<a href="http://articles.techrepublic.com.com/5100-10878_11-1057051.html" target="_blank">http://articles.techrepublic.com.com/5100-10878_11-1057051.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/56/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware Workstation Unrecoverable Error: (vmx) NOT_IMPLEMENTED</title>
		<link>http://www.tipsandscripts.net/archives/51</link>
		<comments>http://www.tipsandscripts.net/archives/51#comments</comments>
		<pubDate>Mon, 15 Jun 2009 09:51:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=51</guid>
		<description><![CDATA[I RDP&#8217;d to my workstation and attempted to start a virtual machine in VMware Workstation 6.5.2. However, part of the way through the boot process VMware would pop up the following error:
Looking at the log file I would see
NOT_IMPLEMENTED d:/build/ob/bora-156735/bora/vmx/main/pollVMX.c:3651
It didn&#8217;t matter whether I was trying to start a Windows or a Linux virtual machine, [...]]]></description>
			<content:encoded><![CDATA[<p>I RDP&#8217;d to my workstation and attempted to start a virtual machine in VMware Workstation 6.5.2. However, part of the way through the boot process VMware would pop up the following error:</p>
<div id="attachment_52" class="wp-caption aligncenter" style="width: 515px"><img class="size-full wp-image-52" title="vmware-unrecoverable-error" src="http://www.tipsandscripts.net/wp-content/uploads/2009/06/vmware-unrecoverable-error.png" alt="VMware Workstation Unrecoverable Error" width="505" height="213" /><p class="wp-caption-text">VMware Workstation Unrecoverable Error</p></div>
<p>Looking at the log file I would see<br />
<pre>NOT_IMPLEMENTED d:/build/ob/bora-156735/bora/vmx/main/pollVMX.c:3651</pre><br />
It didn&#8217;t matter whether I was trying to start a Windows or a Linux virtual machine, I still got the error.</p>
<p>The cause appears to have been my display settings. I changed my RDP client settings to &#8220;High Color (16 bit)&#8221; and everything started working.</p>
<p>Edited at 13/8/2009:</p>
<p>This happened again and changing the colours made no difference. Normally I run RDP in full screen mode. I &#8220;umaximised&#8221; it and was then able to start the VM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/51/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving MS SQL Server 2000 to new hardware</title>
		<link>http://www.tipsandscripts.net/archives/46</link>
		<comments>http://www.tipsandscripts.net/archives/46#comments</comments>
		<pubDate>Tue, 28 Apr 2009 10:24:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=46</guid>
		<description><![CDATA[Moving MS SQL Server 2000 to new hardware without having to remount each database.]]></description>
			<content:encoded><![CDATA[<p>We had the fibre channel cards on our SQL Server fail on us. We had been planning to replace this server, and the storage array it was attached to, so we decided to bring that forward rather than repairing the server. Note we also had a copy of the server running in an isolated virtual machine for testing. All of our databases, including master.mdf were on a LUN on the storage array (previously mounted as D:).</p>
<p>Here are the steps we took in migrating our server:</p>
<ol>
<li>Installed Windows and drivers on the new server.</li>
<li>Modified the zones and mounted the LUN containing the SQL databases on the existing storage array to the new server (E:).</li>
<li>Created the required LUN on the new storage array and mounted on the new server (D:).</li>
<li>Used robocopy E:\ D:\ /MIR /R:0 /W:1 to copy the databases from the old LUN to the new LUN.</li>
<li>Unmounted the old LUN and undid the zone changes.</li>
<li>Moved everything on D: to a temporary directory on D: (so they wouldn&#8217;t get overwritten during the install of SQL Server 2000). Note, move the files to the same filesystem so everything happens instantly (i.e. not a copy).</li>
<li>On the old server, exported HKLM\Software\Microsoft\MSSQL from the registry.</li>
<li>Copied the SID from the old server to the new server using <a title="newsid.exe" href="http://technet.microsoft.com/en-us/sysinternals/bb897418.aspx" target="_blank">newsid.exe</a> (I had a friend run into a problem when restoring databases to a new server during a DR test. Because the SID of the new server was different to the old server security in the database didn&#8217;t work correctly. I assume this was because they were using local Windows accounts. ) I don&#8217;t know if we needed to do this step, but we did it just in case.</li>
<li>Removed the old server from the domain and renamed it. Changed its IP address.</li>
<li>Renamed the new server to the original name of the old server and added it to the domain. Set its IP address to the one previously used on the old server.</li>
<li>Installed SQL Server 2000. During the installation we specified the same paths as had been used on the old server (D:\Databases).</li>
<li>Installed SQL Server 2000 service packs.</li>
<li>Shut down the SQL services.</li>
<li>On the new server, exported HKLM\Software\Microsoft\MSSQL from the registry (just in case things went wrong).</li>
<li>On the new server, imported HKLM\Software\Microsoft\MSSQL that had been exported from the old server.</li>
<li>Renamed the directory containing the new master.mdf (D:\Databases to D:\Databases.freshinstall).</li>
<li>Moved the directories in the temporary directory back to their original location in D:.</li>
<li>Restarted the SQL services.</li>
</ol>
<p>Everything still seems to be working so I guess it worked. Luckily we weren&#8217;t using local accounts (only domain accounts) so we didn&#8217;t have to try to recreate the original accounts (which might have caused an issue with different account SIDs).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/46/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Server 2003 W32Time Errors</title>
		<link>http://www.tipsandscripts.net/archives/33</link>
		<comments>http://www.tipsandscripts.net/archives/33#comments</comments>
		<pubDate>Thu, 19 Mar 2009 15:54:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=33</guid>
		<description><![CDATA[The time on my PC at work has been gradually getting out of wack. So I took a look at the PDC Emulator (PDCe)in the root of our Active Directory forest and found lots of W32Time errors like:
The time provider NtpClient cannot reach or is currently receiving invalid time data from 192.168.1.1 (ntp.m&#124;0x8&#124;172.16.1.1:123-&#38;gt;192.168.1.1:123).
192.168.1.1 is a [...]]]></description>
			<content:encoded><![CDATA[<p>The time on my PC at work has been gradually getting out of wack. So I took a look at the PDC Emulator (PDCe)in the root of our Active Directory forest and found lots of W32Time errors like:<br />
<pre>The time provider NtpClient cannot reach or is currently receiving invalid time data from 192.168.1.1 (ntp.m|0x8|172.16.1.1:123-&amp;gt;192.168.1.1:123).</pre><br />
192.168.1.1 is a Windows Server 2003 machine in our DMZ. The DMZ server synchs the time with time.windows.com and the PDCe synchs the time with the DMZ server. This used to work fine (well after many teething problems) when the server in the DMZ ran Linux. However, since moving the function to a Windows server it seems to have failed.</p>
<p>Looking at the debug logs (see the entries for <a title="Enable NTP logging" href="http://technet.microsoft.com/en-us/library/cc773263.aspx" target="_blank">the various filelog registry keys</a> for information on enabling logging) I found the following errors:<br />
<pre><pre>149095 16:21:16.1250000s - ListeningThread -- response heard from 192.168.1.1:123 149095 16:21:16.1250000s - /-- NTP Packet:
149095 16:21:16.1250000s - | LeapIndicator: 3 - not synchronized;Â  VersionNumber: 3;Â  Mode: 4 - Server;Â  LiVnMode: 0xDC
149095 16:21:16.1250000s - | Stratum: 0 - unspecified or unavailable
149095 16:21:16.1250000s - | Poll Interval: 15 - out of valid range;Â  Precision: -6 - 15.625ms per tick
149095 16:21:16.1250000s - | RootDelay: 0x0000.0000s - unspecified;Â  RootDispersion: 0x0001.0400s - 1.01563s
149095 16:21:16.1250000s - | ReferenceClockIdentifier: 0x00000000 - unspecified
49095 16:21:16.1250000s - | ReferenceTimestamp:Â Â  0xCD676E70C58C64FD149095 16:21:16.1250000s -Â  - 12881592560771673500ns - 149092 12:09:20.7716735s
149095 16:21:16.1250000s - | OriginateTimestamp:Â Â  0xCD6B9DFC20000000149095 16:21:16.1250000s -Â  - 12881866876125000000ns - 149095 16:21:16.1250000s
149095 16:21:16.1250000s - | ReceiveTimestamp:Â Â Â Â  0xCD6B9D6D4D7C02AF149095 16:21:16.1250000s -Â  - 12881866733302673500ns - 149095 16:18:53.3026735s
149095 16:21:16.1250000s - | TransmitTimestamp:Â Â Â  0xCD6B9D6D4D7C02AF149095 16:21:16.1250000s -Â  - 12881866733302673500ns - 149095 16:18:53.3026735s
149095 16:21:16.1250000s - &amp;gt;-- Non-packet info:
149095 16:21:16.1250000s - | DestinationTimestamp: 149095 16:21:16.1250000s - 0xCD6B9DFC20000000149095 16:21:16.1250000s -Â  - 12881866876125000000ns149095 16:21:16.1250000s -Â  - 149095 16:21:16.1250000s
149095 16:21:16.1250000s - | RoundtripDelay: 000ns (0s)
149095 16:21:16.1250000s - | LocalClockOffset: -142822326500ns - 2:22.822326500
149095 16:21:16.1250000s - \--
149095 16:21:16.1250000s - Peer 192.168.1.1 (ntp.m|0x0|172.16.1.1:123-&amp;gt;192.168.1.1:123) is not Win2K. Setting compat flags.
149095 16:21:16.1250000s - Packet test 6 failed (not syncd or bad interval since last sync).
149095 16:21:16.1250000s - Packet test 7 failed (bad stratum).
149095 16:21:16.1250000s - Ignoring packet that failed tests from 192.168.1.1 (ntp.m|0x0|172.16.1.1:123-&amp;gt;192.168.1.1:123).</pre></pre><br />
Note the bad stratum message. I don&#8217;t know why these servers didn&#8217;t want to work together. The commands<br />
<pre>w32tm /stripchart /computer:192.168.1.1</pre><br />
and<br />
<pre>w32tm /monitor /computers:192.168.1.1</pre><br />
showed that they communicate using NTP. The way I got around it was to simply configure the PDCe to synch with the time server of a local ISP:<br />
<pre><pre>rem Stop the Windows Time service
net stop w32time

rem Set everything back to defaults
w32tm /unregister
w32tm /register

rem Start the Windows Time service
net start w32time

rem Specify the NTP server
w32tm /config /manualpeerlist:100.20.3.4 /syncfromflags:manual /reliable:yes /update</pre></pre><br />
Note I thought about synching the PDCe with time.windows.com, but that address resolves to time.microsoft.akadns.net &#8211; so I imagine that the IP address will change fairly often which would cause a problem on the firewall access-list.<br />
For troubleshooting information on Windows and NTP I recommend <a title="Windows Time and the W32TM service" href="http://www.mmmug.co.uk/files/216/download.aspx" target="_blank">Windows Time and the W32TM service</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/33/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where are VMware Infrastructure 3.5 snapshots stored?</title>
		<link>http://www.tipsandscripts.net/archives/26</link>
		<comments>http://www.tipsandscripts.net/archives/26#comments</comments>
		<pubDate>Mon, 15 Dec 2008 03:48:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=26</guid>
		<description><![CDATA[When you create a snapshot in VMware Instrastructure (formerly ESX), the server stops updating the .vmdk files. Instead it creates a delta file for each .vmdk file. Any writes are written to the delta file rather than the .vmdk file.
This has a few implications:

The amount of disk space used will increase (a delta can theoretically [...]]]></description>
			<content:encoded><![CDATA[<p>When you create a snapshot in VMware Instrastructure (formerly ESX), the server stops updating the .vmdk files. Instead it creates a delta file for each .vmdk file. Any writes are written to the delta file rather than the .vmdk file.</p>
<p>This has a few implications:</p>
<ul>
<li>The amount of disk space used will increase (a delta can theoretically grow as large as the original .vmdk).</li>
<li>Read performance can suffer (both the .vmdk and the delta file will now need to be read).</li>
</ul>
<p>The delta file is stored with the virtual machine&#8217;s configuration file, not with the .vmdk file. So, if you have multiple .vmdk files on different volumes you might be in for a surprise.</p>
<p>In the example below I have a virtual machine called VM-Test. It has two .vmdk files, one in /vmfs/volumes/storage1/VM-Test and one in /vmfs/volumes/storage2/VM-Test. I have shown the directory listings before and after taking a snapshot. As you can see the delta for both .vmdk files is stored in the same directory as the configuration file.</p>
<h3>Before the snapshot:</h3>
<p><pre><code>[root@vmsvr /]# cd /vmfs/volumes/storage1/VM-Test
[root@vmsvr VM-Test]# ls -l
total 8651072
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  268435456 Dec 14 22:08 VM-Test-38405ab5.vswp
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  8589934592 Dec 14 22:16 VM-Test-flat.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â  8664 Dec 14 22:08 VM-Test.nvram
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  314 Dec 14 22:11 VM-Test.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â Â Â  0 Dec 14 21:53 VM-Test.vmsd
-rwxr-xr-xÂ Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â  1572 Dec 14 22:08 VM-Test.vmx
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  252 Dec 14 22:08 VM-Test.vmxf
-rw-r--r--Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â  19089 Dec 14 22:11 vmware.log
[root@vmsvr VM-Test]# ls -l ../../storage2/VM-Test/
total 4194368
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  4294967296 Dec 14 22:16 VM-Test_1-flat.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  314 Dec 14 22:11 VM-Test_1.vmdk</code></pre></p>
<h3>After creating a snapshot:</h3>
<p><pre><code>[root@vmsvr VM-Test]# ls -l ../../storage2/BC-Test1/
total 4194368
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  4294967296 Dec 14 22:16 VM-Test_1-flat.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  314 Dec 14 22:11 VM-Test_1.vmdk
[root@vmsvr VM-Test]# ls -l
total 9591296
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  671088640 Dec 14 22:26 VM-Test-000001-delta.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  248 Dec 14 22:18 VM-Test-000001.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  16777216 Dec 14 22:26 VM-Test_1-000001-delta.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  310 Dec 14 22:18 VM-Test_1-000001.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  268435456 Dec 14 22:08 VM-Test-38405ab5.vswp
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  8589934592 Dec 14 22:17 VM-Test-flat.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â  8664 Dec 14 22:08 VM-Test.nvram
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â  273866015 Dec 14 22:18 VM-Test-Snapshot1.vmsn
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  314 Dec 14 22:11 VM-Test.vmdk
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  542 Dec 14 22:18 VM-Test.vmsd
-rwxr-xr-xÂ Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â  1510 Dec 14 22:25 VM-Test.vmx
-rw-------Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â Â Â  252 Dec 14 22:25 VM-Test.vmxf
-rw-r--r--Â Â Â  1 rootÂ Â Â Â  rootÂ Â Â Â Â Â Â  30121 Dec 14 22:25 vmware.log</code></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/26/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNS3 and Vista 64bit</title>
		<link>http://www.tipsandscripts.net/archives/23</link>
		<comments>http://www.tipsandscripts.net/archives/23#comments</comments>
		<pubDate>Tue, 14 Oct 2008 05:19:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dynamips]]></category>
		<category><![CDATA[GNS3]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/?p=23</guid>
		<description><![CDATA[GNS3 installs on the 64 bit version of Windows Vista without any errors. However, when you try to test Dynamips you may get the error &#8220;Failed to start&#8221;. If you try to create a router you may get the error &#8220;Can&#8217;t start dynamips on port 7200&#8243;.
There are two things you may have to do:

By default, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gns3.net/" target="_blank">GNS3</a> installs on the 64 bit version of Windows Vista without any errors. However, when you try to test Dynamips you may get the error &#8220;Failed to start&#8221;. If you try to create a router you may get the error &#8220;Can&#8217;t start dynamips on port 7200&#8243;.</p>
<p>There are two things you may have to do:</p>
<ul>
<li>By default, GNS installs in the directory C:\Program Files(x86)\GNS3 directory. GNS3 installs Dynamips below that in C:\Program Files(x86)\GNS3\Dynamips. However, GNS3 is configured by default to look for Dynamips under C:\Program Files\GNS3\Dynamips. You will need to update the path to the correct location (Under Edit, Preferences, Dynamips).</li>
<li>Check that you have the correct file system permissions to the above directories.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/23/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tell if another instance of a VBS script is running</title>
		<link>http://www.tipsandscripts.net/archives/20</link>
		<comments>http://www.tipsandscripts.net/archives/20#comments</comments>
		<pubDate>Mon, 07 Jul 2008 02:30:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[vbs]]></category>

		<guid isPermaLink="false">http://www.tipsandscripts.net/archives/20</guid>
		<description><![CDATA[The following VBS function will allow you to check if another instance of your script is running. Note, I have only tested this for one user.

?View Code VBSFunction OtherInstances()
  ' This function determines if there are other instances of this script running. If other instances are running it returns TRUE, otherwise it returnes FALSE
&#160;
 [...]]]></description>
			<content:encoded><![CDATA[<p>The following VBS function will allow you to check if another instance of your script is running. Note, I have only tested this for one user.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p20code2'); return false;">View Code</a> VBS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p202"><td class="code" id="p20code2"><pre class="vbs" style="font-family:monospace;">Function OtherInstances()
  ' This function determines if there are other instances of this script running. If other instances are running it returns TRUE, otherwise it returnes FALSE
&nbsp;
  Dim strComputer, objWMIService, colItems, objItem, Count
&nbsp;
  strComputer = &quot;.&quot;
  Count = 0
  Set objWMIService = GetObject(&quot;winmgmts:&quot; _
      &amp; &quot;{impersonationLevel=impersonate}!\\&quot; &amp; strComputer &amp; &quot;\root\cimv2&quot;)
  Set colItems = objWMIService.ExecQuery _
      (&quot;Select * from Win32_Process Where Name = 'cscript.exe'&quot; &amp; _
          &quot; OR Name = 'wscript.exe'&quot;)
  For Each objItem in colItems
      If InStr(1, LCase(objItem.CommandLine), LCase(Wscript.ScriptName)) &gt; 0 Then
        Count = Count + 1	
	  End If
  Next
&nbsp;
  If Count &gt; 1 Then
    OtherInstances = TRUE
  Else
    OtherInstances = FALSE 
  End If
End Function</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.tipsandscripts.net/archives/20/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
