[mrtg] Help graphing MAC address count from Cisco switch

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Sat Mar 19 03:20:49 CET 2016


> Hello,
>
> I'm trying to create a graph showing the # of devices connected to a
> particular network.  The simplest way I can think of to do so is to
> grab the # of MAC addresses in the CAM table for that particular VLAN
> from the L3 switch which is the default gateway for the network.
[...]
>
> I found this command online, and it returns an integer which
> represents the # of MAC addresses the switch knows about for the
> particular VLAN in question (VLAN 40 as shown below):
>
> snmpwalk -v 2c -c public at 30 10.0.1.2 .1.3.6.1.2.1.17.4.3.1.1 |wc -l

I found this while reading the documentation:
Counted SNMP Walk

You probably want to use that instead of the external monitoring script.




More information about the mrtg mailing list