Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The command: show mac address-table gives me me mac address info i like. I'm trying to figure out to get this to dump to a server once a month as a text file. Each time it would dump, the previous file would be overwritten with the new one. Lets say the switch is 192.168.4.6 and computer is 192.168.4.7 Do I need to setup TFTP or SNMP? Could this even be done?

share|improve this question

migrated from stackoverflow.com Oct 23 '12 at 14:44

This question came from our site for professional and enthusiast programmers.

2 Answers 2

You could use Kiwi cat tools to schedule running the command and log the output to a file

share|improve this answer

Check if your switch supports the redirect command

Show mac address-table | redirect tftp://192.168.4.7/switch-macs.txt

If that is supported you could write a kron to do it monthly ( assuming the switch supports kron )

The kron syntax here might not be exact

Kron policy 1 Cli Show mac address-table | redirect tftp://192.168.4.7/switch-macs.txt

Kron schedule 1 in 24 recurring

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.