Skip to content

Conversation

@nuclearcat
Copy link

In ISPs, expecially users facing switches, it is important to monitor number of macs per VLAN. Sometimes due misconfiguration, sometimes malicious intent, and just due growth it is easy to miss moment when switch will exceed internal resources.

This patch tested on NXOS: version 9.3(10), Nexus3064 Example snippet:

cisco_mactable_count{target="10.250.25.2",vlan="2015"} 86 
cisco_mactable_count{target="10.250.25.2",vlan="2016"} 91 
cisco_mactable_count{target="10.250.25.2",vlan="2018"} 160 
cisco_mactable_count{target="10.250.25.2",vlan="2019"} 330

@nuclearcat
Copy link
Author

Docker image: nuclearcat/cisco_exporter

@nuclearcat nuclearcat force-pushed the add-mactable-metrics branch from 3a4f7ab to e8ab2f6 Compare May 30, 2025 22:01
In ISPs, expecially users facing switches, it is important to monitor
number of macs per VLAN. Sometimes due misconfiguration, sometimes
malicious intent, and just due growth it is easy to miss moment when
switch will exceed internal resources.

This patch tested on NXOS: version 9.3(10), Nexus3064
Example snippet:

cisco_mactable_count{target="10.250.25.2",vlan="2015"} 86
cisco_mactable_count{target="10.250.25.2",vlan="2016"} 91
cisco_mactable_count{target="10.250.25.2",vlan="2018"} 160
cisco_mactable_count{target="10.250.25.2",vlan="2019"} 330

Signed-off-by: Denys Fedoryshchenko <[email protected]>
@nuclearcat nuclearcat force-pushed the add-mactable-metrics branch from e8ab2f6 to 8d025ca Compare May 30, 2025 22:02
@nuclearcat nuclearcat marked this pull request as draft June 1, 2025 08:48
@nuclearcat
Copy link
Author

I am investigating report that probably it is causing CPU usage spike in old version of NX-OS.

@nuclearcat
Copy link
Author

Load spike caused on switch with 40k MACs with 300+ vlans, with 2 minute polling interval. Changing interval to larger value solved problem.

@nuclearcat nuclearcat marked this pull request as ready for review June 1, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant