root@testlab1 # tcpdump -i eth1 -s 1500 -c 1 -v 'ether[20:2] = 0x2000' | egrep '(Device-ID|Port-ID)'
Device-ID (0x01), length: 22 bytes: 'TBA05322419(srdcsac13)'
Port-ID (0x03), length: 3 bytes: '3/8'
root@testlab2 # tcpdump -i eth0 -s 1500 -c 1 -v 'ether[20:2] = 0x2000' | egrep '(Device-ID|Port-ID)'
Device-ID (0x01), length: 22 bytes: 'TBA05321834(srdcsac14)'
Port-ID (0x03), length: 3 bytes: '3/8'
Very hand commands,but also need cdp enabled on the switches as a pre-requisite.
ReplyDelete