# tcpdump -vvi em3| grep -ib5 pac tcpdump: listening on em3, link-type EN10MB (Ethernet), capture size 262144 bytes 108221- 0x0000: 0078 108238- Port Description TLV (4), length 41: topology/pod-1/paths-209/pathep-[eth1/10] 108318- 0x0000: 746f 706f 6c6f 6779 2f70 6f64 2d31 2f70 108370- 0x0010: 6174 6873 2d32 3039 2f70 6174 6865 702d 108422- 0x0020: 5b65 7468 312f 3130 5d 108457: System Name TLV (5), length 21: PAC-L209.datanet.corp
La opcion del tcpdump fue, –vvi nombre de la placa en linux | grep -ib5, esto es 5 lineas before , si le pusiera -ia5 significa 5 lineas after y pac es porque se que el switch se llama pac-algo
Otra opcion que puedo poner, si no conozco el nombre del switch es buscar por System Name
# tcpdump -vvi eth0| grep -ib5 "System Name"
tcpdump: WARNING: eth0: no IPv4 address assigned tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 20452741- Port Description TLV (4), length 54: topology/pod-1/paths-217/extpaths-105/pathep-[eth1/15] 20452834- 0x0000: 746f 706f 6c6f 6779 2f70 6f64 2d31 2f70 20452886- 0x0010: 6174 6873 2d32 3137 2f65 7874 7061 7468 20452938- 0x0020: 732d 3130 352f 7061 7468 6570 2d5b 6574 20452990- 0x0030: 6831 2f31 355d 20453017: System Name TLV (5), length 21: PAC-L217.datanet.corp 20453072- 0x0000: 5041 432d 4c32 3137 2e64 6174 616e 6574 20453124- 0x0010: 2e63 6f72 70 20453149- System Description TLV (6), length 23 20453188- topology/pod-1/node-217 20453215- 0x0000: 746f 706f 6c6f 6779 2f70 6f64 2d31 2f6e ^C81230 packets captured 81272 packets received by filter 36 packets dropped by kernel
No hay comentarios:
Publicar un comentario