Don't know if this can help on the understanding/resolution, but on a switch where there is no issue, there is a full "matching" table :
CMD[/usr/bin/snmpbulkwalk -v2c -c *** -Pu -OQUs -m BRIDGE-MIB -M /var/www/observium/mibs/rfc:/var/www/observium/mibs/net-snmp 'udp':'2.100.79.11':'161' dot1dBasePortIfIndex]
CMD EXITCODE[0] CMD RUNTIME[0.1011s] STDOUT[ dot1dBasePortIfIndex.1 = 10001 dot1dBasePortIfIndex.2 = 10002 dot1dBasePortIfIndex.3 = 10003 dot1dBasePortIfIndex.4 = 10004 dot1dBasePortIfIndex.5 = 10005 dot1dBasePortIfIndex.6 = 10006 dot1dBasePortIfIndex.7 = 10007 dot1dBasePortIfIndex.8 = 10008 dot1dBasePortIfIndex.9 = 10009 dot1dBasePortIfIndex.10 = 10010 dot1dBasePortIfIndex.11 = 10011 dot1dBasePortIfIndex.12 = 10012 dot1dBasePortIfIndex.13 = 10013 dot1dBasePortIfIndex.14 = 10014 dot1dBasePortIfIndex.15 = 10015 dot1dBasePortIfIndex.16 = 10016 dot1dBasePortIfIndex.17 = 10017 dot1dBasePortIfIndex.18 = 10018 dot1dBasePortIfIndex.19 = 10019 dot1dBasePortIfIndex.20 = 10020 dot1dBasePortIfIndex.21 = 10021 dot1dBasePortIfIndex.22 = 10022 dot1dBasePortIfIndex.25 = 10101 dot1dBasePortIfIndex.26 = 10102 ]
And on switche where there is the issue :
CMD[/usr/bin/snmpbulkwalk -v2c -c *** -Pu -OQUs -m BRIDGE-MIB -M /var/www/observium/mibs/rfc:/var/www/observium/mibs/net-snmp 'udp':'2.58.65.161':'161' dot1dBasePortIfIndex]
CMD EXITCODE[0] CMD RUNTIME[0.0404s] STDOUT[ dot1dBasePortIfIndex.1 = 10001 dot1dBasePortIfIndex.22 = 10022 dot1dBasePortIfIndex.25 = 10101 dot1dBasePortIfIndex.26 = 10102 dot1dBasePortIfIndex.64 = 5001 ]
The only difference in term of config between these 2 switches is that almost all ressources are on the native vlan (vlan1) on the switch on which the fdbtable is complete ...
Thanks again for your help.
Tarik.
7 mars 2018 22:38 "Adam Armstrong" adama@memetic.org a écrit:
This is because these two indexes aren't the same, afaik dot1d doesn't use the same indexing as ifTable.
There's an intermediate index, but I can't remember where it is :)
Adam.
Sent from BlueMail On 7 Mar 2018, at 21:35, todevnull@free.fr wrote:
it's not an ignored port :-/
snmpwalk -v2c -c ****** 2.58.65.161 | grep ifName IF-MIB::ifName.1 = STRING: Vl1 IF-MIB::ifName.100 = STRING: Vl100 IF-MIB::ifName.5001 = STRING: Po1 IF-MIB::ifName.10001 = STRING: Fa0/1 IF-MIB::ifName.10002 = STRING: Fa0/2 IF-MIB::ifName.10003 = STRING: Fa0/3 IF-MIB::ifName.10004 = STRING: Fa0/4 IF-MIB::ifName.10005 = STRING: Fa0/5 IF-MIB::ifName.10006 = STRING: Fa0/6 IF-MIB::ifName.10007 = STRING: Fa0/7 IF-MIB::ifName.10008 = STRING: Fa0/8 IF-MIB::ifName.10009 = STRING: Fa0/9 IF-MIB::ifName.10010 = STRING: Fa0/10 IF-MIB::ifName.10011 = STRING: Fa0/11 IF-MIB::ifName.10012 = STRING: Fa0/12 IF-MIB::ifName.10013 = STRING: Fa0/13 IF-MIB::ifName.10014 = STRING: Fa0/14 IF-MIB::ifName.10015 = STRING: Fa0/15 IF-MIB::ifName.10016 = STRING: Fa0/16 IF-MIB::ifName.10017 = STRING: Fa0/17 IF-MIB::ifName.10018 = STRING: Fa0/18 IF-MIB::ifName.10019 = STRING: Fa0/19 IF-MIB::ifName.10020 = STRING: Fa0/20 IF-MIB::ifName.10021 = STRING: Fa0/21 IF-MIB::ifName.10022 = STRING: Fa0/22 IF-MIB::ifName.10023 = STRING: Fa0/23 IF-MIB::ifName.10024 = STRING: Fa0/24 IF-MIB::ifName.10101 = STRING: Gi0/1 IF-MIB::ifName.10102 = STRING: Gi0/2 IF-MIB::ifName.10501 = STRING: Nu0
7 mars 2018 22:09 "Tom Laermans" tom.laermans@powersource.cx a écrit:
What's interface id 8 on your device? snmpget ifName.8 maybe. Is it an ignored port per chance?
Tom
On 3/7/2018 10:03 PM, todevnull@free.fr wrote:
Humm seems that the devices is reporting some mac addresses, bot no interfaces are associated to them... They appear without portID on the "vlans_fdb" table and so, not present on the web GUI.
Do you know why their is no port ID ?
Please find below some output sample of the command line : ./poller.php -d -h 2.58.65.161
dot1dTpFdbAddress[0:0:c:7:ac:a] = 0:0:c:7:ac:a dot1dTpFdbAddress[0:15:70:29:52:81] = 0:15:70:29:52:81 dot1dTpFdbAddress[0:15:70:3e:d6:63] = 0:15:70:3e:d6:63 dot1dTpFdbAddress[0:15:70:40:72:3f] = 0:15:70:40:72:3f dot1dTpFdbAddress[0:15:70:40:73:3b] = 0:15:70:40:73:3b dot1dTpFdbAddress[0:15:70:40:76:c7] = 0:15:70:40:76:c7 dot1dTpFdbAddress[0:15:70:52:3b:3f] = 0:15:70:52:3b:3f dot1dTpFdbAddress[0:23:68:91:5d:f1] = 0:23:68:91:5d:f1 dot1dTpFdbAddress[2c:33:11:d2:4:0] = 2c:33:11:d2:4:0 dot1dTpFdbAddress[5c:e:8b:12:da:41] = 5c:e:8b:12:da:41 dot1dTpFdbAddress[5c:e:8b:12:e5:c3] = 5c:e:8b:12:e5:c3 dot1dTpFdbAddress[5c:e:8b:12:ef:53] = 5c:e:8b:12:ef:53 dot1dTpFdbAddress[5c:e:8b:12:ef:87] = 5c:e:8b:12:ef:87 dot1dTpFdbAddress[5c:e:8b:12:ef:97] = 5c:e:8b:12:ef:97 dot1dTpFdbAddress[5c:e:8b:12:f1:47] = 5c:e:8b:12:f1:47 dot1dTpFdbAddress[5c:e:8b:12:fe:ff] = 5c:e:8b:12:fe:ff dot1dTpFdbAddress[5c:e:8b:13:cb:a7] = 5c:e:8b:13:cb:a7 dot1dTpFdbAddress[5c:e:8b:13:cc:3b] = 5c:e:8b:13:cc:3b dot1dTpFdbPort[0:0:c:7:ac:a] = 25 dot1dTpFdbPort[0:15:70:29:52:81] = 26 dot1dTpFdbPort[0:15:70:3e:d6:63] = 64 dot1dTpFdbPort[0:15:70:40:72:3f] = 64 dot1dTpFdbPort[0:15:70:40:73:3b] = 64 dot1dTpFdbPort[0:15:70:40:76:c7] = 8 dot1dTpFdbPort[0:15:70:52:3b:3f] = 64 dot1dTpFdbPort[0:23:68:91:5d:f1] = 17 dot1dTpFdbPort[2c:33:11:d2:4:0] = 25 dot1dTpFdbPort[5c:e:8b:12:da:41] = 26 dot1dTpFdbPort[5c:e:8b:12:e5:c3] = 9 dot1dTpFdbPort[5c:e:8b:12:ef:53] = 3 dot1dTpFdbPort[5c:e:8b:12:ef:87] = 19 dot1dTpFdbPort[5c:e:8b:12:ef:97] = 26 dot1dTpFdbPort[5c:e:8b:12:f1:47] = 21 dot1dTpFdbPort[5c:e:8b:12:fe:ff] = 6 dot1dTpFdbPort[5c:e:8b:13:cb:a7] = 20 dot1dTpFdbPort[5c:e:8b:13:cc:3b] = 4 dot1dTpFdbStatus[0:0:c:7:ac:a] = learned dot1dTpFdbStatus[0:15:70:29:52:81] = learned dot1dTpFdbStatus[0:15:70:3e:d6:63] = learned dot1dTpFdbStatus[0:15:70:40:72:3f] = learned dot1dTpFdbStatus[0:15:70:40:73:3b] = learned dot1dTpFdbStatus[0:15:70:40:76:c7] = learned dot1dTpFdbStatus[0:15:70:52:3b:3f] = learned dot1dTpFdbStatus[0:23:68:91:5d:f1] = learned dot1dTpFdbStatus[2c:33:11:d2:4:0] = learned dot1dTpFdbStatus[5c:e:8b:12:da:41] = learned dot1dTpFdbStatus[5c:e:8b:12:e5:c3] = learned dot1dTpFdbStatus[5c:e:8b:12:ef:53] = learned dot1dTpFdbStatus[5c:e:8b:12:ef:87] = learned dot1dTpFdbStatus[5c:e:8b:12:ef:97] = learned dot1dTpFdbStatus[5c:e:8b:12:f1:47] = learned dot1dTpFdbStatus[5c:e:8b:12:fe:ff] = learned dot1dTpFdbStatus[5c:e:8b:13:cb:a7] = learned dot1dTpFdbStatus[5c:e:8b:13:cc:3b] = learned
+------+--------------+-----------+---------+---------+ | VLAN | MAC Address | Port Name | Port ID | Status | +------+--------------+-----------+---------+---------+ | 1 | 0018ba20d483 | Po1 | 1417 | learned | | 1 | 2401c7786f97 | Po1 | 1417 | learned | | 1 | 2401c7786f98 | Po1 | 1417 | learned | | 1 | 2401c7affb19 | Gi0/2 | 1443 | learned | | 1 | 2401c7ba5299 | Gi0/1 | 1442 | learned | | 1 | 2c3311d20400 | Gi0/1 | 1442 | learned | | 1 | 5c0e8b13c935 | Fa0/1 | 1418 | learned | | 1 | 7467f7039b90 | Gi0/1 | 1442 | learned | | 15 | 00000c07ac0a | Gi0/1 | 1442 | learned | | 15 | 001570295281 | Gi0/2 | 1443 | learned | | 15 | 0015703ed663 | Po1 | 1417 | learned | | 15 | 00157040723f | Po1 | 1417 | learned | | 15 | 00157040733b | Po1 | 1417 | learned | | 15 | 0015704076c7 | | | learned | | 15 | 001570523b3f | Po1 | 1417 | learned | | 15 | 002368915df1 | | | learned | | 15 | 2c3311d20400 | Gi0/1 | 1442 | learned | | 15 | 5c0e8b12da41 | Gi0/2 | 1443 | learned | | 15 | 5c0e8b12e5c3 | | | learned | | 15 | 5c0e8b12ef53 | | | learned | | 15 | 5c0e8b12ef87 | | | learned | | 15 | 5c0e8b12ef97 | Gi0/2 | 1443 | learned | | 15 | 5c0e8b12f147 | | | learned | | 15 | 5c0e8b12feff | | | learned | | 15 | 5c0e8b13cba7 | | | learned | | 15 | 5c0e8b13cc3b | | | learned | | 100 | 00000c07ac14 | Gi0/1 | 1442 | learned | | 100 | 0000aad49fd1 | | | mgmt | | 100 | 0000aad9f661 | Gi0/1 | 1442 | learned | | 100 | 00074d28a7cc | Gi0/1 | 1442 | learned | | 100 | 00074d3c0980 | Po1 | 1417 | learned | | 100 | 0015704081e9 | | | mgmt | | 100 | 0015706d1e61 | Gi0/1 | 1442 | learned | | 100 | 00157077760d | Gi0/1 | 1442 | learned | | 100 | 0018ba20d4c1 | Po1 | 1417 | learned | | 100 | 0019065cf0c1 | Po1 | 1417 | learned | | 100 | 001e49cf7241 | Po1 | 1417 | learned | | 100 | 004058115f39 | Po1 | 1417 | learned | | 100 | 00a2ee3ecaa0 | Gi0/1 | 1442 | learned | | 100 | 10604b7ab36a | Gi0/1 | 1442 | learned | | 100 | 2401c7786fc1 | Po1 | 1417 | learned | | 100 | 2401c7afcbc1 | Gi0/1 | 1442 | learned | | 100 | 2401c7affb41 | Gi0/2 | 1443 | learned | | 100 | 2c3311d20400 | Gi0/1 | 1442 | learned | | 100 | 30cda78eb43c | Po1 | 1417 | learned | | 100 | 6c3be5197201 | Po1 | 1417 | learned | | 100 | 6c3be522fe98 | Po1 | 1417 | learned | | 100 | 6c3be524dd33 | Gi0/1 | 1442 | learned | | 100 | 6c3be524dd34 | Po1 | 1417 | learned | | 100 | 6c3be524dd35 | Gi0/1 | 1442 | learned | | 100 | 6c3be524dd3a | Po1 | 1417 | learned | | 100 | 6c3be524dd3b | Gi0/1 | 1442 | learned | | 100 | 6c3be530d8f2 | | | mgmt | | 100 | 6c3be530d8fc | | | mgmt | | 100 | 6c3be530d8ff | Po1 | 1417 | learned | | 100 | 6c3be5329060 | Po1 | 1417 | learned | | 100 | 6c3be5329066 | Po1 | 1417 | learned | | 100 | 802aa801c962 | | | mgmt | | 100 | 9c934e1b3bbf | Po1 | 1417 | learned | | 100 | 9c934e53ad5c | | | mgmt | | 100 | deadbeef0001 | Gi0/1 | 1442 | learned | | 101 | 00000c07ac1e | Gi0/1 | 1442 | learned | | 101 | 00809fc0f1b6 | | | learned | | 101 | 00809fc1d932 | | | learned | | 101 | 00a2ee3ecaa0 | Gi0/1 | 1442 | learned | | 101 | 2c3311d20400 | Gi0/1 | 1442 | learned | | 100 | 0017c811c5d3 | 1417 | deleted | | 100 | 004058115ee8 | 1417 | deleted | | 100 | 30cda78eb43f | 1417 | deleted | | 100 | 802aa800c572 | 1443 | deleted | +------+--------------+-----------+---------+---------+
Tell me if you need more info Adam.
Thanks in advance.
Tarik.
6 mars 2018 17:01 "Adam Armstrong" adama@observium.org a écrit:
If we're showing macs, then the device is reporting macs.
adam.
On 2018-03-06 15:56:33, todevnull@free.fr todevnull@free.fr wrote:
Hello all,
First of all, i would like to tanks all people that made this great tool ! :) I'm still preparaing the migration from our old tool to Observium. So, i am playing/testing it with some Cisco devices.
A strange thing that i observed is that the FDB tables show mac addresses on switch interfaces that are in trunk mode only (dot1Q flagged).
Do i need to setup or declare something somewhere ?
Thank in advance for your help.
Tarik. Observium 18.3.9076 (6th March 2018)
OS Linux 3.16.0-4-amd64 [amd64] (Debian 8.5)
Apache 2.4.10 (Debian)
PHP 5.6.23-0+deb8u1 (OPcache: ENABLED)
Python 2.7.9
MySQL 5.5.50-0+deb8u1 (extension: mysqli 5.0.11-dev)
SNMP NET-SNMP 5.7.2.1
RRDtool 1.4.8 _______________________________
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium