<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-CA">
	<id>https://wiki.smus.ca/index.php?action=history&amp;feed=atom&amp;title=Fixing_Netrack_vs_Sonicwall_Discrepancies</id>
	<title>Fixing Netrack vs Sonicwall Discrepancies - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smus.ca/index.php?action=history&amp;feed=atom&amp;title=Fixing_Netrack_vs_Sonicwall_Discrepancies"/>
	<link rel="alternate" type="text/html" href="https://wiki.smus.ca/index.php?title=Fixing_Netrack_vs_Sonicwall_Discrepancies&amp;action=history"/>
	<updated>2026-05-05T00:57:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.smus.ca/index.php?title=Fixing_Netrack_vs_Sonicwall_Discrepancies&amp;diff=19983&amp;oldid=prev</id>
		<title>Sinan.soykut: /* Fixing communication problems between Netrack and Sonicwall */</title>
		<link rel="alternate" type="text/html" href="https://wiki.smus.ca/index.php?title=Fixing_Netrack_vs_Sonicwall_Discrepancies&amp;diff=19983&amp;oldid=prev"/>
		<updated>2017-11-02T16:00:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Fixing communication problems between Netrack and Sonicwall&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-CA&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:00, 2 November 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Fixing communication problems between Netrack and Sonicwall ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Fixing communication problems between Netrack and Sonicwall ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Attempt to manually run the shell script which &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;communicate &lt;/del&gt;to the sonicwall (as root on netrack)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Attempt to manually run the shell script which &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;communicates &lt;/ins&gt;to the sonicwall (as root on netrack)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/bin/bash /tmp/sonicwall.sh &amp;gt;&amp;gt; /tmp/sonicwall.log&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/bin/bash /tmp/sonicwall.sh &amp;gt;&amp;gt; /tmp/sonicwall.log&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sinan.soykut</name></author>
	</entry>
	<entry>
		<id>https://wiki.smus.ca/index.php?title=Fixing_Netrack_vs_Sonicwall_Discrepancies&amp;diff=19982&amp;oldid=prev</id>
		<title>Sinan.soykut at 15:48, 2 November 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.smus.ca/index.php?title=Fixing_Netrack_vs_Sonicwall_Discrepancies&amp;diff=19982&amp;oldid=prev"/>
		<updated>2017-11-02T15:48:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.smus.ca/index.php?title=Fixing_Netrack_vs_Sonicwall_Discrepancies&amp;amp;diff=19982&amp;amp;oldid=19981&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Sinan.soykut</name></author>
	</entry>
	<entry>
		<id>https://wiki.smus.ca/index.php?title=Fixing_Netrack_vs_Sonicwall_Discrepancies&amp;diff=19981&amp;oldid=prev</id>
		<title>Sinan.soykut: Created page with &quot;Occasionally Netrack and Sonicwall will get out of sync. Netrack will still be monitoring and notifying students of exceeded bandwidth caps, but the caps won&#039;t be enforced by...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.smus.ca/index.php?title=Fixing_Netrack_vs_Sonicwall_Discrepancies&amp;diff=19981&amp;oldid=prev"/>
		<updated>2017-11-02T15:46:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Occasionally Netrack and Sonicwall will get out of sync. Netrack will still be monitoring and notifying students of exceeded bandwidth caps, but the caps won&amp;#039;t be enforced by...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Occasionally Netrack and Sonicwall will get out of sync. Netrack will still be monitoring and notifying students of exceeded bandwidth caps, but the caps won&amp;#039;t be enforced by the sonicwall. &lt;br /&gt;
&lt;br /&gt;
To fix this:&lt;br /&gt;
&lt;br /&gt;
* Determine the state of Netrack and Sonicwall. In a browser, open the websites for each service: &lt;br /&gt;
** https://netrack.smus.ca/index.php?next_page=admin/report.php&lt;br /&gt;
** https://sonicwall.smus.ca/main.html&lt;br /&gt;
* to find the constrained users in the sonicwall, navigate down this path&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Network &amp;gt; Address Objects &amp;gt; input into search box: &amp;#039;Penalty&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* make a note of which IPs are constrained on Netrack but not Sonicwall, and vice versa.&lt;br /&gt;
* SSH to Netrack&lt;br /&gt;
* log into the sonicwall analyzer database (the password can be pulled from vars.php, or found in keepass,)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
head /var/www/v2/overrides/vars.php&lt;br /&gt;
psql -h 172.16.0.150 -U analyzer -W -p 5029 -d syslogs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* plug the list of IPs (surrounded by quotes and separated by commas) that are in Netrack, but not in sonicwall into this query:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT * FROM (SELECT DISTINCT ON (ip) constrained_id, ip FROM constrained WHERE constrained=1 AND ip IN (PUT_IP_LIST_HERE) ORDER BY ip, constrained_id DESC) AS sonicwall ORDER BY constrained_id DESC;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will return something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
syslogs=# SELECT * FROM (SELECT DISTINCT ON (ip) constrained_id, ip FROM constrained WHERE constrained=1 AND ip IN (&amp;#039;172.17.124.80&amp;#039;, &amp;#039;172.17.124.53&amp;#039;, &amp;#039;172.17.120.121&amp;#039;, &amp;#039;172.17.120.116&amp;#039;, &amp;#039;172.17.116.230&amp;#039;, &amp;#039;172.17.116.191&amp;#039;, &amp;#039;172.17.112.168&amp;#039;, &amp;#039;172.17.112.150&amp;#039;, &amp;#039;2620:00ed:4000:177c:e53e:7fbd:9b8e:bf28&amp;#039;, &amp;#039;2620:00ed:4000:1778:71bd:5cf0:68af:6c59&amp;#039;, &amp;#039;2620:00ed:4000:1770:8921:1e45:25f0:6017&amp;#039;, &amp;#039;2620:00ed:4000:1770:732e:16f4:2b04:46ae&amp;#039;, &amp;#039;2620:00ed:4000:1770:5a0c:41cc:b7b7:b779&amp;#039;) ORDER BY ip, constrained_id DESC) AS sonicwall ORDER BY constrained_id DESC;&lt;br /&gt;
 constrained_id |                   ip&lt;br /&gt;
----------------+----------------------------------------&lt;br /&gt;
            774 | 172.17.124.53&lt;br /&gt;
            773 | 172.17.112.168&lt;br /&gt;
            772 | 2620:00ed:4000:1770:5a0c:41cc:b7b7:b779&lt;br /&gt;
            771 | 172.17.112.150&lt;br /&gt;
            770 | 172.17.116.230&lt;br /&gt;
            768 | 172.17.120.121&lt;br /&gt;
            767 | 172.17.124.80&lt;br /&gt;
            766 | 2620:00ed:4000:1778:71bd:5cf0:68af:6c59&lt;br /&gt;
            765 | 2620:00ed:4000:1770:732e:16f4:2b04:46ae&lt;br /&gt;
            764 | 172.17.116.191&lt;br /&gt;
            763 | 2620:00ed:4000:177c:e53e:7fbd:9b8e:bf28&lt;br /&gt;
            762 | 2620:00ed:4000:1770:8921:1e45:25f0:6017&lt;br /&gt;
            761 | 172.17.120.116&lt;br /&gt;
(13 rows)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* make a list of the constrained_ids, and plug it into this query:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UPDATE constrained SET constrained=0 WHERE constrained_id IN (PUT_ID_LIST_HERE);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sinan.soykut</name></author>
	</entry>
</feed>