EthernetSwitchingTable broken?
See original GitHub issueTrying to get MACs out of some Juniper boxes. Different models EX4200, EX4300, QFX5100. Both in VC and non VC configuration.
Example below is from a EX4200 running 12.2R4.5.
#!/usr/bin/python -tt
from jnpr.junos.op.ethernetswitchingtable import EthernetSwitchingTable
from jnpr.junos import Device
device = Device('172.16.0.16', username='XX', password='XX')
device.open()
macs = EthernetSwitchingTable(device)
macs.get()
print macs
device.close()
$ ./test3.py
<class 'jnpr.junos.factory.OpTable.EthernetSwitchingTable'>
EthernetSwitchingTable:172.16.0.16: 0 items
$ pip show junos-eznc Name: junos-eznc Version: 2.1.1
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
ethernet-switching table issue QFX10002
I observe a strange situation with the learning of mac addresses.Scheme is attached.Fact:If any host from internet (like 2.2.2.2) try setup ...
Read more >Juniper QFX5110 - EVPN-VXLAN ethernet switching table is ...
As soon as I add any VXLAN VNI config to my existing VLAN100, my ethernet-switching table goes completely empty, with no MACs showing....
Read more >Juniper ARP/ethernet switching table mystery : r/networking
Juniper ARP/ethernet switching table mystery. I've got two switches directly connected to each other via an aggregated ethernet link (ae0 on ...
Read more >LESSONS IN JUNOS TROUBLESHOOTING: FIXING A LAN ...
Next, I type “show ethernet-switching table” – and I notice that ... cable that plugged the main switch into the SRX was a...
Read more >Troubleshoot LAN Switching Environments - Cisco
Suggestions to troubleshoot general switch. Troubleshoot port connectivity problems. Troubleshoot Ethernet 10/100Mb half/full duplex auto- ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just tested this for an ex4300 with ELS…took some trial and error but works great:
braincork, I found your yml to be very useful for the following:
I was not successful, however, with l2ng-l2-vlan-id. I keep getting none, which I don’t think should be possible.
Here’s what my yaml looks like: `EthernetSwitchingTable: rpc: get-ethernet-switching-table-information item: l2ng-l2ald-mac-entry-vlan/l2ng-mac-entry key: - l2ng-l2-mac-address - l2ng-l2-mac-logical-interface - l2ng-l2-mac-flags - l2ng-l2-vlan-id view: EthernetSwitchingView
EthernetSwitchingView: fields: -mac_address: l2ng-l2-mac-address -interface: l2ng-l2-mac-logical-interface -type: l2ng-l2-mac-flags -id: l2ng-l2-vlan-id`
I appreciate any help!