Answer the question
In order to leave comments, you need to log in
How to do a MAC PORT VLAN / MAC PORT binding on Cisco (SNMP)?
On HP and 3Com I use OID 1.3.6.1.2.1.17.7.1.2.2.1.2 - everything works, but on Cisco it's still quiet ... snmpwalk -v 1 -c CUR IP 1.3.6.1.2.1.17.7.1.2.2.1.2
Please tell me how to solve the
PS -v 1 task (required)
Answer the question
In order to leave comments, you need to log in
I can't tell you the exact OID. I usually look for tricky things either in MIBs, if they exist (and they are on the cis anyway), or I quickly do snmpwalk 192.168.1.1 1.3.6 > snmp.log and look for suitable parameters there, find out their OID
This is how I take away from the Cisco 2950G. As for v1, I can't say.
We take the vlan number from the switch We poll
.1.3.6.1.4.1.9.9.46.1.3.1.1.2
In response, we get something like that
1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.1 = INTEGER: 1
1.3.6.1. 1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.1002
= INTEGER: 1
1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.1003 = INTEGER: 1
1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.1004 = INTEGER: 1
1.3.6.1.4.1.9.9.46.1.3.1.1.2.1.1005 = INTEGER: 1
1.3.6.1.4.1.9.9.46.1 .3.1.1.2.1.2142 = INTEGER: 1
the last number before the dot in oid is the vlan numbers. We remember the number of the vlan.
We poll 1.3.6.1.2.1.17.4.3.1.2 with the password (community string) [email protected]_number
1.3.6.1.2.1.17.4.3.1.2.0.4.78.135.240.0 = INTEGER
:
49 1.3.6.1.2.1.17.4.3.1.2.0.22.23.169.108.142 = INTEGER
:
40
142=INTEGER: 22
1.3.6.1.2.1.17.4.3.1.2.0.29.96.41.75.30=INTEGER: 7
1.3.6.1.2.1.17.4.3.1.2.0.31.198.19.78.254=INTEGER:
45 .2.1.17.4.3.1.2.0.31.198.83.9.119 = INTEGER: 22
Anything after 1.3.6.1.2.1.17.4.3.1.2. - poppy in hexadecimal notation
Value - port number.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question