Print

Powerconnect 5324 locating a MAC in the address-table

Sign in
Sign in to post messages.
Latest post 11/05/2009 06:06 AM by neuromancerxyz. 5 replies.
Page 1 of 1  
Joined on 07/27/2009
Posts: 3
Points 60

Powerconnect 5324 locating a MAC in the address-table

I am currently looking for a way to find which port a specific MAC is plugged into.  "show bridge address-table" will list all MACs but there seems to be no way to filter it.  I wrote a script to log in via telnet and search the list but the output is paused and waits for user input.  I cannot find a way to deal with this or find a way around it and am only getting the first page of MACs.

Does anyone know of a way to do this for this model of Powerconnect?

 

Thanks a lot.

  • Post Points: 20

5 Replies:

Joined on 04/02/2007
Posts: 578
Points 4,384

Re: Powerconnect 5324 locating a MAC in the address-table

There is no way to keep the output from pausing for user input on this switch.   You have 2 options:

- send multiple "space" characters after sending the "show bridge address-table" command.  If you have a large network, since the address table is 8K and the screen length is set to 24, you would have to send 341 (8192/24)  spaces to be sure you get the whole table.

- use snmp to get the forrwarding database.  I believe the MIB object is dot1dFdbAddressTable or something like that. 

 

 

 

  • Post Points: 20
Joined on 07/27/2009
Posts: 3
Points 60

Re: Powerconnect 5324 locating a MAC in the address-table

Spamming space characters does not seem to work.  I can still only get the first page of results.

I cannot seem to get SNMP working either, but I'm personally not familiar with it so I have a lot of figuring out to do.

 

Thanks for your help.

  • Post Points: 20
Joined on 04/02/2007
Posts: 578
Points 4,384

Re: Powerconnect 5324 locating a MAC in the address-table

Does anything happen when you "spam" space characters?  Do you at least get one page?  If so, this is probably due to overflowing the input put buffer.  Instead of blasting the "show bridge address-table" command and 331 spaces, try sending the "show bridge address-table" command, wait 2 seconds, then send one space every 2 seconds until the "console#" prompt appears.  If you set the baud rate faster, you could wait less than 2 seconds between the command and the "space" characters.

  • Post Points: 20
Joined on 07/27/2009
Posts: 3
Points 60

Re: Powerconnect 5324 locating a MAC in the address-table

It doesn't appear to make a difference how, when or how fast I send the spaces.  It always pauses for a long time then prints the first page.  This method seems too slow anyway.  The SNMP seems to be the most viable method but it appears to need a firmware update in order to get the address table of a different vlan.

  • Post Points: 20
Joined on 11/05/2009
Posts: 2
Points 10

Re: Powerconnect 5324 locating a MAC in the address-table

try using the command  before your scripts runs you should get the full page output

#terminal datadump

Hope it helps

  • Post Points: 5
Page 1 of 1