<div dir="ltr">I used Cacti to do a similar thing with L3DSL terminated sessions - in this case should just be a matter of SNMP walking until you find the bits that talk about switchports, and then seeing what is up/down (or admin'd).<div><br></div><div>Probably won't be an easy Cacti template though, but Python + SNMPwalk + some awk/sed/bash coolness should give you a number, then just feed that into a crond or .rrd  and go for your life.</div><div><br></div><div>One thing, this'd just be the raw data, ie you'll have duplications since obviously lots of switches will be connected to each other, but if you somehow could determine what is access/distribution (ie customer/non-backbone ports), then that is probably ideally what you are after?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 1:39 PM, Ben Buxton <span dir="ltr"><<a href="mailto:bb.ausnog@bb.cactii.net" target="_blank">bb.ausnog@bb.cactii.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div>Define "used".<div><br></div><div>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).</div><div><br></div><div>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).</div><span class="HOEnZb"><font color="#888888"><div><br>BB</div></font></span><div><div class="h5"><div><br><div class="gmail_quote"><div dir="ltr">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:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Lets assume I have SNMP available.</div><div><br></div><div>Will Cacti be able to tell me over (for example) a week how many and which switch ports are used?</div></div><div style="word-wrap:break-word"><div><br></div><div>- Tim</div></div><div style="word-wrap:break-word"><div><br></div><div><br></div><div><br></div><br><div><blockquote type="cite"><div>On 14 Apr 2016, at 11:27 AM, Paul Wilkins <<a href="mailto:paulwilkins369@gmail.com" target="_blank">paulwilkins369@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div><div>MRTG and/or Cacti.<br><br></div><div>(Assuming a "managed" switch ie. SNMP)<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 13:20, Tim Raphael <span dir="ltr"><<a href="mailto:raphael.timothy@gmail.com" target="_blank">raphael.timothy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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" rel="noreferrer" target="_blank">http://lists.ausnog.net/mailman/listinfo/ausnog</a><br>
</blockquote></div><br></div>
</div></blockquote></div><br></div>_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.ausnog.net/mailman/listinfo/ausnog</a><br>
</blockquote></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>