Script to show the total number of @MAC in each Vlan ?

  • 0
  • 1
  • Problem
  • Updated 2 years ago
  • Solved
hi everyone,
I need a command or script to get the total number of MAC@ in a VLAN
thanks for your help
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Patrick Voss

Patrick Voss, Alum

  • 11,574 Points 10k badge 2x thumb
show fdb vlan <VLAN NAME>

Please let me know if this is what you are looking for.
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb
I try this command : show mac-learning domain vlan vlan id summary and it's working but actually is showing the total number of Mac@ in one Vlan or a range of vlan . But me, I m looking for the number of mac@ by Vlan
example :
Vlan 1 = 420
vlan 2 = 50
......
vlan n = 389

thanks for your help
Photo of Henrique

Henrique, Employee

  • 10,302 Points 10k badge 2x thumb
Hi Mikou,

You can use the following command:

show fdb stats vlan <vlan_name>  {no-refresh}
Photo of Henrique

Henrique, Employee

  • 10,302 Points 10k badge 2x thumb
Also, if you want to see the numbers for all vlan you can use show fdb stats vlan all.
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb
hi Henrique,
Unfortunately its doesn't work, but like I said before, I can see the numbers for all Vlan or just for one vlan by using  show mac-learning domain vlan vlan id summary
what I need is a script/command that allows me to show the number by VLAN in one time (not total number in all vlans)

example :
Vlan 1 = 420
vlan 2 = 50
......
vlan n = 389
Photo of Patrick Voss

Patrick Voss, Alum

  • 11,574 Points 10k badge 2x thumb
Hi Mikou,

I believe we are confused about what you are asking for. The command Henrique provided outputs this:

FDB Statistics                                   Tue Mar  8 02:31:05 2016
VLAN                       MAC Addresses     Dynamic      Static    Dropped
==============================================================================
Red                         9                             1                 0           0
Default                    6                             0                 0           0
==============================================================================

This shows the amount of mac addresses on each VLAN.

If this is not what you are looking for can you please elaborate so we can understand a little better.
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb
Hi Patrick,
this is exactly what I m looking for, but this command is not working in my switch  (Alcatel)  :(
Photo of Patrick Voss

Patrick Voss, Alum

  • 11,574 Points 10k badge 2x thumb
What model switch is this and what version?
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb
Alcatel-Lucent 10k os 10k 7.3.4.236.R02
Photo of Henrique

Henrique, Employee

  • 10,302 Points 10k badge 2x thumb
What about show mac-address-table count <vlan_ID>?

Example:
show mac-address-table count 100
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb
not working ! 
the only choice which I have :(
->show mac ?
mac-learning   mac-range      mac-retention
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb
Alcatel-Lucent 10k os 10k 7.3.4.236.R02
Photo of Patrick Voss

Patrick Voss, Alum

  • 11,574 Points 10k badge 2x thumb
Hi Mikou,

That switch is not an Extreme Networks device. I found a CLI reference guide for the Omniswitch models that may be able to help you out.

http://enterprise.alcatel-lucent.com/assets/documents/OmniSwitch_7_CLI_Reference_Guide_Rev-L_EN.pdf

Other than that I am not sure if this thread will be much help for you.
(Edited)
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb
oki doki , thank you :)
Photo of Henrique

Henrique, Employee

  • 10,302 Points 10k badge 2x thumb
I would check if a higher version add some options to show mac output. If so, an upgrade might help.
Photo of Mikou

Mikou

  • 154 Points 100 badge 2x thumb
oki thank you :)
Photo of Drew C.

Drew C., Community Manager

  • 38,472 Points 20k badge 2x thumb
As this thread isn't related to an Extreme Networks device, I'm going to close it for further comment. :)

This conversation is no longer open for comments or replies.