Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with TP link Switches. #196

Open
aradikes opened this issue Feb 20, 2023 · 5 comments
Open

Problem with TP link Switches. #196

aradikes opened this issue Feb 20, 2023 · 5 comments

Comments

@aradikes
Copy link

aradikes commented Feb 20, 2023

Hi,
Can someone help me with TP-Link Switch not displaying any info in netdisco?
All switches are configured as Layer 2.
LLDP is enabled Globally and in ports.
SNMP v2 enabled with RO.

  1. on netdisco all TP-link switches display as unknown / enterprises.11863.5.xxx

Vendor Model
unknown enterprises.11863.5.102
unknown enterprises.11863.5.106
unknown enterprises.11863.5.114
unknown enterprises.11863.5.122
unknown enterprises.11863.5.166
unknown std.3.0.6.0.1.0.4

  1. OS / Version is empty.

  2. Serial Number Empty.

  3. Macc address - Empty.

  4. hardware Status Empty.

  5. Mac Suck not working.
    Not listing mac address under ports.

  6. Neighbor is empty. - not Diagram of connectivity.

  7. Address is fine.
    Shows management IP.

  8. VLANs are empty.
    No matching records.

  9. ports.
    Ports not displaying the following...
    native VLAN
    VLAN membership
    Connected Nodes and Devices and MAC Address

please find the output details below.

~netdisco/bin/netdisco-do show -DI -d 10.120.52.1 -e description
~netdisco/bin/netdisco-do show -DI -d 10.120.52.1 -e layers
~netdisco/bin/netdisco-do show -DI -d 10.120.52.1 -e id

netdisco@in-ubuntu:~$ netdisco/bin/netdisco-do show -DI -d 10.120.52.1 -e id
[857278] 2023-02-20 15:33:48 info App::Netdisco version 2.060004 loaded.
[857278] 2023-02-20 15:33:48 info show: [10.120.52.1]/id started at Mon Feb 20 10:33:48 2023
[857278] 2023-02-20 15:33:48 debug show: running with timeout 600s
[857278] 2023-02-20 15:33:48 debug => running workers for phase: check
[857278] 2023-02-20 15:33:48 debug -> run worker check/0 "show"
[857278] 2023-02-20 15:33:48 debug Show is able to run
[857278] 2023-02-20 15:33:48 debug => running workers for phase: main
[857278] 2023-02-20 15:33:48 debug -> run worker main/100 "show"
[857278] 2023-02-20 15:33:48 debug snmp reader cache warm: [10.120.52.1]
[857278] 2023-02-20 15:33:48 debug [10.120.52.1:161] try_connect with ver: 2, class: SNMP::Info::Layer2, comm:
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0
SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0
SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0
SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0
SNMP::Info 3.89
SNMP::Info::device_type() layers:00000011 id:11863 sysDescr:"JetStream 24-Port Gigabit and 4-Port 10GE SFP+ L2+ Managed Switch with 24-Port PoE+"
".1.3.6.1.4.1.11863.5.102" (dualvar: 0.1)
[857278] 2023-02-20 15:33:50 info show: finished at Mon Feb 20 10:33:50 2023
[857278] 2023-02-20 15:33:50 info show: status done: Showed id response from 10.120.52.1
netdisco@in-ubuntu:
$ netdisco/bin/netdisco-do show -DI -d 1.2.3.4 -e description
[857305] 2023-02-20 15:34:35 info App::Netdisco version 2.060004 loaded.
[857305] 2023-02-20 15:34:38 info show: error - Don't know device: 1.2.3.4
netdisco@in-ubuntu:
$

netdisco@in-ubuntu:~$ netdisco/bin/netdisco-do show -DI -d 10.120.52.1 -e description
[857365] 2023-02-20 15:35:56 info App::Netdisco version 2.060004 loaded.
[857365] 2023-02-20 15:35:59 info show: [10.120.52.1]/description started at Mon Feb 20 10:35:59 2023
[857365] 2023-02-20 15:36:00 debug show: running with timeout 600s
[857365] 2023-02-20 15:36:00 debug => running workers for phase: check
[857365] 2023-02-20 15:36:00 debug -> run worker check/0 "show"
[857365] 2023-02-20 15:36:00 debug Show is able to run
[857365] 2023-02-20 15:36:00 debug => running workers for phase: main
[857365] 2023-02-20 15:36:00 debug -> run worker main/100 "show"
[857365] 2023-02-20 15:36:00 debug snmp reader cache warm: [10.120.52.1]
[857365] 2023-02-20 15:36:00 debug [10.120.52.1:161] try_connect with ver: 2, class: SNMP::Info::Layer2, comm:
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0
SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0
SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0
SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0
SNMP::Info 3.89
SNMP::Info::device_type() layers:00000011 id:11863 sysDescr:"JetStream 24-Port Gigabit and 4-Port 10GE SFP+ L2+ Managed Switch with 24-Port PoE+"
"JetStream 24-Port Gigabit and 4-Port 10GE SFP+ L2+ Managed Switch with 24-Port PoE+"
[857365] 2023-02-20 15:36:05 info show: finished at Mon Feb 20 10:36:05 2023
[857365] 2023-02-20 15:36:05 info show: status done: Showed description response from 10.120.52.1
netdisco@in-ubuntu:
$

netdisco@in-ubuntu:~$ netdisco/bin/netdisco-do show -DI -d 10.120.52.1 -e layers
[857394] 2023-02-20 15:36:38 info App::Netdisco version 2.060004 loaded.
[857394] 2023-02-20 15:36:41 info show: [10.120.52.1]/layers started at Mon Feb 20 10:36:41 2023
[857394] 2023-02-20 15:36:42 debug show: running with timeout 600s
[857394] 2023-02-20 15:36:42 debug => running workers for phase: check
[857394] 2023-02-20 15:36:42 debug -> run worker check/0 "show"
[857394] 2023-02-20 15:36:42 debug Show is able to run
[857394] 2023-02-20 15:36:42 debug => running workers for phase: main
[857394] 2023-02-20 15:36:42 debug -> run worker main/100 "show"
[857394] 2023-02-20 15:36:42 debug snmp reader cache warm: [10.120.52.1]
[857394] 2023-02-20 15:36:42 debug [10.120.52.1:161] try_connect with ver: 2, class: SNMP::Info::Layer2, comm:
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0
SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0
SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0
SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0
SNMP::Info 3.89
SNMP::Info::device_type() layers:00000011 id:11863 sysDescr:"JetStream 24-Port Gigabit and 4-Port 10GE SFP+ L2+ Managed Switch with 24-Port PoE+"
"00000011" (dualvar: 11)
[857394] 2023-02-20 15:36:45 info show: finished at Mon Feb 20 10:36:45 2023
[857394] 2023-02-20 15:36:45 info show: status done: Showed layers response from 10.120.52.1
netdisco@in-ubuntu:
$

Netdisco Details
Software Version
App::Netdisco 2.60.4
SNMP::Info 3.89
DB Schema 77
PostgreSQL 10.00.22
Perl 5.30.0

@nmersi
Copy link

nmersi commented Jun 19, 2023

I have exactly the same problem with model enterprises.11863.5.122
No vendor found (unknown) and missing same data, do someone solved the problem?

I can only add that the switch seems not to give "vendor"

netdisco-do show -DI -d 172.16.20.116 -e vendor
[23658] 2023-06-19 09:39:56 info App::Netdisco version 2.047002 loaded.
[23658] 2023-06-19 09:39:56 info show: [172.16.20.116]/vendor started at Mon Jun 19 09:39:56 2023
[23658] 2023-06-19 09:39:57 debug show: running with timeout 600s
[23658] 2023-06-19 09:39:57 debug => running workers for phase: check
[23658] 2023-06-19 09:39:57 debug -> run worker check/base/0
[23658] 2023-06-19 09:39:57 debug Show is able to run
[23658] 2023-06-19 09:39:57 debug => running workers for phase: main
[23658] 2023-06-19 09:39:57 debug -> run worker main/base/100
[23658] 2023-06-19 09:39:57 debug snmp reader cache warm: [172.16.20.116]
[23658] 2023-06-19 09:39:57 debug [172.16.20.116:161] try_connect with ver: 2, class: SNMP::Info::Layer2, comm:
SNMP::Info::_global uptime : DISMAN-EVENT-MIB::sysUpTimeInstance : .1.3.6.1.2.1.1.3.0
SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0
SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0
SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0
SNMP::Info 3.71
SNMP::Info::device_type() layers:00000011 id:11863 sysDescr:"JetStream 24-Port Gigabit L2+ Managed Switch with 4 SFP Slots"
undef
[23658] 2023-06-19 09:39:57 info show: finished at Mon Jun 19 09:39:57 2023
[23658] 2023-06-19 09:39:57 info show: status done: Showed vendor response from 172.16.20.116

Thank you

@cnoyes72
Copy link

Looking in /home/netdisco/perl5/lib/perl5/SNMP/Info/Layer2 there doesn't seem to be a device class for tp-link/omada switches. Someone would need to create one for the switches to be recognized and polled properly.

@inphobia
Copy link
Member

if there is no specific module for a device / vendor snmp::info will fall back to a more generic class based on sysservices.
depending on how standard / non-standard they made their snmpd this has a good chance to at least fill out whatever we can find for clients, ports, etc...

to add basic support for a device (like os version & such) we need 3 things, each step becoming harder:

  1. an snmp snapshot of the device: https://github.com/netdisco/netdisco/wiki/Snapshot#netdisco-option
  2. the vendor specific mibs, if possible a recent version & as complete a set as possible
  3. time

that said, adding support for the very basics like os, model, etc... is quite doable. this example pretty much only adds vendor mapping and some other basics:
https://github.com/netdisco/snmp-info/blob/master/lib/SNMP/Info/Layer3/Redlion.pm
you can always use that as a template for adding basic support.

@inphobia
Copy link
Member

Looking in /home/netdisco/perl5/lib/perl5/SNMP/Info/Layer2 there doesn't seem to be a device class for tp-link/omada switches. Someone would need to create one for the switches to be recognized and polled properly.

the master list to decide which module snmp::info uses is pretty much this:
https://github.com/netdisco/snmp-info/blob/b94140b5d201c3d99b2da57c194229bc6658ec96/lib/SNMP/Info.pm#L1750

after searching a bit i found a somewhat recent list of mibs, i can start by adding those. if you have a newer version do let me know.

https://www.tp-link.com/us/support/download/tl-sg2428p/#MIBs_Files
privateMibs(20220831).zip

also, mention netdisco/snmp-info#485 - seems to be the same question

@huntson
Copy link

huntson commented May 10, 2024

Bump for this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants