<?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>Sunsetsurf Techblog</title>
	<atom:link href="http://techblog.sunsetsurf.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.sunsetsurf.co.uk</link>
	<description>Random tech bloggidge</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:14:58 +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>Re-streaming sopcast with linux to ipad / iphone using ffserver ffmpeg and segmenter.</title>
		<link>http://techblog.sunsetsurf.co.uk/2012/01/re-streaming-sopcast-with-linux-to-ipad-iphone-using-ffserver-ffmpeg-and-segmenter/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2012/01/re-streaming-sopcast-with-linux-to-ipad-iphone-using-ffserver-ffmpeg-and-segmenter/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 00:14:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=203</guid>
		<description><![CDATA[I wanted to find a way to watch sopcast streams on my ipad, however there currently is no native ipad app for this. Available for linux is the sopcast command line player &#8211; sp-sc-auth which works just fine, so all I needed to go was get this to my ipad. Fairly straight forward I thought [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to find a way to watch sopcast streams on my ipad, however there currently is no native ipad app for this.</p>
<p>Available for linux is the sopcast command line player &#8211; sp-sc-auth which works just fine, so all I needed to go was get this to my ipad. Fairly straight forward I thought as sopcast listens on a chosen port for you to connect a media application to &#8211; I tried it on my ipad with xyzplayer which worked fine for a standard def video stream, but with HD streams the picture would be in slow motion.</p>
<p>I tried a number of other players, but they all had the same problem. So I figured if I could re-stream the stream as h264 I could get quicktime to play it on my ipad, and that would sort the issue.</p>
<p>However &#8211; easier said than done!</p>
<p>I was able to get ffserver and ffmpeg to take the stream from sopcast and re-stream but again slow motion issues.</p>
<p>So I definitely needed to re-stream into a quicktime compatable stream.</p>
<p>So I started looking at the use of the open source conversion of apples segmenter. Looked great but had a nightmare trying to get live_segmenter.c to compile on my fedora system.</p>
<p>However after some digging it seemed the majority of my issues were with my version of ffmpeg.</p>
<p>Using these instructions I managed to get it to compile correctly:</p>
<pre>wget <a href="http://epirat.de/wp-content/uploads/ffmpeg-export-snapshot-2009-12-02.tar.bz2">http://epirat.de/wp-content/uploads/ffmpeg-export-snapshot-2009-12-02.tar.bz2</a></pre>
<pre>tar -xvjf ffmpeg-export-snapshot-2009-12-02.tar.bz2</pre>
<pre>cd ffmpeg-export-2009-12-01/</pre>
<pre>./configure --enable-gpl --enable-nonfree  --enable-libfaac\
 --enable-libmp3lame --prefix=/tmp/old_ffmpeg</pre>
<pre>make</pre>
<pre>make install</pre>
<pre>cd</pre>
<pre>git clone git://github.com/ePirat/HTTP-Live-Video-Stream-Segmenter-and-Distributor.git</pre>
<pre>gcc -v -Wall -g live_segmenter.c -o live_segmenter \
    -lavformat -lavcodec -lavutil -lvorbis -ltheora\
    -lbz2 -lm -lz -lfaac -lmp3lame \
    -I/tmp/old_ffmpeg/include \
    -L/tmp/old_ffmpeg/lib</pre>
<pre>rm -rf /tmp/old_ffmpeg</pre>
<pre>rm -rf ffmpeg-export-2009-12-01</pre>
<pre>rm ffmpeg-export-snapshot-2009-12-02.tar.bz2</pre>
<p>I would love to credit the author but im unable to find a way too! So if you read this thanks, and drop me a mail for credit <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>After getting this to compile, I followed the instructions <a href="http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/">http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/</a></p>
<p>&nbsp;</p>
<p>Well couldnt get the script to work so stripped it out to manually run ffmpeg and pipe it into live_httpstreamer &#8211; however turns out my m3u8 index wasnt being created and my files were not able to be encoded as I didnt have x264 installed correctly.</p>
<p>So took this <a href="https://sites.google.com/site/linuxencoding/install-script">https://sites.google.com/site/linuxencoding/install-script</a> to get the x264 support installed.</p>
<p>Manually created my own m3u8 index just to test that it would actually work.</p>
<p>Ended up with it all working, although the audio is going out of sync, but i&#8217;ll look at that at some point..</p>
<p>My final command, assuming I have created the m3u8 file with just 2 hours worth of segments, is&#8230;</p>
<p>/home/user/Linux.Encoding.install/bin/ffmpeg -i http://127.0.0.1:7070 -f mpegts -acodec libmp3lame -ar 32000 -ab 48k -async 1 -s 600&#215;480 -vcodec libx264 -b 1200k -flags +loop+mv4 -cmp 256 -partitions +parti4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 1200k -maxrate 1200k -bufsize 110k -rc_eq &#8216;blurCplx^(1-qComp)&#8217; -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 4:3 -r 30 -g 90 -async 2 &#8211; | /home/user/segmenter/live_segmenter 10 /var/www/html/video/ stream ipad</p>
<p>Any questions please feel free to post comments, I have pulled this together quickly so might well have missed something&#8230;</p>
<p>&nbsp;</p>
<p><map name='google_ad_map_203_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/203?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_203_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=203&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2012%2F01%2Fre-streaming-sopcast-with-linux-to-ipad-iphone-using-ffserver-ffmpeg-and-segmenter%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2012/01/re-streaming-sopcast-with-linux-to-ipad-iphone-using-ffserver-ffmpeg-and-segmenter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone what is calaccessd?!</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/10/iphone-what-is-calaccessd/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/10/iphone-what-is-calaccessd/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 16:08:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=200</guid>
		<description><![CDATA[On the new iOS5 while debugging my poor battery life I came across a process on my iPhone called calaccessd which was hogging lots of CPU time and I felt it was responsible for my poor battery life &#8211; although no hard evidence yet. Much googling turned up nothing however playing around I found that [...]]]></description>
			<content:encoded><![CDATA[<p>On the new iOS5 while debugging my poor battery life I came across a process on my iPhone called calaccessd which was hogging lots of CPU time and I felt it was responsible for my poor battery life &#8211; although no hard evidence yet.</p>
<p>Much googling turned up nothing however playing around I found that the daemon died immediately when I turned calendar off of notification centre and back to alerts rather than banner alert. I am hopeful that this will help the massive battery drain I have been experiencing and I will report back on this post.</p>
<p>Whilst it is nice to have my calendar stuff in the notification centre with the imminent release of intelliscreenX I can live without it for the moment if it gives me better battery life.</p>
<p>Cheers</p>
<p><map name='google_ad_map_200_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/200?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_200_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=200&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F10%2Fiphone-what-is-calaccessd%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/10/iphone-what-is-calaccessd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone iOS5 poor battery life</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/10/iphone-ios5-poor-battery-life/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/10/iphone-ios5-poor-battery-life/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 11:34:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=193</guid>
		<description><![CDATA[I recently updated my iPhone 4 to iOS5 but suffered from very poor battery life around 50% worse than previous on 4.3.3. I put it down to spotlight re-indexing etc and ignored it for a few days, but after a week of still being rubbish I did some digging. Although not conclusive, I noticed a [...]]]></description>
			<content:encoded><![CDATA[<p>I recently updated my iPhone 4 to iOS5 but suffered from very poor battery life around 50% worse than previous on 4.3.3.</p>
<p>I put it down to spotlight re-indexing etc and ignored it for a few days, but after a week of still being rubbish I did some digging.</p>
<p>Although not conclusive, I noticed a process &#8211; calaccessd which was using about 40% of the cpu time all the time &#8211; obviously cpu time equates to battery drain.</p>
<p>After some more digging I discovered its related to the calendaring functions (yes slightly obviously given the name). Doing some debugging, I went into my calendars and unticked the iCloud calendar from my views &#8211; this immediately made the calaccessd drop cpu use to next to nothing.</p>
<p>So im hopeful this might have a significant effect on my battery life and put it somewhere back to where I expect it to be..</p>
<p>Any comments on this i&#8217;d be interested to hear.</p>
<p>Cheers!</p>
<p>&nbsp;</p>
<p>update1 &#8211; checked my running processes a few hours later and irritatingly calaccessd was back using lots of cpu, so this time I have switched calendar off completely from my iCloud mail settings &#8211; this so far has stopped any resurgence of calaccessd using lots of cpu.</p>
<p>update2 &#8211; this has fixed the cpu runaways, but still experiencing very poor battery life, and very jerky and slow performance from the phone as a whole. Going for a full restore to see how it fairs after that..</p>
<p>update3 &#8211; did the full restore, again had fun and games with stupid itunes not recognizing my backup, but battery life is now back to normal, if not better! I had never noticed but each time i pick up the phone now it actually feels cold, which must be a good thing as if its warm its obviously using battery up!</p>
<p>I did choose to not install a couple of items I had previously installed, and have removed a couple of calendars also so not conclusive but its got to be one of the following :</p>
<p>poweralerter, sbsettings, iCloud syncing calendars etc, multiple exchange calendars from the same account (I had 4 calendars on my 1 exchange account, which I have trimmed down to 1 now)</p>
<p>So its either 1 of the above or just the restore, but either way im considering this case closed. Its also worth noting that its performing lovely too, the jerkyness has gone and its nice and nippy. All in all im happy <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>update4 not happy again <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  as per the above update I thought it was sorted, however it seems not. See post what is calaccessd for a further update.</p>
<p>update5 &#8211; post on calaccessd gives full info on the bug on ios 5, however updating to ios 5.0.1 fixes this issue.</p>
<p><map name='google_ad_map_193_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/193?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_193_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=193&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F10%2Fiphone-ios5-poor-battery-life%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/10/iphone-ios5-poor-battery-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using powershell to search for files with date and owner criteria</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/08/using-powershell-to-search-for-files-with-date-and-owner-criteria/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/08/using-powershell-to-search-for-files-with-date-and-owner-criteria/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 14:18:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=189</guid>
		<description><![CDATA[I recently had a requirement to search some file servers for files that were modified between 2 date ranges and then filter that output by owner. After some googleing I came up with the following script with a commented out line that would allow a copy of those files after indexing. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- $path = Read-Host [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a requirement to search some file servers for files that were modified between 2 date ranges and then filter that output by owner.</p>
<p>After some googleing I came up with the following script with a commented out line that would allow a copy of those files after indexing.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>$path = Read-Host &#8220;Please enter the top-level path (eg: C:\Temp)&#8221;</p>
<p>$user = Read-Host &#8220;Please enter the user to be searched for (eg: DOMAIN\User)&#8221;<br />
$dst = Read-Host &#8220;Please enter the copy destination:&#8221;</p>
<p>$files = Get-childitem $path -recurse |<br />
where {$_.lastwritetime.date -gt<br />
[datetime]::parse(&#8220;01/01/2010&#8243;) -and<br />
$_.lastwritetime.date -lt<br />
[datetime]::parse(&#8220;01/01/2011&#8243;)}</p>
<p>foreach ($file in $files){<br />
$owner = Get-Acl $file.FullName<br />
if ($owner.Owner -eq $user){Write-output $file.FullName &gt;&gt; output}<br />
#if ($owner.Owner -eq $user){copy-item -path $file.FullName -dest $dst -force}<br />
else {}<br />
}</p>
<p><map name='google_ad_map_189_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/189?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_189_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=189&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F08%2Fusing-powershell-to-search-for-files-with-date-and-owner-criteria%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/08/using-powershell-to-search-for-files-with-date-and-owner-criteria/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find/Search for VMWare guests mac address on ESX 4 and ESXi 4 hosts onwards</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/06/findsearch-vmware-guests-mac-address-on-esx-4-and-esxi-4-hosts-onwards/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/06/findsearch-vmware-guests-mac-address-on-esx-4-and-esxi-4-hosts-onwards/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 11:12:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMWare Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=183</guid>
		<description><![CDATA[In the past on vmware you could use the tool vmware-cmd-l to help you find the mac addresses of guests registered to vmware hosts. You might need to do this if you have an ip address conflict or for some other reason where going through all the guests would be a time consuming and laborious [...]]]></description>
			<content:encoded><![CDATA[<p>In the past on vmware you could use the tool vmware-cmd-l to help you find the mac addresses of guests registered to vmware hosts.</p>
<p>You might need to do this if you have an ip address conflict or for some other reason where going through all the guests would be a time consuming and laborious process.</p>
<p>With ESX and ESXi version 4 onwards that command was removed, so the below ash script will allow you to either list the VM&#8217;s on a host, or if you use it with an argument it will search for a mac address or part of a mac address.</p>
<p>This script will allow you to search and find a mac address and tie that to a guest name. The script needs to be run on the ESX or ESXi host/s</p>
<p>run it from the command line like below</p>
<p>#./macfinder.sh   &lt; no arguments to list all registered VM&#8217;s</p>
<p>or</p>
<p>#./macfinder.sh 00:50:56:00:00:00  &lt; with argument to find specific or part of mac address</p>
<p>&nbsp;</p>
<p>___________________________ shell script below &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>#!/bin/ash<br />
# searches current registered vm&#8217;s then uses that list to find macAddresses of those</p>
<p># then greps output for desired mac or part of mac address</p>
<p>vim-cmd vmsvc/getallvms | awk &#8216;{print $1&#8243;:&#8221; $2}&#8217; | grep -v Vmid &gt; /tmp/allvms<br />
for lines in `cat /tmp/allvms`do</p>
<p>id=$(echo $lines | awk -F: &#8216;{print $1}&#8217;)</p>
<p>name=$(echo $lines | awk -F: &#8216;{print $2}&#8217;)</p>
<p>mac=$(vim-cmd vmsvc/device.getdevices $id | grep macAddress)</p>
<p>if test $1then<br />
echo $name $mac | grep $1</p>
<p>else echo $name $mac</p>
<p>fi</p>
<p>done</p>
<p>rm -rf /tmp/allvms</p>
<p><map name='google_ad_map_183_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/183?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_183_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=183&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F06%2Ffindsearch-vmware-guests-mac-address-on-esx-4-and-esxi-4-hosts-onwards%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/06/findsearch-vmware-guests-mac-address-on-esx-4-and-esxi-4-hosts-onwards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Port mirroring on nortel 5520 switch stack</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/04/port-mirroring-on-nortel-5520-switch-stack/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/04/port-mirroring-on-nortel-5520-switch-stack/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 15:13:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Network Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=180</guid>
		<description><![CDATA[Recently had cause to set this up, and although i&#8217;m familiar and comfortable doing this on cisco stuff, never had cause to do it on our nortels. The config below is what is required on the cli &#8211; if you have access to the web interface its pretty straight forward there too. port-mirroring mode xrxorxtx [...]]]></description>
			<content:encoded><![CDATA[<p>Recently had cause to set this up, and although i&#8217;m familiar and comfortable doing this on cisco stuff, never had cause to do it on our nortels.</p>
<p>The config below is what is required on the cli &#8211; if you have access to the web interface its pretty straight forward there too.</p>
<p>port-mirroring mode xrxorxtx monitor-port 1/23 mirror-port-X 2/3 mirror-port-Y 2/4</p>
<p>According to the nortel documentation this mirrors ports 2/3 and 2/4 to port 1/23 &#8211; however in practice and looking through the bugs list the firmware we ran does not actually support monitoring 2 ports, so we ended up falling back to just the single mirror.</p>
<p>&nbsp;</p>
<p><map name='google_ad_map_180_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/180?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_180_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=180&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F04%2Fport-mirroring-on-nortel-5520-switch-stack%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/04/port-mirroring-on-nortel-5520-switch-stack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Source based routing on Checkpoint SPLAT</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/02/source-based-routing-on-checkpoint-splat/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/02/source-based-routing-on-checkpoint-splat/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 11:29:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=178</guid>
		<description><![CDATA[If you have 2 internet connections, or for whatever reason need to route specific traffic down a specific interface, by default you are stuck &#8211; checkpoint do not officially support source based routing on the SPLAT platform. But it is possible using the underlying system. To create a route that allows all traffic from 10.0.0.0/24 [...]]]></description>
			<content:encoded><![CDATA[<p>If you have 2 internet connections, or for whatever reason need to route specific traffic down a specific interface, by default you are stuck &#8211; checkpoint do not officially support source based routing on the SPLAT platform.</p>
<p>But it is possible using the underlying system.</p>
<p>To create a route that allows all traffic from 10.0.0.0/24 to route through interface 5 try the following:</p>
<p>We add a new routing table by adding to the file:</p>
<pre>echo "100 Defaultroute2" &gt;&gt; /etc/iproute2</pre>
<p>This will create a new routing table called Defaultroute2.The default routing tables are numbered 253 &amp; above, so as the number assigned to this table is less than 253, ie: 100, it will be used BEFORE the default routes. Next we set up a new rule for this table:</p>
<pre>ip rule add from 10.0.0.0/24 table Defaultroute2</pre>
<p>This adds a rule that says any traffic FROM 10.0.0.0/24 will have the routing in the Defaultroute2 routing table applied. Next we set up some new routes:</p>
<pre>ip route add default via 192.168.0.1 dev Lan5 table Defaultroute2</pre>
<p>This sets a default route that pushes traffic to the gateway address 192.168.0.1 via the device Lan5. This route applies to any traffic going via the Defaultroute2l routing table. We can add more routes to this table, so for instance we could route traffic to other IP addresses via a different gateway:</p>
<pre>ip route add 212.111.123.0/24 via 212.104.137.254 dev Lan5 table Defaultroute2</pre>
<pre>and bingo you have not implemented source based routing.</pre>
<pre>Dont forget however that this config will need to be applied on each boot, or else create a simple startup script.</pre>
<p><map name='google_ad_map_178_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/178?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_178_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=178&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F02%2Fsource-based-routing-on-checkpoint-splat%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/02/source-based-routing-on-checkpoint-splat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CheckPoint R65 ndb_open: database &#8216;magic number&#8217; corrupted(/opt/CPsuite-R65/fw1/database/fwauth.NDB) error</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/01/checkpoint-r65-ndb_open-database-magic-number-corruptedoptcpsuite-r65fw1databasefwauth-ndb-error/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/01/checkpoint-r65-ndb_open-database-magic-number-corruptedoptcpsuite-r65fw1databasefwauth-ndb-error/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 16:32:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=175</guid>
		<description><![CDATA[An irritating error which must be a bug, but only comes around every so often. Anyway the fix is as follows: login to the box and ensure you are in expert mode. then do cd $FWDIR cd database mv fwauth.NDB fwauth.corrupt thats it! Reinstall your firewall policy and you should now see it sucessfully install [...]]]></description>
			<content:encoded><![CDATA[<p>An irritating error which must be a bug, but only comes around every so often.</p>
<p>Anyway the fix is as follows:</p>
<p>login to the box and ensure you are in expert mode.</p>
<p>then do</p>
<p>cd $FWDIR</p>
<p>cd database</p>
<p>mv fwauth.NDB fwauth.corrupt</p>
<p>thats it!</p>
<p>Reinstall your firewall policy and you should now see it sucessfully install and recreate the fwauth.NDB database.</p>
<p><map name='google_ad_map_175_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/175?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_175_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=175&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F01%2Fcheckpoint-r65-ndb_open-database-magic-number-corruptedoptcpsuite-r65fw1databasefwauth-ndb-error%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/01/checkpoint-r65-ndb_open-database-magic-number-corruptedoptcpsuite-r65fw1databasefwauth-ndb-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google urchin analytics session error unable to call default routine.</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/11/google-urchin-analytics-session-error-unable-to-call-default-routine/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/11/google-urchin-analytics-session-error-unable-to-call-default-routine/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 10:03:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Tech Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=169</guid>
		<description><![CDATA[I am on version 6.602 and have on occasion tried to log in and received the above error &#8211; Session error, unable to call default routine. It took me some digging to find the cause, and it would seem that for some reason &#8211; I havent invested the time to find out why yet &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>I am on version 6.602 and have on occasion tried to log in and received the above error &#8211; Session error, unable to call default routine.</p>
<p>It took me some digging to find the cause, and it would seem that for some reason &#8211; I havent invested the time to find out why yet &#8211; that the table uprofiles_tasks gets so big that it causes problems to the login script and prevents logins.</p>
<p>The answer is to login to the mysql database, and truncate the uprofiles_tasks table.</p>
<p>This then fixes logins for a period of time until the table gets large again, but in my experience this is weeks / months rather than days..</p>
<p><map name='google_ad_map_169_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/169?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_169_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=169&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F11%2Fgoogle-urchin-analytics-session-error-unable-to-call-default-routine%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/11/google-urchin-analytics-session-error-unable-to-call-default-routine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare ESX 4.0 iscsi volume problems.</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/08/vmware-esx-4-0-iscsi-volume-problems/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/08/vmware-esx-4-0-iscsi-volume-problems/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 10:48:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VMWare Stuff]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=166</guid>
		<description><![CDATA[We recently encountered a problem which nearly ground  our VMWare ESX farm to a halt. The cause of the problem was a iscsi lock caused by 2 hosts trying to write to the same store at the same time. This was evident from messages on the ESX hosts from the error message: vprob.vmfs.heartbeat.timedout and referencing [...]]]></description>
			<content:encoded><![CDATA[<p>We recently encountered a problem which nearly ground  our VMWare ESX farm to a halt.</p>
<p>The cause of the problem was a iscsi lock caused by 2 hosts trying to write to the same store at the same time.</p>
<p>This was evident from messages on the ESX hosts from the error message: vprob.vmfs.heartbeat.timedout and referencing one of the volumes on our ISCSI storage.</p>
<p>This was causing the entire ESX host to have connectivity problems as well as affecting the guests that resided on that volume.</p>
<p>Because the host and guests were not accesible through vSphere, we were unable to remove the volume or power cycle the guests.</p>
<p>After much digging around and with the help of VMWare support we understood that the cause of the problem was a lock on that filesystem, and to fix the problem we ran vmkfstools -L lunreset /vmfs/devices/disks/volumename&#8230;</p>
<p>This removed the lock which was caused by 2 hosts trying to write to the same volume at the same time and causing a iscsi lock.</p>
<p>Very painful, but happy to have the cluster back up and running.</p>
<p><map name='google_ad_map_166_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/166?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_166_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=166&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F08%2Fvmware-esx-4-0-iscsi-volume-problems%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/08/vmware-esx-4-0-iscsi-volume-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

