[AusNOG] Switch Port Utilisation Monitoring

Joshua D'Alton joshua at railgun.com.au
Thu Apr 14 13:46:30 EST 2016


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).

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.

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?

On Thu, Apr 14, 2016 at 1:39 PM, Ben Buxton <bb.ausnog at bb.cactii.net> wrote:

>
> Define "used".
>
> Link up or actually carrying (meaningful) traffic?
>
> 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).
>
> For the latter, a raw packet count might suffice, but you'll have
> difficulty differentiating idle/keepalive traffic if the amount is low.
>
> 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).
>
> BB
>
> On Thu, Apr 14, 2016 at 1:28 PM Tim Raphael <raphael.timothy at gmail.com>
> wrote:
>
>> Lets assume I have SNMP available.
>>
>> Will Cacti be able to tell me over (for example) a week how many and
>> which switch ports are used?
>>
>> - Tim
>>
>>
>>
>>
>> On 14 Apr 2016, at 11:27 AM, Paul Wilkins <paulwilkins369 at gmail.com>
>> wrote:
>>
>> MRTG and/or Cacti.
>>
>> (Assuming a "managed" switch ie. SNMP)
>>
>> Kind regards
>>
>> Paul Wilkins
>>
>> On 14 April 2016 at 13:20, Tim Raphael <raphael.timothy at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I would like a tool that could tell me exactly how many switch ports are
>>> in use across a given time period.
>>> 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.
>>>
>>> Also, as per usual, the cheaper (free?) the better!
>>>
>>> Any ideas?
>>>
>>> - Tim
>>>
>>>
>>> _______________________________________________
>>> AusNOG mailing list
>>> AusNOG at lists.ausnog.net
>>> http://lists.ausnog.net/mailman/listinfo/ausnog
>>>
>>
>>
>> _______________________________________________
>> AusNOG mailing list
>> AusNOG at lists.ausnog.net
>> http://lists.ausnog.net/mailman/listinfo/ausnog
>>
>
> _______________________________________________
> AusNOG mailing list
> AusNOG at lists.ausnog.net
> http://lists.ausnog.net/mailman/listinfo/ausnog
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ausnog.net/pipermail/ausnog/attachments/20160414/49ed4732/attachment.html>


More information about the AusNOG mailing list