I want to get the remote MAC connected to a switchport. The following article shows basically hot to do it:
But this is done using snmp v3 locally on the switch, how do I have to configure v2 to give me that information remotely? (And if v2 is not possible, how do I configure v3 for that purpose?)
What I have so far:
snmp-server contact email@example.com snmp-server location LOCATION snmp-server community read ro snmp-server community write rw
This is covered in chapter 37 of Arista’s User Guide, which you can find here: http://www.arista.com/docs/Manuals/ConfigGuide.pdf.
snmp-server community public
should be enough to enable SNMPv2 support on the switch using the read-only community called ’public’.
This will enable you to walk the MIB tree, both locally or remotely. For doing this remotely for example, simply run:
snmpwalk <HOSTNAME/IP_ADDRESS of your switch> -v 2c -c public <OID> -OX
on a server/device which has IP connectivity to your switch.
Let me know if you have any further questions.
Hi and thanks.
As was able to do snmpwalks already – what I was missing is the meaning of the -OX and that is trick (together with the mib)
For further reference:
snmpwalk -v 2c -c community arista-host 126.96.36.199.188.8.131.52.1.2 -m Q-BRIDGE-MIB -OX
Q-BRIDGE-MIB::dot1qFdbDynamicCount = Counter32: 0 Q-BRIDGE-MIB::dot1qFdbDynamicCount = Counter32: 3 Q-BRIDGE-MIB::dot1qFdbDynamicCount = Counter32: 2 Q-BRIDGE-MIB::dot1qTpFdbPort[STRING: 0:1a:11:22:33:44] = INTEGER: 102 Q-BRIDGE-MIB::dot1qTpFdbPort[STRING: 0:1a:11:22:33:45] = INTEGER: 102
Check out snmpwalk –help for more details:
... General options ... -O OUTOPTS Toggle various defaults controlling output display: ... X: extended index format ...
Post your Answer
You must be logged in to post an answer.