-1

I have the Mac-Address of one host. I want to know to which interface this host is connected to the cisco switch. I use snmp to do this work.

I want to create a script to do this. So how can i do that? Should i know the vlan ?

Regards

Abid
  • 91
  • 1
  • 8
  • There is the same question - [My anwer is here](http://stackoverflow.com/questions/19719357/snmp-oid-to-map-mac-addresses-to-ip-addresses/38257710#38257710) – txid Jul 08 '16 at 02:13

1 Answers1

0

You need the following:

show ip arp <ip address>
show mac-address-table address <mac address>
show cdp neighbors <interface> detail

Enjoy

EvilKittenLord
  • 908
  • 4
  • 8
  • Just use TCL. http://www.cisco.com/en/US/docs/switches/datacenter/sw/6_x/nx-os/fundamentals/configuration/guide/b_Cisco_Nexus_7000_Series_NX-OS_Fundamentals_Configuration_Guide_Release_6.x_chapter_01001.pdf – EvilKittenLord Aug 22 '13 at 16:24
  • I didn't understand how can i do that from my pc without opening the switch window using tcl !! – Abid Aug 23 '13 at 09:37