<?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>Saiweb &#187; Networking</title>
	<atom:link href="http://www.saiweb.co.uk/category/networking/feed" rel="self" type="application/rss+xml" />
	<link>http://www.saiweb.co.uk</link>
	<description>Ramblings of a Sys admin</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:57:49 +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>Easynet outage</title>
		<link>http://www.saiweb.co.uk/networking/easynet-outage</link>
		<comments>http://www.saiweb.co.uk/networking/easynet-outage#comments</comments>
		<pubDate>Fri, 15 Aug 2008 10:06:44 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[easynet]]></category>
		<category><![CDATA[outage]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/networking/easynet-outage</guid>
		<description><![CDATA[Oh dear oh dear &#8230; It would appear this morning easynet is have some major issues reporting a major network outage on their status page: http://support.uk.easynet.net/support_status.aspx Looks to me like a piece of downed routing equipment, for me at least any traffic routing via 67.17.198.202 black holes and the connection dies horribly. Some bad routing [...]]]></description>
			<content:encoded><![CDATA[<p>Oh dear oh dear &#8230;</p>
<p>It would appear this morning easynet is have some major issues reporting a major network outage on their status page: <a href="http://support.uk.easynet.net/support_status.aspx">http://support.uk.easynet.net/support_status.aspx</a></p>
<p>Looks to me like a piece of downed routing equipment, for me at least any traffic routing via 67.17.198.202 black holes and the connection dies horribly.</p>
<p>Some bad routing setup there &#8230; </p>
<p>67.17.198.202 is listed as being in Georgia Atlanta (33.7271 -84.5785) (source: <a href="http://www.maxmind.com/app/locate_ip">http://www.maxmind.com/app/locate_ip</a>).</p>
<p>When trying to access some .co.uk domains on known UK geo IP&#8217;s, I am getting routed via a dead US link &#8230;. nice &#8230;</p>
<p>Well, I wouldn&#8217;t want a boring easy friday now would I?<span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/networking/easynet-outage" data-text="Easynet outage" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fnetworking%2Feasynet-outage&#038;text=Easynet%20outage" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/networking/easynet-outage/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Quickly get the MAC address of a device on your network using ARP</title>
		<link>http://www.saiweb.co.uk/windows/quickly-get-the-mac-address-of-a-device-on-your-network-using-arp</link>
		<comments>http://www.saiweb.co.uk/windows/quickly-get-the-mac-address-of-a-device-on-your-network-using-arp#comments</comments>
		<pubDate>Mon, 28 Jul 2008 08:45:34 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ARP]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/windows/quickly-get-the-mac-address-of-a-device-on-your-network-using-arp</guid>
		<description><![CDATA[This is something I find myself having to do, more and more lately due to this VoIP roll out. From windows (xp) Start > run > cmd Once the command window is open ping the IP address of the device (this forces your system to do an ARP request and store the device information in [...]]]></description>
			<content:encoded><![CDATA[<p>This is something I find myself having to do, more and more lately due to this VoIP roll out.</p>
<p>From windows (xp)</p>
<p>Start > run > cmd</p>
<p>Once the command window is open ping the IP address of the device (this forces your system to do an ARP request and store the device information in the cache, don&#8217;t ask me why but microsoft decided it was a good idea not to lookup the information if it isn&#8217;t allready in the cache!)</p>
<p>NOTE: Even if the device blocks ICMP, this should still work, run ettercap on your windows network to see just how many times you will see an ARP request along the lines of &#8220;WHO HAS xxx.xxx.xxx.xxx&#8221;.</p>
<p>Now to get the MAC address type</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">arp -a xxx.xxx.xxx.xxx</div></td></tr></tbody></table></div>
<p>Where xxx.xxx.xxx.xxx is the IP address of the device you just pinged.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">C:\Documents and Settings\buzz&gt;arp &nbsp;-a 10.99.1.10<br />
<br />
Interface: XXX.XXX.XXX.XXX --- 0x3<br />
&nbsp; Internet Address &nbsp; &nbsp; &nbsp;Physical Address &nbsp; &nbsp; &nbsp;Type<br />
&nbsp; XXX.XXX.XXX.XXX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AA-BB-CC-DD-EE-FF &nbsp; &nbsp; dynamic</div></td></tr></tbody></table></div>
<p>Please note this only works for a device on the same IP range.</p>
<p>If you run two ranges, i.e.</p>
<p>192.168.1.XXX</p>
<p>and</p>
<p>192.168.2.XXX</p>
<p>You will need to make the ARP request from a device bound to that range (servers are especially usefull here).<span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/windows/quickly-get-the-mac-address-of-a-device-on-your-network-using-arp" data-text="Quickly get the MAC address of a device on your network using ARP" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fwindows%2Fquickly-get-the-mac-address-of-a-device-on-your-network-using-arp&#038;text=Quickly%20get%20the%20MAC%20address%20of%20a%20device%20on%20your%20network%20using%20ARP" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/windows/quickly-get-the-mac-address-of-a-device-on-your-network-using-arp/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Telnet &#8211; SMTP</title>
		<link>http://www.saiweb.co.uk/networking/telnet-smtp</link>
		<comments>http://www.saiweb.co.uk/networking/telnet-smtp#comments</comments>
		<pubDate>Thu, 17 Jul 2008 15:20:26 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[telnet]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/networking/telnet-smtp</guid>
		<description><![CDATA[To test a POP3 connection using telnet open a command window or shell terminal and type the following 1telnet smtp.domain.com 25 Where smtp.domain.com is the FQDN (Fully Qualified Domain Name) or IP address of the server you wish to test. 25 also assumes default SMTP configuration. You will be greeted with something similar to: 12Escape [...]]]></description>
			<content:encoded><![CDATA[<p>To test a POP3 connection using telnet open a command window or shell terminal and type the following</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">telnet smtp.domain.com 25</div></td></tr></tbody></table></div>
<p>Where smtp.domain.com is the FQDN (Fully Qualified Domain Name) or IP address of the server you wish to test.</p>
<p>25 also assumes default SMTP configuration.</p>
<p>You will be greeted with something similar to:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Escape character is '^]'.<br />
220 smtp.domain.com</div></td></tr></tbody></table></div>
<p>Now you need to enter the HELO command, followed by an idenfication of the server you ar esending from.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HELO buzz.domain.com<br />
250 smtp.domain.com</div></td></tr></tbody></table></div>
<p>Anything other than &#8220;250&#8243; indicates a problem.</p>
<p>You can now proceed with the test email transaction.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">MAIL FROM: <span class="mh-email"><a href='http://www.google.com/recaptcha/mailhide/d?k=01zJpju87KejH2_v9OHtypaA==&amp;c=DqcWSEMTkXfxLFdFGiBek0YnaYF9ZOOiJnvU2Lg-K04=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zJpju87KejH2_v9OHtypaA==&amp;c=DqcWSEMTkXfxLFdFGiBek0YnaYF9ZOOiJnvU2Lg-K04=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="This email is protected with reCaptcha, please click the link to retrieve the email">HIDDEN EMAIL</a></span><br />
250 Ok<br />
RCPT TO: <span class="mh-email"><a href='http://www.google.com/recaptcha/mailhide/d?k=01zJpju87KejH2_v9OHtypaA==&amp;c=V-JpATNxQkuO0yZUdnQcXU-rjhAJpIYGWbwFpbaKpZc=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zJpju87KejH2_v9OHtypaA==&amp;c=V-JpATNxQkuO0yZUdnQcXU-rjhAJpIYGWbwFpbaKpZc=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="This email is protected with reCaptcha, please click the link to retrieve the email">HIDDEN EMAIL</a></span><br />
250 Ok<br />
DATA<br />
354 End data with &lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt;<br />
This is where the data goes, you finish the input by placeing a dot (.) on a single line.<br />
<br />
<br />
.<br />
250 Ok: queued as D9FA03705C9<br />
QUIT<br />
221 Bye<br />
Connection closed by foreign host.</div></td></tr></tbody></table></div>
<p><span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/networking/telnet-smtp" data-text="Telnet &#8211; SMTP" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fnetworking%2Ftelnet-smtp&#038;text=Telnet%20%26%238211%3B%20SMTP" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/networking/telnet-smtp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Telnet &#8211; POP3</title>
		<link>http://www.saiweb.co.uk/networking/telnet-pop3</link>
		<comments>http://www.saiweb.co.uk/networking/telnet-pop3#comments</comments>
		<pubDate>Thu, 17 Jul 2008 15:07:22 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[pop3]]></category>
		<category><![CDATA[telenet]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/networking/telnet-pop3</guid>
		<description><![CDATA[To test a POP3 connection using telnet open a command window or shell terminal and type the following 1telnet pop.domain.com 110 Where pop.domain.com is the FQDN (Fully Qualified Domain Name) or IP address of the server you wish to test. 110 also assumes default pop3 configuration. You will be greeted with somthing similar to: 123Connected [...]]]></description>
			<content:encoded><![CDATA[<p>To test a POP3 connection using telnet open a command window or shell terminal and type the following</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">telnet pop.domain.com 110</div></td></tr></tbody></table></div>
<p>Where pop.domain.com is the FQDN (Fully Qualified Domain Name) or IP address of the server you wish to test.</p>
<p>110 also assumes default pop3 configuration.</p>
<p>You will be greeted with somthing similar to:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Connected to localhost.<br />
Escape character is '^]'.<br />
+OK dovecot ready.</div></td></tr></tbody></table></div>
<p>Now you need to authenticate</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">USER buzz<br />
+OK<br />
PASS thisismypassnorealyitis...honest<br />
+OK Logged in.</div></td></tr></tbody></table></div>
<p>Once logged in you can now make use of the following commands</p>
<p><strong>STAT</strong> This command will respond as follows (colour added)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">STAT<br />
+OK &lt;span style=&quot;color: #3333ff;&quot;&gt;12&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;3571942&lt;/span&gt;</div></td></tr></tbody></table></div>
<p>This indicates there are <span style="color: #3333ff;">12</span> emails in the mail box with a total size of <span style="color: #009900;">3571942</span> bytes.</p>
<p><strong>LIST</strong> This command will list a line for each message with its number and size in bytes</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">+OK 12 messages:<br />
1 1209<br />
2 307<br />
3 32715<br />
4 218<br />
5 15937<br />
6 3469<br />
7 98724<br />
8 54356<br />
9 1128<br />
10 560<br />
11 1150309<br />
12 2213010<br />
.</div></td></tr></tbody></table></div>
<p><strong>RETR 11</strong> This is the retrive command, in this case this will display the contents of email 11</p>
<p><strong>DELE 11</strong> This is the delete command, in this case this will mark email 11 for deletion (will not delete it).</p>
<p><strong>RSET</strong> This is the reset command, this will clear any delete flags you have set.</p>
<p><strong>QUIT</strong> This command will logout of the current account, any emails marked for deletion will now be deleted.<span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/networking/telnet-pop3" data-text="Telnet &#8211; POP3" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fnetworking%2Ftelnet-pop3&#038;text=Telnet%20%26%238211%3B%20POP3" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/networking/telnet-pop3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco Catalyst 3560 and 802.1Q VoIP</title>
		<link>http://www.saiweb.co.uk/networking/cisco-catalyst-3560-and-8021q-voip</link>
		<comments>http://www.saiweb.co.uk/networking/cisco-catalyst-3560-and-8021q-voip#comments</comments>
		<pubDate>Wed, 09 Jul 2008 13:51:36 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[3650]]></category>
		<category><![CDATA[802.1Q]]></category>
		<category><![CDATA[encapsulation]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/networking/cisco-catalyst-3560-and-8021q-voip</guid>
		<description><![CDATA[Some VoiP devices require the use of 802.1Q, encapsulation protocol, to set this up you are going to have to do this using telnet, and on a per port basis. If you don&#8217;t know how to start a telnet session with your Cisco device, then I suggest you stop reading now, and defer this task [...]]]></description>
			<content:encoded><![CDATA[<p>Some VoiP devices require the use of 802.1Q, encapsulation protocol, to set this up you are going to have to do this using telnet, and on a per port basis.</p>
<p>If you don&#8217;t know how to start a telnet session with your Cisco device, then I suggest you stop reading now, and defer this task to someone who does, no offense but getting this wrong can screw up your network.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">User Access Verification<br />
<br />
Password:<br />
3560&gt;enable<br />
Password:<br />
3560#conf t<br />
Enter configuration commands, one per line. &nbsp;End with CNTL/Z.<br />
3560(config)#int GigabitEthernet0/1<br />
3560(config-if)#switchport trunk encapsulation dot1q<br />
3560(config-if)#switchport mode trunk<br />
3560(config-if)#^Z<br />
3560#wr mem<br />
Building configuration...<br />
[OK]</div></td></tr></tbody></table></div>
<p>All you need to know is above, simple rinse and repeat for the other ports you wish to use 802.1Q, of course you can forgo the CTRL+Z followed my wr mem if you have multiple ports to do, just make sure you do CTRL+Z folowed by a &#8220;wr mem&#8221; otherwise your changes will only effect the current running configuration, if the device is restarted for whatever reason changes will be lost.<span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/networking/cisco-catalyst-3560-and-8021q-voip" data-text="Cisco Catalyst 3560 and 802.1Q VoIP" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fnetworking%2Fcisco-catalyst-3560-and-8021q-voip&#038;text=Cisco%20Catalyst%203560%20and%20802.1Q%20VoIP" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/networking/cisco-catalyst-3560-and-8021q-voip/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dbstat update</title>
		<link>http://www.saiweb.co.uk/general/dbstat-update</link>
		<comments>http://www.saiweb.co.uk/general/dbstat-update#comments</comments>
		<pubDate>Thu, 22 May 2008 10:52:02 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[dbStat]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/?p=52</guid>
		<description><![CDATA[So I thought maybe it&#8217;s time for an update. The project is moving, albeit slowly, and I realy do not like the current PHP implementation, I want to move towards a C++ version, and I will do so as soon as I figure out how to do CLI &#8220;update/refresh&#8221; &#8230; i.e. See how W GET [...]]]></description>
			<content:encoded><![CDATA[<p>So I thought maybe it&#8217;s time for an update.</p>
<p>The project is moving, albeit slowly, and I realy do not like the current PHP implementation, I want to move towards a C++ version, and I will do so as soon as I figure out how to do CLI &#8220;update/refresh&#8221; &#8230;</p>
<p>i.e. See how W GET works with the progress bar and kbps all in text, I have NO idea how that works.</p>
<p>I am also looking at adding RRDTOOL support.</p>
<p>Anyway here&#8217;s the current sample output:</p>
<p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[buzz@server01 .sysadmin]$ ./dbstat.php summary</div></td></tr></tbody></table></div>
</p>
<p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">----- mySQL dbStat v1.1 Summary Report-----</div></td></tr></tbody></table></div>
</p>
<p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">10 Databases checked</div></td></tr></tbody></table></div>
</p>
<p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb1: 13 tables (0 VIEWS 13 INNODB 0 MYISAM) 0.77MB DATA 0.64MB INDEX</div></td></tr></tbody></table></div>
<p></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb2: 15 tables (0 VIEWS 14 INNODB 1 MYISAM) 0.22MB DATA 0.19MB INDEX</div></td></tr></tbody></table></div>
<p></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb3: 62 tables (0 VIEWS 0 INNODB 62 MYISAM) 0.45MB DATA 0.5MB INDEX</div></td></tr></tbody></table></div>
<p></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb4: 3 tables (0 VIEWS 0 INNODB 3 MYISAM) 0.02MB DATA 0.01MB INDEX</div></td></tr></tbody></table></div>
<p></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb5: 4 tables (0 VIEWS 0 INNODB 4 MYISAM) 0.02MB DATA 0.01MB INDEX</div></td></tr></tbody></table></div>
<p></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb6: 4 tables (0 VIEWS 0 INNODB 4 MYISAM) 39.81MB DATA 22.22MB INDEX</div></td></tr></tbody></table></div>
<p></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb7: 3 tables (0 VIEWS 0 INNODB 3 MYISAM) 0.04MB DATA 0.01MB INDEX</div></td></tr></tbody></table></div>
<p></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9: 599 tables (8 VIEWS 1 INNODB 590 MYISAM) 8702.79MB DATA 4559.42MB INDEX</div></td></tr></tbody></table></div>
<p></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb10: 22 tables (0 VIEWS 21 INNODB 1 MYISAM) 6.66MB DATA 2.26MB INDEX</div></td></tr></tbody></table></div>
</p>
<p>Detail:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">----- START mySQL dbStat v1.1 Detail Report: exampledb9 -----</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9: 599 tables (8 VIEWS 1 INNODB 590 MYISAM) 8893.7MB DATA 4583.54MB INDEX</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">--- Table Index Ratio Report index:data (457 Tables) ---</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.table1: 315.0769:1</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.table2: 315.0769:1</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.table3: 157.5385:1</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.table4: 146.2857:1</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.table5: 128.0000:1</div></td></tr></tbody></table></div>
<p>&#8230; (I&#8217;ve truncated this very long list)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">--- Table Fragmentation Report (2 Tables) ---</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.atable: 0.6067</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.atable: 0.1285</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">--- Table Low Size Report (47 Tables) ---</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.atable: 0 bytes</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.atable: 0 bytes</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.atable: 0 bytes</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.atable: 0 bytes</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.atable: 0 bytes</div></td></tr></tbody></table></div>
<p>&#8230; (Truncated again)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">--- Table Detail Report (591 Tables) ---</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">SCHEMA.TABLENAME: ENGINE: ROWS: TOTAL SIZE (MB): DATA SIZE (MB): DATA PERCENTAGE OF TOTAL (%): INDEX SIZE (MB): INDEX PERCENTAGE OF TOTAL (%): LAST UPDATE TIME</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">exampledb9.a_table: MyISAM: 28906414: 3272.43531003: 3031.82567548: 92.6474: 204.63809450: 7.3526: 2008-05-22 11:59:42</div></td></tr></tbody></table></div>
<p>.. (truncated)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">----- END mySQL dbStat v1.1 Detail Report: exampledb9 -----</div></td></tr></tbody></table></div>
<p><span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/general/dbstat-update" data-text="Dbstat update" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fgeneral%2Fdbstat-update&#038;text=Dbstat%20update" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/general/dbstat-update/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly get MAC addresses in Windows XP using ARP</title>
		<link>http://www.saiweb.co.uk/windows/quickly-get-mac-addresses-in-windows-xp-using-arp</link>
		<comments>http://www.saiweb.co.uk/windows/quickly-get-mac-addresses-in-windows-xp-using-arp#comments</comments>
		<pubDate>Thu, 24 Apr 2008 10:10:33 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[MAC address]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/windows/quickly-get-mac-addresses-in-windows-xp-using-arp</guid>
		<description><![CDATA[Just a quick blog about this &#8230; Ever had the problem of having to assign a DHCP reservation with no mac address resolving software on your laptop? (NOOB! haha) Well &#8230; you have software built in if you are using windows XP anyway &#8230; 1Start &#62; run &#62; cmd &#8220;arp -a&#8221; (without quotes) this will [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick blog about this &#8230;</p>
<p>Ever had the problem of having to assign a DHCP reservation with no mac address resolving software on your laptop? (NOOB! haha)</p>
<p>Well &#8230; you have software built in if you are using windows XP anyway &#8230;</p>
<p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Start &gt; run &gt; cmd</div></td></tr></tbody></table></div>
</p>
<p>&#8220;arp -a&#8221; (without quotes)</p>
<p>this will list your current local interfaces and thier MAC addresses.</p>
<p>&#8220;arp -a xxx.xxx.xxx.xxx&#8221; (without quotes) Where xxx.xxx.xxx.xxx is the target IP address on your LAN, this will resolve the MAC address for that interface.</p>
<p>Nice quick and simple.</p>
<p>Enjoy!</p>
<p>UPDATE: If you get an error &#8220;NO Arp entries found&#8221; when doing this, just ping the IP address first, assuming you get a response you _should_ be able to use arp to lookup the mac address!</p>
</p>
<p><span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/windows/quickly-get-mac-addresses-in-windows-xp-using-arp" data-text="Quickly get MAC addresses in Windows XP using ARP" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fwindows%2Fquickly-get-mac-addresses-in-windows-xp-using-arp&#038;text=Quickly%20get%20MAC%20addresses%20in%20Windows%20XP%20using%20ARP" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/windows/quickly-get-mac-addresses-in-windows-xp-using-arp/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP A2S Class (Valve Server Query Protocol)</title>
		<link>http://www.saiweb.co.uk/hacking/php-a2s-class-valve-server-query-protocol</link>
		<comments>http://www.saiweb.co.uk/hacking/php-a2s-class-valve-server-query-protocol#comments</comments>
		<pubDate>Thu, 28 Feb 2008 18:23:34 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[a2s]]></category>
		<category><![CDATA[php source class]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[valve]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/hacking/php-a2s-class-valve-server-query-protocol</guid>
		<description><![CDATA[I was reminded today on MSN that I had in fact written (albeit a long time ago) a class for querying the A2S protocol using PHP sockets. So I have decided to release the source code for this under the MIT licence. Bear in mind this was written when the Source SDK was leaked, so [...]]]></description>
			<content:encoded><![CDATA[<p>I was reminded today on MSN that I had in fact written (albeit a long time ago) a class for querying the A2S protocol using PHP sockets.</p>
<p>So I have decided to release the source code for this under the MIT licence.</p>
<p>Bear in mind this was written when the Source SDK was leaked, so it is for PHP 4 (Which reaches &#8220;end of life&#8221; 08/08/2008 ). And I havent re-tested wheter it works in a LONG long long &#8230; etc time.</p>
<p>However  With the exception of the addition of RCON functionality (which should of been put in originally Valve!), the A2S protocol has not changed</p>
<p>Anyway check the attached files, the licence is included at the top of the file.</p>
<p><a href="http://cdn.saiweb.co.uk/wp-content/uploads/2008/02/sourceclass.rar" title="PHP 4 A2S class (Valve Server Query)">PHP 4 A2S class (Valve Server Query)</a></p>
<p><a href="http://digg.com/programming/PHP_A2S_Class_Valve_Server_Query_Protocol">Digg this</a><span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/hacking/php-a2s-class-valve-server-query-protocol" data-text="PHP A2S Class (Valve Server Query Protocol)" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fhacking%2Fphp-a2s-class-valve-server-query-protocol&#038;text=PHP%20A2S%20Class%20%28Valve%20Server%20Query%20Protocol%29" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/hacking/php-a2s-class-valve-server-query-protocol/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios customization: Alerting via SMS, or anything you like!</title>
		<link>http://www.saiweb.co.uk/nagios/nagios-customization-alerting-via-sms-or-anything-you-like</link>
		<comments>http://www.saiweb.co.uk/nagios/nagios-customization-alerting-via-sms-or-anything-you-like#comments</comments>
		<pubDate>Fri, 22 Feb 2008 13:28:13 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[alerting]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[txt]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/nagios/nagios-customization-alerting-via-sms-or-anything-you-like</guid>
		<description><![CDATA[So I find myself needing to tweak my Nagios installation a little bit, in this case I found the need for &#8220;out of hours&#8221; SMS alerts. Nagios doesn&#8217;t cater for this natively, rather it does however allow you to create your own custom commands, this allows you to specify a script to be executed. Now [...]]]></description>
			<content:encoded><![CDATA[<p>So I find myself needing to tweak my <a href="http://www.nagios.org/" title="Nagios" target="_blank">Nagios</a> installation a little bit, in this case I found the need for &#8220;out of hours&#8221; SMS alerts.</p>
<p><a href="http://www.nagios.org/" title="Nagios" target="_blank">Nagios</a> doesn&#8217;t cater for this natively, rather it does however allow you to create your own custom commands, this allows you to specify a script to be executed.</p>
<p>Now I am going to assume you are already quite familiar with <a href="http://www.nagios.org/" title="Nagios" target="_blank">Nagios</a> , so here is the command definition from my installation.</p>
<p><font color="#c0c0c0"><br />
</font></p>
<p align="left"><font color="#3366ff"> # &#8216;alert-by-sms&#8217; command definition<br />
</font><font color="#3366ff"> define command{<br />
</font><font color="#3366ff"> command_name    alert-by-sms<br />
</font><font color="#3366ff"> command_line    /etc/nagios/alert-by-sms.php &#8220;** $NOTIFICATIONTYPE$ alert &#8211; $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **&#8221;<br />
</font><font color="#3366ff"> }</font></p>
<p>As you can see all this command definition realy does is execute a php script, bear in mind that</p>
<p>&#8220;/path/to/php /path/to/script &#8221;</p>
<p>as the command_line does not seem to work, so just add &#8220;#!/path/to/php -q&#8221; to the top of the php script (before the opening &lt;?PHP tag). and CHMOD +X the file.</p>
<p>The php script used here takes $argv[1] and passes it into a function specific to the SMS api I use, the phone number and API definitions are hard coded ito the script.<br />
You don&#8217;t really need me to upload my script, and if you do then you shouldn&#8217;t be attempting this &#8230;</p>
<p>Basically <a href="http://www.nagios.org/" title="Nagios" target="_blank">Nagios</a> will execute the script, as defined at command_line, the script can do anything you choose.</p>
<p>Now to implement the command so it is actually used, I am pretty sure this entry in &#8220;timeperiods.cfg&#8221; is the default but just incase here it is.</p>
<p><font color="#3366ff"># &#8216;nonworkhours&#8217; timeperiod definition<br />
define timeperiod{<br />
timeperiod_name nonworkhours<br />
alias           Non-Work Hours<br />
sunday          00:00-24:00<br />
monday          00:00-09:00,17:00-24:00<br />
tuesday         00:00-09:00,17:00-24:00<br />
wednesday       00:00-09:00,17:00-24:00<br />
thursday        00:00-09:00,17:00-24:00<br />
friday          00:00-09:00,17:00-24:00<br />
saturday        00:00-24:00<br />
}</font></p>
<p>This is what I use for the &#8220;out of hours&#8221; definition, now to implement the SMS alerting, for this I have simply created a new contact definition in &#8220;contacts.cfg&#8221;, granted this means there are now two contact definitions for myself.</p>
<p><font color="#3366ff">define contact{<br />
contact_name                    out_of_hours<br />
alias                           Out Of Hours Mobile</font></p>
<p><font color="#3366ff">service_notification_period     nonworkhours<br />
host_notification_period        nonworkhours<br />
service_notification_options    c,u,r,f<br />
host_notification_options       d,u,r<br />
service_notification_commands   alert-by-sms<br />
host_notification_commands      alert-by-sms<br />
email                          <span class="mh-email"><a href='http://www.google.com/recaptcha/mailhide/d?k=01zJpju87KejH2_v9OHtypaA==&amp;c=JMG0BHkI6S2YtKdtj6NrCTwsZvVuhpgmhlck_1ZKmIM=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zJpju87KejH2_v9OHtypaA==&amp;c=JMG0BHkI6S2YtKdtj6NrCTwsZvVuhpgmhlck_1ZKmIM=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="This email is protected with reCaptcha, please click the link to retrieve the email">HIDDEN EMAIL</a></span></font></p>
<p><font color="#3366ff">}</font></p>
<p>This can be further customized depending on your setup, in this case the contact is me and I want to receive alerts for all servers &amp; services, so I just add the contact  &#8220;out_of_hours&#8221; into the admins contact group.</p>
<p><font color="#3366ff">define contactgroup{<br />
contactgroup_name       admins<br />
alias                   Nagios Administrators<br />
members                 nagios-admin,out_of_hours<br />
}</font></p>
<p>So there you have it, you now have the ground work to potentially make <a href="http://www.nagios.org/" title="Nagios" target="_blank">Nagios</a> fire you alerts anyway you like, you could go as far as having it call you via attached modem, if you _realy_ want, but when you want your servers talking to you via phone call is the day you need to switch to decaff, and head out to the pub once in a while.</p>
<p>Now just &#8220;nagios -v /path/to/nagios.cfg&#8221; to do a quick sanity check and make sure there are no errors (if you have any go back and fix them and run nagios -v again!), if all is ok /etc/init.d/nagios restart (or equivalent for your distribution).</p>
<p>As always if you run into problems drop me a comment <img src='http://cdn.saiweb.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> <span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/nagios/nagios-customization-alerting-via-sms-or-anything-you-like" data-text="Nagios customization: Alerting via SMS, or anything you like!" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fnagios%2Fnagios-customization-alerting-via-sms-or-anything-you-like&#038;text=Nagios%20customization%3A%20Alerting%20via%20SMS%2C%20or%20anything%20you%20like%21" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/nagios/nagios-customization-alerting-via-sms-or-anything-you-like/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 18/65 queries in 0.129 seconds using apc
Object Caching 2965/3102 objects using apc
Content Delivery Network via Rackspace Cloud Files: cdn.saiweb.co.uk

Served from: www.saiweb.co.uk @ 2012-02-08 17:37:22 -->
