How to export mac-address-table output

Post Reply
cdamien
Member
Posts: 2
Joined: 05 Jan 2016 11:33

How to export mac-address-table output

Post by cdamien » 05 Jan 2016 13:04

Hi everyone!



Since few weeks i'm trying to export the mac-address-table so i could then use it to create an inventory/floor plan of what's behind my switchs.

I have tried to get the output with putty + a script but the switch refuses to execute the script. I don't know if it is general to all 6400 or if i don't have enough permissions to do it.



I know that i can export switch config files easily with psftp, but then i would have to create a text file from the output of mac-address-table command, but redirection of the output to a file seems to not working either.



Also is there a way to create a scheduled tasks on 6400 ?



Does anyone has an idea if this can be done or a workaround ?



I'm new here and to alcatel switchs, i tried to find any clues from the Internet and this forum before posting but i havn't found much answers.



Thanks!

Damien

devnull
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 921
Joined: 07 Sep 2010 10:16
Location: Germany

Re: How to export mac-address-table output

Post by devnull » 11 Jan 2016 06:51

There is no possibility to execute scripts switch-side on aos 6 devices.
You can go with scripts on (ssh)client side.
You can use for example plink (part of putty package) or general the -m parameter of the putty-executable (read the manual/google). other ssh clients do support similar stuff.

you could use Omnivista as well.

you could write yourself a perl-script which does magic using net:ssh:expect (e.g. http://www.perlmonks.org/?node_id=881431 )

cdamien
Member
Posts: 2
Joined: 05 Jan 2016 11:33

Re: How to export mac-address-table output

Post by cdamien » 11 Jan 2016 09:00

Thanks devnull !

I'll have a look at plink & perl & Omnivista !

Damien

User avatar
rekeds
Member
Posts: 103
Joined: 05 Jan 2015 09:22
Location: Riga

Re: How to export mac-address-table output

Post by rekeds » 29 Jan 2016 03:23

snmp macs?
nein?

Sara-7
Member
Posts: 5
Joined: 09 Mar 2016 10:21

Re: How to export mac-address-table output

Post by Sara-7 » 09 Mar 2016 10:29

Hi cdamien,
can I have your script pliz, I also need it for a reporting

thanks

Post Reply

Return to “OmniSwitch 6400”