<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Packet-Capture on vlan51</title><link>https://vlan51.com/tags/packet-capture/</link><description>Recent content in Packet-Capture on vlan51</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Thu, 01 Oct 2015 00:00:00 +0000</lastBuildDate><atom:link href="https://vlan51.com/tags/packet-capture/index.xml" rel="self" type="application/rss+xml"/><item><title>Command-Line Packet Capture on Citrix NetScaler with nstrace</title><link>https://vlan51.com/netscaler/packet-capture-nstrace/</link><pubDate>Thu, 01 Oct 2015 00:00:00 +0000</pubDate><guid>https://vlan51.com/netscaler/packet-capture-nstrace/</guid><description>&lt;p&gt;How to capture packets on a Citrix NetScaler from the command line using &lt;code&gt;nstrace&lt;/code&gt;, then open the capture in Wireshark.&lt;/p&gt;&#10;&lt;h2 id="start-a-capture"&gt;Start a capture &lt;a class="anchor" href="#start-a-capture" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;SSH to the NetScaler and, at the &lt;code&gt;&amp;gt;&lt;/code&gt; prompt, run &lt;code&gt;nstrace&lt;/code&gt; with a filter:&lt;/p&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&lt;span&gt;cli&lt;/span&gt;&lt;button class="copy" type="button" aria-label="Copy to clipboard"&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;nstrace -filter &amp;#34;DESTIP == 10.0.0.20&amp;#34; -link ENABLED -size 0&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;p&gt;&lt;code&gt;-size 0&lt;/code&gt; captures the entire packet. By default NetScaler only captures the headers.&lt;/p&gt;&#10;&lt;p&gt;To combine filters, put the whole expression in quotes and separate conditions with &lt;code&gt;||&lt;/code&gt; (or &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt;):&lt;/p&gt;</description></item></channel></rss>