cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
724
Views
0
Helpful
1
Replies

Script to get MAC addresses of connected Switches and save it into file

packettracer86
Level 1
Level 1

Hello guys,

 

is it possible to get the BIA (the switch MAC) of every switch connected(cdp enabled) to the switch from where i run a tcl script and save this data into a file?

 

And in addition is it maybe also possible to have this file (where i want to save the mac´s) "pre-formated" and replace e.g. variables with this mac addresses?

 

greetings and thx in advance!

1 Reply 1

schaef350
Level 1
Level 1

Whats your ultimate goal? 

 

You should be able to pull CDP neighbors with SNMP then SNMP those neighbors for MAC addresses. 

 

Please rate helpful posts! :-)

 

- Be sure to rate all helpful posts
Review Cisco Networking for a $25 gift card