So I'm looking for a complete dump of the MAC address table and ports like this:
root@m24-114t-sw-4> show ethernet-switching table | except xe-0/2/0.0
MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC
SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC
GBP - group based policy)
Ethernet switching table : 335 entries, 335 learned
Routing instance : default-switch
Vlan MAC MAC Age GBP Logical NH RTR
name address flags Tag interface Index ID
Private 00:1b:a9:b4:b6:0f D - mge-0/0/13.0 0 0
Private 18:66:da:11:cb:28 D - mge-0/0/38.0 0 0
Private 18:66:da:13:cd:cc D - mge-0/0/42.0 0 0
Private 48:4d:7e:d1:23:b8 D - mge-0/0/36.0 0 0
Private 70:54:d2:e4:87:32 D - mge-0/0/41.0 0 0
Private 70:5a:0f:a6:1f:fd D - mge-0/0/5.0 0 0
Private 98:5a:eb:cf:52:49 D - mge-0/0/23.0 0 0
Private a8:a1:59:c2:12:a6 D - mge-0/0/39.0 0 0
Private b4:22:00:15:92:e2 D - mge-0/0/29.0 0 0
Private c8:d9:d2:c9:b3:3e D - mge-0/0/35.0 0 0
Private d0:50:99:e6:aa:3b D - mge-0/0/39.0 0 0
Public 00:08:9b:ee:26:80 D - mge-0/0/8.0 0 0
Public 08:bf:b8:37:9e:d3 D - mge-0/0/0.0 0 0
Public 4c:d7:17:88:16:f9 D - mge-0/0/40.0 0 0
Public 74:d0:2b:28:af:be D - mge-0/0/15.0 0 0
Public a8:3c:a5:1c:38:ec D - mge-0/0/10.0 0 0
VoIP 00:04:f2:30:07:bb D - mge-0/0/31.0 0 0
VoIP 00:04:f2:3a:6e:9c D - mge-0/0/43.0 0 0
VoIP 00:04:f2:48:89:80 D - mge-0/0/16.0 0 0
VoIP 00:04:f2:48:ba:3d D - mge-0/0/4.0 0 0
VoIP 00:04:f2:48:bd:8a D - mge-0/0/30.0 0 0
VoIP 00:04:f2:48:d5:43 D - mge-0/0/20.0 0 0
VoIP 00:04:f2:48:d5:99 D - mge-0/0/34.0 0 0
VoIP 00:04:f2:48:d5:ca D - mge-0/0/28.0 0 0
VoIP 00:04:f2:49:39:c4 D - mge-0/0/26.0 0 0
VoIP 00:04:f2:4b:3b:79 D - mge-0/0/33.0 0 0
VoIP 00:04:f2:4b:46:14 D - mge-0/0/6.0 0 0
VoIP 00:04:f2:4e:46:2c D - mge-0/0/32.0 0 0
VoIP 00:04:f2:c5:94:43 D - mge-0/0/19.0 0 0
VoIP 64:16:7f:01:d7:43 D - mge-0/0/18.0 0 0
VoIP 64:16:7f:37:a1:17 D - mge-0/0/2.0 0 0
VoIP 64:16:7f:c2:76:7a D - mge-0/0/21.0 0 0
VoIP 64:16:7f:c2:77:88 D - mge-0/0/25.0 0 0
VoIP 64:16:7f:c2:82:1c D - mge-0/0/27.0 0 0
Is there a MIB that can dump this? The instructions in the KB seems to be locating one individual.
--
Dan
------------------------------
DAN LOGCHER
------------------------------
Original Message:
Sent: 08-03-2020 02:04
From: aarseniev
Subject: how to fetch the forwarder table with SNMP
Hello,
Please check out these links
https://kb.juniper.net/InfoCenter/index?page=content&id=KB32532
https://kb.juniper.net/InfoCenter/index?page=content&id=KB26533
https://nextheader.net/2017/04/11/getting-mac-addresses-using-snmp-on-ex2300ex3400/
HTH
Thx
Alex