-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Comments
I have exactly the same problem with model enterprises.11863.5.122 I can only add that the switch seems not to give "vendor" netdisco-do show -DI -d 172.16.20.116 -e vendor Thank you |
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. |
if there is no specific module for a device / vendor snmp::info will fall back to a more generic class based on sysservices. to add basic support for a device (like os version & such) we need 3 things, each step becoming harder:
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: |
the master list to decide which module snmp::info uses is pretty much this: 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 also, mention netdisco/snmp-info#485 - seems to be the same question |
Bump for this functionality. |
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.
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
OS / Version is empty.
Serial Number Empty.
Macc address - Empty.
hardware Status Empty.
Mac Suck not working.
Not listing mac address under ports.
Neighbor is empty. - not Diagram of connectivity.
Address is fine.
Shows management IP.
VLANs are empty.
No matching records.
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
The text was updated successfully, but these errors were encountered: