<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Data Plumber</title>
	<atom:link href="http://dataplumber.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dataplumber.wordpress.com</link>
	<description>Networking tech stuff.</description>
	<lastBuildDate>Sun, 15 Jan 2012 06:14:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dataplumber.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Data Plumber</title>
		<link>http://dataplumber.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dataplumber.wordpress.com/osd.xml" title="The Data Plumber" />
	<atom:link rel='hub' href='http://dataplumber.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Junos QoS notes</title>
		<link>http://dataplumber.wordpress.com/2011/12/30/junos-qos-notes/</link>
		<comments>http://dataplumber.wordpress.com/2011/12/30/junos-qos-notes/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 12:52:30 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[JunOS]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=240</guid>
		<description><![CDATA[Juniper refers to QoS as Class of Service (CoS) and it is something that I&#8217;ve always had trouble quite getting my head around for some reason.  Sure &#8211; I&#8217;ve got CoS working nicely on switches and SRXes in customer networks, with packets hitting the right queues and so on, but you&#8217;re never quite sure it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=240&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Juniper refers to QoS as Class of Service (CoS) and it is something that I&#8217;ve always had trouble quite getting my head around for some reason.  Sure &#8211; I&#8217;ve got CoS working nicely on switches and SRXes in customer networks, with packets hitting the right queues and so on, but you&#8217;re never quite sure it is exactly right.</p>
<p>Studying for my JNCIP-SP, I did a practice exam on the Juniper website and it seems that CoS is something I am weak in, so I am writing up some notes here for my own reference.<span id="more-240"></span></p>
<p><strong>Overview</strong></p>
<p>Packets that need different levels of treatment when passing through a Juniper device have to be classified as they enter the device, and queued for transmission before exiting the device. How packets are taken from the queues for transmission is called &#8216;scheduling&#8217; &#8211; some queues are treated as higher priority than other queues so that more important packets such as voice or video get sent first.  Within that queue, other things can happen such as shaping the traffic down to a particular rate, re-marking packets, or dropping packets.  These things are done to proactively manage the queues in the device so that they don&#8217;t fill up. If they did, all packets would be dropped (tail-drop), so it is better to drop less critical packets early using <a href="http://en.wikipedia.org/wiki/Random_early_detection" target="_blank">Random Early Detection</a>.</p>
<p><strong>Classification of Packets</strong></p>
<p>Packets can be classified in two ways:</p>
<p>1) By observing QoS markings on the packet (such as EXP bits, DSCP, IP ToS or 802.1P bits)</p>
<p>2) By observing other fields such as source/destination address, port numbers etc.</p>
<p>The first method is called Behaviour Aggregate classification. It implies that your whole network has been set up from end to end to classify (for example) voice packets using the DSCP bits.</p>
<p>The second method is called a Multi-Field Classifier, and is used when there are no markings on the packets that can be observed. The MFC might be used at the edge of the network to classify voice packets which are then marked with DSCP values.  Once marked, classification can be done through the core of the network using a BA classifier instead.</p>
<p><strong>Packet Flow through Junos CoS</strong></p>
<p>As a packet enters the router, the classifier assigns each packet a &#8216;forwarding class&#8217; and a &#8216;loss priority&#8217;.  (Although I prefer to talk about a &#8216;loss probability&#8217; because it makes sense to me &#8211; higher LP = higher chance of the packet being dropped).</p>
<p>Forwarding classes are assigned to queues.</p>
<p>Each queue has a scheduler applied to it.  The scheduler determines how packets are treated in the queue (i.e. dropped, re-marked, shaped) and how the packets are transmitted (i.e. which queue to serve first).</p>
<p>The packet is transmitted.</p>
<p><strong>Classifiers</strong></p>
<p>There is a default classifier applied to all interfaces on a Juniper router, which is based on IP Type of Service &#8211; it is called &#8216;ipprec-compatibility&#8217; and you can see it below:</p>
<pre>root@LAB_SRX2&gt; show class-of-service classifier name ipprec-compatibility
Classifier: ipprec-compatibility, Code point type: inet-precedence, Index: 13
Code point         Forwarding class                    Loss priority
000                best-effort                         low
001                best-effort                         high
010                best-effort                         low
011                best-effort                         high
100                best-effort                         low
101                best-effort                         high
110                network-control                     low
111                network-control                     high</pre>
<p>The code-points are 3-bit patterns in the left column, and these each map to a forwarding class and loss priority in the middle and right columns.  Out of the box, everything except network control traffic hits the best-effort class.</p>
<p>You don&#8217;t see any config statements associating the classifier with interfaces within Junos &#8211; that all happens under the hood.  However, when you associate a classifier with an interface yourself, the &#8216;ipprec-default&#8217;. You assign a classifier to an interface by typing &#8220;set class-of-service interface &lt;name&gt; unit &lt;number&gt; classifiers inet-precedence default&#8221;.</p>
<p>The default classifier for inet-precedence looks a bit different to the compatibility one.</p>
<p>Alternatively, you can make your own classifier &#8211; based on precedence or DSCP or whatever.  You can import the default one, and simply make the necessary changes you need &#8211; in the snippet below, I import the default classifier, change the expedited forwarding for packets marked with 111 and assign it to an interface:</p>
<pre>root@LAB_SRX2# show class-of-service
classifiers {
  inet-precedence CLASS1 {
    import default;
    forwarding-class expedited-forwarding {
      loss-priority high code-points 111;
    }
  }
}
interfaces {
  ge-0/0/0 {
    unit 0 {
      classifiers {
        inet-precedence CLASS1;
      }
    }
  }
}</pre>
<p>You can see that the new classifier has taken effect by issuing the operational command &#8220;show class-of-service interface&#8221;:</p>
<pre>Physical interface: ge-0/0/0, Index: 134
Queues supported: 8, Queues in use: 4
  Scheduler map: , Index: 2
  Congestion-notification: Disabled

  Logical interface: ge-0/0/0.0, Index: 78
    Object                  Name                   Type                    Index
    Classifier              CLASS1                 ip                       4804</pre>
<p>So that&#8217;s all good. Now I&#8217;m classifying, what to do next?</p>
<p><strong>Schedulers</strong></p>
<p>As I&#8217;ve said, a scheduler governs how the queue is treated.  There are four properties of a scheduler that you can define:</p>
<p>1) The bandwidth assigned to the queue<br />
2) The buffer size for storing packets in the queue<br />
3) The priority of the queue<br />
4) The drop profile</p>
<p>By default, only two schedulers are used &#8211; queue 0 for best effort traffic (allocated 95% of interface bandwidth), and queue 3 for network control stuff (getting the remaining 5% bandwidth).</p>
<p>So here&#8217;s a scheduler and a drop profile:</p>
<pre>drop-profiles {
    DP1 {
        fill-level 50 drop-probability 50;
        fill-level 80 drop-probability 80;
    }
}
schedulers {
    SCHED1 {
        transmit-rate percent 10;
        buffer-size percent 10;
        drop-profile-map loss-priority low protocol any drop-profile DP1;
    }
}</pre>
<p>This sets up a drop profile that randomly discards 50% of packets when the queue is 50% full, and 80% when it is 80% full. The scheduler SCHED1 is created with 10% of line rate and 10% of the interface&#8217;s buffers.  You might be wondering how I came up with those numbers.  To be honest, I just made them up.  You won&#8217;t find a right answer for creating these values anywhere &#8211; you need to set something up that looks OK and then monitor the results closely in most situations.  If you get it wrong, by default a queue can exceed the defined bandwidth if there is room in other queues.  (Quite what happens if those queues then fill up, I don&#8217;t know&#8230;)</p>
<p>Now that the scheduler has been created, we need to associate it to a forwarding class &#8211; this is done through a scheduler map.  Using the examples above:  &#8220;set class-of-service scheduler-map MAP1 forwarding-class expedited-forwarding scheduler SCHED1&#8243;</p>
<p>Finally, assign the scheduler map to the interface using &#8220;set class-of-service interface ge-0/0/0 scheduler-map MAP1&#8243;.</p>
<p><strong>Testing</strong></p>
<p>To see if this works there are a couple of things you can do.  Junos allows you to set the TOS bits in ping packets, so you can do that to create the right markings and then see if the packets are hitting the queues correctly.</p>
<p>Pinging with the right TOS value requires a calculation.  If your classifier is looking for the pattern 101 (as per the example), you have to remember that the TOS field is eight bits in length, so there are five zeros in the remainder of the field (10100000).  The two 1s occupy the 128 and 32 bit positions &#8211; add these together and you get a value of 160.  So the command from the neighbouring device to ping the one you&#8217;ve configured your CoS on is:</p>
<pre>ping tos 160 10.0.0.2</pre>
<p>This creates the marked packets &#8211; now go to the device where you configured your CoS, and look at the interface statistics in detail. On the second page of the output you should see packets hitting the expedited-forwarding queue:</p>
<pre>  Queue counters:       Queued packets  Transmitted packets      Dropped packets
    0 best-effort                61155                61155                    0
    1 expedited-fo                  11                   11                    0
    2 assured-forw                   0                    0                    0
    3 network-cont               22795                22795                    0
  Queue number:         Mapped forwarding classes
    0                   best-effort
    1                   expedited-forwarding
    2                   assured-forwarding
    3                   network-control</pre>
<p>So that&#8217;s some basic CoS configuration based on IP ToS. I&#8217;m off for a coffee.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/240/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=240&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/12/30/junos-qos-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Nice feature &#8211; cable test on Junos EX switch</title>
		<link>http://dataplumber.wordpress.com/2011/11/17/nice-feature-cable-test-on-junos-ex-switch/</link>
		<comments>http://dataplumber.wordpress.com/2011/11/17/nice-feature-cable-test-on-junos-ex-switch/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 12:35:25 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[EX]]></category>
		<category><![CDATA[JunOS]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=232</guid>
		<description><![CDATA[There are some really nice features about EX switches, and I only just got round to giving this one a go.  You can run a port test &#8211; in the screenshots below it is ge-0/0/3 &#8211; and one of the tests run will tell you how far it is to the cable break.  This is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=232&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are some really nice features about EX switches, and I only just got round to giving this one a go.  You can run a port test &#8211; in the screenshots below it is ge-0/0/3 &#8211; and one of the tests run will tell you how far it is to the cable break.  This is a Time Domain Reflectometer (TDR) test.  In the example, it shows 17 metres to the break &#8211; so I can tell that there&#8217;s probably a cable from the port to the patch panel, but nothing plugged-in at the wall-port.</p>
<p><span id="more-232"></span></p>
<p>Browse to the web interface of the switch, log in and click the &#8220;Troubleshoot&#8221; tab along the top:</p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/port-test-start.png"><img class="alignleft size-full wp-image-233" title="port-test-start" src="http://dataplumber.files.wordpress.com/2011/11/port-test-start.png?w=510&#038;h=220" alt="" width="510" height="220" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Hit the &#8220;Troubleshoot port&#8221; button and a wizard will start.  Select the port you are interested in:</p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/port-test-select-port.png"><img class="alignleft size-full wp-image-234" title="port-test-select-port" src="http://dataplumber.files.wordpress.com/2011/11/port-test-select-port.png?w=510&#038;h=212" alt="" width="510" height="212" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The tests run are a link test, a cable test (the TDR one we are talking about here) and a configuration test:</p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/port-test-during.png"><img class="alignleft size-full wp-image-235" title="port-test-during" src="http://dataplumber.files.wordpress.com/2011/11/port-test-during.png?w=510&#038;h=232" alt="" width="510" height="232" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>And here&#8217;s our result &#8211; cable pair is open at 17 metres from the switch:</p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/port-test-result.png"><img class="alignleft size-full wp-image-236" title="port-test-result" src="http://dataplumber.files.wordpress.com/2011/11/port-test-result.png?w=510&#038;h=176" alt="" width="510" height="176" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/232/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=232&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/11/17/nice-feature-cable-test-on-junos-ex-switch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/port-test-start.png" medium="image">
			<media:title type="html">port-test-start</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/port-test-select-port.png" medium="image">
			<media:title type="html">port-test-select-port</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/port-test-during.png" medium="image">
			<media:title type="html">port-test-during</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/port-test-result.png" medium="image">
			<media:title type="html">port-test-result</media:title>
		</media:content>
	</item>
		<item>
		<title>Shoreware Director &#8211; TMSNcc.log file notes</title>
		<link>http://dataplumber.wordpress.com/2011/11/15/shoreware-director-tmsncc-log-file-notes/</link>
		<comments>http://dataplumber.wordpress.com/2011/11/15/shoreware-director-tmsncc-log-file-notes/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 13:26:37 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[Shoretel]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=227</guid>
		<description><![CDATA[Just had a useful session with a Shoretel TAC guy &#8211; the problem being dropped calls when using Shoreware Communicator.  The diagnosis was that there is too much jitter on the network, and it was TmsNcc.log that showed up the problem: Here are two sides of a call from the log file &#8211; we had [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=227&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just had a useful session with a Shoretel TAC guy &#8211; the problem being dropped calls when using Shoreware Communicator.  The diagnosis was that there is too much jitter on the network, and it was TmsNcc.log that showed up the problem:</p>
<p><span id="more-227"></span>Here are two sides of a call from the log file &#8211; we had to get the exact time of the call and the numbers being called from and to in order to determine the call GUID.  Once the GUID was obtained, we could use a find in Notepad to find the related messages:</p>
<pre>G-MST: 4000001E "00040000-0fbf-4e89-e048-001049194446" ("192.168.3.2","192.168.0.144"),2(ULaw),rsn:1,09:23:05.602 (UTC),pl:20,(s:86, r:73, l:0),(j:2,u:0,o:0) flgs:0x00000000 "sip:TGrp_1,p30@192.168.3.2:5441",vpn:0
G-MST: 2000003E "00040000-0fbf-4e89-e048-001049194446" ("192.168.0.144","192.168.3.2"),2(ULaw),rsn:1,09:23:05.568 (UTC),pl:20,(s:73, r:86, l:0),(j:3,u:0,o:0) flgs:0x00000000 "sip:100@192.168.3.4:5441",vpn:0</pre>
<p>In the above, the long number is the call GUID we were searching on, and the &#8220;sip:TGrp_1&#8243; line (scroll to the right) is the incoming leg of the call, coming in off the ISDN and to the user&#8217;s softphone. You can see the IP address of the Shoregear E1K (192.168.3.2) and also of the user&#8217;s PC.</p>
<p>The second line with &#8220;sip:100&#8243; is extension 100 leg of the call, out via the trunk.</p>
<p>The statistics are a bit cryptic for each of these lines, so let&#8217;s just look at one:</p>
<pre>(s:86, r:73, l:0),(j:2,u:0,o:0)</pre>
<p>This section of the logged message is saying that there were 86 packets sent, 73 packets received and 0 packets lost. The second set of figures in brackets shows values for jitter (in this case 2), underrun and overrun.</p>
<p>The values in the second section should all be zero in an ideal world. The j:2 part in this particular example indicates that the jitter buffer had to be adjusted twice during the call, and with a soft client this is not very well tolerated.  In some instances the jitter figure was up as high as 14, which the TAC engineer told me was a killer for softphones.  We&#8217;ve been finding that hard phones actually deal with this a lot better.</p>
<p>So, I guess we need to review the QoS on the network then&#8230;    <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=227&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/11/15/shoreware-director-tmsncc-log-file-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Shoretel Client Debugging</title>
		<link>http://dataplumber.wordpress.com/2011/11/14/shoretel-client-debugging/</link>
		<comments>http://dataplumber.wordpress.com/2011/11/14/shoretel-client-debugging/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 18:26:02 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[Shoretel]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=215</guid>
		<description><![CDATA[Sometimes it is necessary to debug issues from the client perspective, so here is a quick guide with screenshots on how to do this. First you switch on the debugging, then wait until the problem recurs. When it does, note the exact time the problem happened and generate a zip file containing the logs for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=215&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is necessary to debug issues from the client perspective, so here is a quick guide with screenshots on how to do this.</p>
<p>First you switch on the debugging, then wait until the problem recurs. When it does, note the exact time the problem happened and generate a zip file containing the logs for your support people to analyse.</p>
<p>The steps are described in detail below.<span id="more-215"></span></p>
<p>1. Open up Communicator and make sure your cursor is blinking in the &#8220;quickdial&#8221; bar at the top.  Then press CTRL-F12:</p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/shoretelcommunicatordiags.png"><img class="alignleft size-full wp-image-216" title="ShoretelCommunicatorDiags" src="http://dataplumber.files.wordpress.com/2011/11/shoretelcommunicatordiags.png?w=510" alt=""   /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>2. A diagnostic pane will appear.  Select the checkboxes as per the following two screenshots, and ensure that debug level is set to 7 in the second:</p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/communicatordiags1.png"><img class="alignleft size-full wp-image-217" title="communicatorDiags1" src="http://dataplumber.files.wordpress.com/2011/11/communicatordiags1.png?w=510&#038;h=572" alt="" width="510" height="572" /></a></p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/communicatordiags2.png"><img class="alignleft size-full wp-image-218" title="communicatorDiags2" src="http://dataplumber.files.wordpress.com/2011/11/communicatordiags2.png?w=510&#038;h=572" alt="" width="510" height="572" /></a></p>
<p>3. Apply the changes and wait until the problem happens again.  When it does, note the time as precisely as you can.</p>
<p>4. Click the Start button in Windows, then Shoretel | Support | Send Client Logs.</p>
<p>5. The following windows will appear enabling you to collect the logs, zip them up and send them on an email to your support representative:</p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs1.png"><img class="alignleft size-full wp-image-219" title="sendclientlogs1" src="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs1.png?w=510" alt=""   /></a></p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs2.png"><img class="alignleft size-full wp-image-220" title="sendclientlogs2" src="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs2.png?w=510" alt=""   /></a></p>
<p><a href="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs3.png"><img class="alignleft size-full wp-image-221" title="sendclientlogs3" src="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs3.png?w=510" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=215&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/11/14/shoretel-client-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/shoretelcommunicatordiags.png" medium="image">
			<media:title type="html">ShoretelCommunicatorDiags</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/communicatordiags1.png" medium="image">
			<media:title type="html">communicatorDiags1</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/communicatordiags2.png" medium="image">
			<media:title type="html">communicatorDiags2</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs1.png" medium="image">
			<media:title type="html">sendclientlogs1</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs2.png" medium="image">
			<media:title type="html">sendclientlogs2</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2011/11/sendclientlogs3.png" medium="image">
			<media:title type="html">sendclientlogs3</media:title>
		</media:content>
	</item>
		<item>
		<title>Shoretel TMS event ID 246</title>
		<link>http://dataplumber.wordpress.com/2011/11/10/shoretel-tms-event-id-246/</link>
		<comments>http://dataplumber.wordpress.com/2011/11/10/shoretel-tms-event-id-246/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 15:01:10 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[Shoretel]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=209</guid>
		<description><![CDATA[We&#8217;ve been consistently getting an informational event in our Director&#8217;s logs from TMS over the past few weeks and until now, I wasn&#8217;t sure where it was coming from.  Finally got to the bottom of it the other day though, with a bit of help from a colleague.  It seems that a mis-configured SIP device [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=209&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been consistently getting an informational event in our Director&#8217;s logs from TMS over the past few weeks and until now, I wasn&#8217;t sure where it was coming from.  Finally got to the bottom of it the other day though, with a bit of help from a colleague.  It seems that a mis-configured SIP device was probably the issue.<span id="more-209"></span></p>
<p>There are actually two events, both ID 246, but subtly different:</p>
<blockquote><p>
The Telephony Management Server has logged an informational debug message. The debug message contents are:<br />
.\NccMsgZin.cpp(1470) : Assertion failed: !&#8221;SIPReg: Error sending SIP Register&#8221;</p>
<p>The Telephony Management Server has logged an informational debug message. The debug message contents are:<br />
.\NccMsgZin.cpp(1460) : Assertion failed: !&#8221;SIPReg: Error sending SIP Register&#8221;</p></blockquote>
<p>I managed to repoduce this in two ways. We have Shoretel 12 CR3 (build 17.10.1730.0) here and a Shoretel Mobility Router running 4.5.  What was causing these messages to appear every two minutes was a user configured on the SMR that didn&#8217;t exist in the Director user database.  So the SMR must have been trying to register on the user&#8217;s behalf, but there was no such account.  This was happening every two minutes.  Disable the user, and the error messages stop appearing.</p>
<p>I also noticed this when configuring a Pancode SIP doorphone onto the system.  I hadn&#8217;t set the user&#8217;s SIP password in Director correctly &#8211; as a result, I was getting about 10 of these messages every minute as the doorphone tried to register with the SIP proxy.  Once I got the password set correctly, all the errors stopped occurring.</p>
<p>It does seem a shame that this is not being reported in more plain english &#8211; I may well log it as an improvement request on the Shoretel suggestions site!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=209&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/11/10/shoretel-tms-event-id-246/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu 11.10 upgrade &#8211; bit of a pain in the a**</title>
		<link>http://dataplumber.wordpress.com/2011/10/18/ubuntu-11-10-upgrade-bit-of-a-pain-in-the-a/</link>
		<comments>http://dataplumber.wordpress.com/2011/10/18/ubuntu-11-10-upgrade-bit-of-a-pain-in-the-a/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 11:23:48 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=207</guid>
		<description><![CDATA[Just upgraded to 11.10 (from 11.4) over night and it all looked good until a reboot while eating toast this morning.  Pretty disappointing, and this has cost me about 3 hours of my day so far. The system booted up but said &#8220;waiting for network&#8221; or something like that in the Ubuntu splash screen.  It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=207&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just upgraded to 11.10 (from 11.4) over night and it all looked good until a reboot while eating toast this morning.  Pretty disappointing, and this has cost me about 3 hours of my day so far.</p>
<p>The system booted up but said &#8220;waiting for network&#8221; or something like that in the Ubuntu splash screen.  It then said &#8220;Waiting another 60 seconds for network&#8221; and never came to a login prompt.  If you press escape at that point, you can see that there&#8217;s some kind of DBUS problem.<span id="more-207"></span></p>
<p>After some experimentation and finally <a href="http://ubuntuforums.org/showthread.php?t=1859432">this thread</a>, I did the following:</p>
<p>Press CTRL-ALT-F1 to get a login prompt.</p>
<p>Log in as myself.</p>
<p>sudo mv /var/run /run<br />
sudo mv /var/lock /run/lock<br />
sudo rmdir /var/run<br />
sudo rmdir /var/lock<br />
sudo ln -s /run /var/run<br />
sudo ln -s /run/lock /var/lock<br />
rm /run/dbus/*</p>
<p>reboot</p>
<p>What a pain in the backside.  I won&#8217;t be upgrading too quickly in the future.  I think Ubuntu has some way to go if a distribution upgrade can cause such a headache for the average user.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/207/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=207&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/10/18/ubuntu-11-10-upgrade-bit-of-a-pain-in-the-a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Interesting &#8211; well, only if you&#8217;re really boring.</title>
		<link>http://dataplumber.wordpress.com/2011/09/05/interesting-well-only-if-youre-really-boring/</link>
		<comments>http://dataplumber.wordpress.com/2011/09/05/interesting-well-only-if-youre-really-boring/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 18:47:01 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[JunOS]]></category>
		<category><![CDATA[srx]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=203</guid>
		<description><![CDATA[Just upgrading Junos from 10.4R6 to 11.1R2 to resolve a particularly intractable IPSec VPN issue (there&#8217;s a Cisco ASA involved).  I just noticed that all the 10.4 releases of Junos for branch SRX are about 210MB, but the new 11.1 releases are 136MB.  Makes me wonder what the hell they&#8217;ve taken out.  Hopefully nothing to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=203&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just upgrading Junos from 10.4R6 to 11.1R2 to resolve a particularly intractable IPSec VPN issue (there&#8217;s a Cisco ASA involved).  I just noticed that all the 10.4 releases of Junos for branch SRX are about 210MB, but the new 11.1 releases are 136MB.  Makes me wonder what the hell they&#8217;ve taken out.  Hopefully nothing to do with IPSec:</p>
<pre>-rw-r--r-- 1 andrew andrew 210M 2011-02-28 16:01 junos-srxsme-10.4R2.7-domestic.tgz
-rw-r--r-- 1 andrew andrew 211M 2011-05-06 11:02 junos-srxsme-10.4R3.4-domestic.tgz
-rw-r--r-- 1 andrew andrew 211M 2011-09-01 10:27 junos-srxsme-10.4R6.5-domestic.tgz
-rw-r--r-- 1 andrew andrew 137M 2011-05-05 09:55 junos-srxsme-11.1R1.10-domestic.tgz
-rw-r--r-- 1 andrew andrew 137M 2011-06-06 17:00 junos-srxsme-11.1R2.3-domestic.tgz
</pre>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=203&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/09/05/interesting-well-only-if-youre-really-boring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux backup stuff</title>
		<link>http://dataplumber.wordpress.com/2011/07/31/linux-backup-stuff/</link>
		<comments>http://dataplumber.wordpress.com/2011/07/31/linux-backup-stuff/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 11:43:03 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=200</guid>
		<description><![CDATA[Booted my PC up with a Linux CD yesterday afternoon to do a &#8216;dd&#8217; image of the hard disk so that I have a checkpoint in time to image my machine back to.  Only thing is, it was still only halfway through making the 300GB image by 9am this morning after running all night.  The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=200&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Booted my PC up with a Linux CD yesterday afternoon to do a &#8216;dd&#8217; image of the hard disk so that I have a checkpoint in time to image my machine back to.  Only thing is, it was still only halfway through making the 300GB image by 9am this morning after running all night.  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><span id="more-200"></span>The command I issued was &#8220;dd if=/dev/sda of=/media/Iomega\ HDD/laptop-image-30th-july-2011.img&#8221; &#8211; which by default will take 512Kb blocks at a time and write them to the image file.</p>
<p>Instead, I stuck the options &#8220;bs=100M conv=notrunc&#8221; on the end of it and the process has speeded up massively.  This tells dd to copy 100MB blocks instead.  After about 20 minutes, I&#8217;m already 10% of the way through making the image.</p>
<p>Another helpful thing I discovered this morning is the -h switch on the ls command. -h makes the output &#8216;human-readable&#8217; &#8211; i.e. it uses K, M and G to indicate kilobytes, megabytes and gigabytes. See below:</p>
<pre>ubuntu@ubuntu:/media/Iomega HDD$ ls -lh
total 29G
drwx------ 1 ubuntu ubuntu    0 2011-03-26 21:03 Old drive images
drwx------ 1 ubuntu ubuntu 4.0K 2011-02-20 15:15 Study resources
-rw------- 1 ubuntu ubuntu  29G 2011-07-31 11:37 laptop-image-30th-jul-2011.img
drwx------ 1 ubuntu ubuntu    0 2008-06-11 14:19 System Volume Information
ubuntu@ubuntu:/media/Iomega HDD$ 
</pre>
<p>All this is probably no news to some people, but I&#8217;ve been using Linux for about 10 years and didn&#8217;t know all this stuff for some reason.  You learn something new every day&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=200&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/07/31/linux-backup-stuff/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Nice post on Shoretel QoS settings</title>
		<link>http://dataplumber.wordpress.com/2011/07/29/nice-post-on-shoretel-qos-settings/</link>
		<comments>http://dataplumber.wordpress.com/2011/07/29/nice-post-on-shoretel-qos-settings/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 17:01:31 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[Shoretel]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=198</guid>
		<description><![CDATA[This is a really useful post.  Just sticking it here for reference&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=198&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.interworks.com/blogs/tlester/2010/08/25/how-setup-qos-your-shoretel-phones-get-rid-static" target="_blank">This</a> is a really useful post.  Just sticking it here for reference&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=198&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/07/29/nice-post-on-shoretel-qos-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
		<item>
		<title>Juniper SRX &#8211; Dynamic VPN Wizard</title>
		<link>http://dataplumber.wordpress.com/2011/07/19/juniper-srx-dynamic-vpn-wizard/</link>
		<comments>http://dataplumber.wordpress.com/2011/07/19/juniper-srx-dynamic-vpn-wizard/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 15:43:53 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[JunOS]]></category>
		<category><![CDATA[srx]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/?p=194</guid>
		<description><![CDATA[Just managed to set up a Juniper Dynamic VPN using the web interface&#8217;s wizard in about half an hour &#8211; bonzer compared to the last time I did it at the CLI, which seemed to take two days. There are a couple of things to watch out for though.  Although the wizard is very good, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=194&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just managed to set up a Juniper Dynamic VPN using the web interface&#8217;s wizard in about half an hour &#8211; bonzer compared to the last time I did it at the CLI, which seemed to take two days.</p>
<p>There are a couple of things to watch out for though.  <span id="more-194"></span>Although the wizard is very good, it doesn&#8217;t do a couple of important things for you that are going to stop things working.  (This is based on the assumption that your SRX has a fairly default config, and your VPN clients are coming in on the &#8216;untrust&#8217; zone):</p>
<ul>
<li>You will need to enable the HTTP and HTTPS on the untrust interface (e.g. &#8216;set sys services web-management http interface ge-0/0/0&#8242; and the same again for https)</li>
<li>Be sure to permit HTTP and HTTPS inbound on the untrust zone (e.g. &#8216;set security zone security-zone untrust host-inbound-traffic system-services http&#8217; and the same again for https)</li>
</ul>
<p>The resulting config from the wizard looks like this (ge-0/0/14 is my outside/untrust interface in this instance):</p>
<pre>[edit]
root# show security
ike {
    policy ike_pol_wizard_dyn_vpn {
        mode aggressive;        # Must be aggressive, not main mode
        proposal-set compatible;
        pre-shared-key ascii-text "$9$RkbElM7Nb2oGVw.P"; ## SECRET-DATA
    }
    gateway gw_wizard_dyn_vpn {
        ike-policy ike_pol_wizard_dyn_vpn;
        dynamic {
            hostname NoName;
            connections-limit 50;
            ike-user-type group-ike-id;
        }
        external-interface ge-0/0/14.0;
        xauth access-profile remote_access_profile;
    }
}
ipsec {
    policy ipsec_pol_wizard_dyn_vpn {
        perfect-forward-secrecy {
            keys group2;
        }
        proposal-set compatible;
    }                                   
    vpn wizard_dyn_vpn {
        ike {
            gateway gw_wizard_dyn_vpn;
            ipsec-policy ipsec_pol_wizard_dyn_vpn;
        }
    }
}
zones {
    security-zone trust {
        host-inbound-traffic {
            system-services {
                all;
            }
            protocols {
                all;
            }
        }
        interfaces {
            vlan.0;
            ge-0/0/0.0;
        }
    }
    security-zone untrust {
        screen untrust-screen;
        host-inbound-traffic {
            system-services {
                ike;
                http;
                https;
            }                           
        }
        interfaces {
            ge-0/0/14.0;
        }
    }
}
policies {
    from-zone trust to-zone untrust {
        policy trust-to-untrust {
            match {
                source-address any;
                destination-address any;
                application any;
            }
            then {
                permit;
            }
        }
    }
    from-zone untrust to-zone trust {
        policy policy_in_wizard_dyn_vpn {
            match {
                source-address any;     
                destination-address any;
                application any;
            }
            then {
                permit {
                    tunnel {
                        ipsec-vpn wizard_dyn_vpn;
                    }
                }
            }
        }
    }
}
dynamic-vpn {
    access-profile remote_access_profile;
    clients {
        wizard-dyn-group {
            remote-protected-resources {
                192.168.5.0/24;
            }
            ipsec-vpn wizard_dyn_vpn;
            user {
                andy;                   
            }
        }
    }
}</pre>
<p>And the other bit the wizard didn&#8217;t do:</p>
<pre>root# show system services
ssh;
telnet;
xnm-clear-text;
web-management {
    http {
        interface [ vlan.0 ge-0/0/0.0 ge-0/0/14.0 ];
    }
    https {
        system-generated-certificate;
        interface [ vlan.0 ge-0/0/14.0 ];
    }
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dataplumber.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dataplumber.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dataplumber.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dataplumber.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&amp;blog=519414&amp;post=194&amp;subd=dataplumber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2011/07/19/juniper-srx-dynamic-vpn-wizard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>
	</item>
	</channel>
</rss>
