<div dir="ltr"><div><div>The problem with traps, is you may have ports you never hear from. eg. If you have a mix of 24 and 48 ports, and you haven't heard from the top half of a switch. Essentially you'd have to create your own inventory of switchport interfaces.<br></div><div><br></div>Kind regards<br><br></div>Paul Wilkins<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 April 2016 at 14:31, Nathan Phelan <span dir="ltr"><<a href="mailto:nathan@interconnekt.com.au" target="_blank">nathan@interconnekt.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-AU">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Logging SNMP traps to some sort of database (as per BB’s suggestion) sounds like the way to go.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If you don’t feel like rolling your own though you could try
<a href="http://www.librenms.org/" target="_blank">http://www.librenms.org/</a> (it’s a fork of Observium) – it has a per device event log (stored in mysql) which is searchable.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Nathan<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> AusNOG [mailto:<a href="mailto:ausnog-bounces@lists.ausnog.net" target="_blank">ausnog-bounces@lists.ausnog.net</a>]
<b>On Behalf Of </b>Ben Buxton<span class=""><br>
<b>Sent:</b> Thursday, 14 April 2016 1:39 PM<br>
</span><b>To:</b> Tim Raphael <<a href="mailto:raphael.timothy@gmail.com" target="_blank">raphael.timothy@gmail.com</a>>; Paul Wilkins <<a href="mailto:paulwilkins369@gmail.com" target="_blank">paulwilkins369@gmail.com</a>><br>
<b>Cc:</b> <<a href="mailto:ausnog@lists.ausnog.net" target="_blank">ausnog@lists.ausnog.net</a>> <<a href="mailto:ausnog@lists.ausnog.net" target="_blank">ausnog@lists.ausnog.net</a>><span class=""><br>
<b>Subject:</b> Re: [AusNOG] Switch Port Utilisation Monitoring<u></u><u></u></span></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Define "used".<u></u><u></u></p><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Link up or actually carrying (meaningful) traffic?<br>
<br>
For the former, you'd want to capture events as they happen, typically via snmp traps. Then just look at how many reported a link up trap (including those that havent reported link down since the last interval).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">For the latter, a raw packet count might suffice, but you'll have difficulty differentiating idle/keepalive traffic if the amount is low.<br>
<br>
Personally, I'd go with snmp traps/polls injected into Prometheus, but many people havent the time or inclination to change their mindset into vector/timeseries based systems (despite the advantages).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
BB<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, Apr 14, 2016 at 1:28 PM Tim Raphael <<a href="mailto:raphael.timothy@gmail.com" target="_blank">raphael.timothy@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Lets assume I have SNMP available.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Will Cacti be able to tell me over (for example) a week how many and which switch ports are used?<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">- Tim<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On 14 Apr 2016, at 11:27 AM, Paul Wilkins <<a href="mailto:paulwilkins369@gmail.com" target="_blank">paulwilkins369@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">MRTG and/or Cacti.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">(Assuming a "managed" switch ie. SNMP)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Kind regards<u></u><u></u></p>
</div>
<p class="MsoNormal">Paul Wilkins<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On 14 April 2016 at 13:20, Tim Raphael <<a href="mailto:raphael.timothy@gmail.com" target="_blank">raphael.timothy@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Hi All,<br>
<br>
I would like a tool that could tell me exactly how many switch ports are in use across a given time period.<br>
This is an enterprise environment so it’s not just the case of taking a snapshot in time, devices turn on and off so I’d want something that could monitor the port counts for a week or so and spit out a report.<br>
<br>
Also, as per usual, the cheaper (free?) the better!<br>
<br>
Any ideas?<br>
<br>
- Tim<br>
<br>
<br>
_______________________________________________<br>
AusNOG mailing list<br>
<a href="mailto:AusNOG@lists.ausnog.net" target="_blank">AusNOG@lists.ausnog.net</a><br>
<a href="http://lists.ausnog.net/mailman/listinfo/ausnog" target="_blank">http://lists.ausnog.net/mailman/listinfo/ausnog</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
AusNOG mailing list<br>
<a href="mailto:AusNOG@lists.ausnog.net" target="_blank">AusNOG@lists.ausnog.net</a><br>
<a href="http://lists.ausnog.net/mailman/listinfo/ausnog" target="_blank">http://lists.ausnog.net/mailman/listinfo/ausnog</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div></div></div>
</div>
</div>
<br>_______________________________________________<br>
AusNOG mailing list<br>
<a href="mailto:AusNOG@lists.ausnog.net">AusNOG@lists.ausnog.net</a><br>
<a href="http://lists.ausnog.net/mailman/listinfo/ausnog" rel="noreferrer" target="_blank">http://lists.ausnog.net/mailman/listinfo/ausnog</a><br>
<br></blockquote></div><br></div>