snmp-info icon indicating copy to clipboard operation
snmp-info copied to clipboard

How to change snmp class for switch?

Open SaymonDzen opened this issue 3 years ago • 3 comments

DGS-1100-24P Gigabit Ethernet Switch. SNMP::Info::Layer3::DLink does not show information about loading ports and mac addresses of connected ports. During the configuration process, LibreNMS found a similar behavior, but there it was possible to find information that in fact this device only supports snmp v1 (I never thought that such a thing was possible in a device released after the year 2000) . In LibreNMS, I successfully reconfigured to v1 and began to receive information about the download and the FDB table. But on the netdisko web interface, I did not find an opportunity to change the snmp class. In the search for the documentation, I also could not find it, because probably my English is too bad and I do not know how to correctly formulate the request.

Please explain to me how this can be done, or give an exact link to the documentation section where this is described. Thank you in advance!

SaymonDzen avatar Aug 30 '21 08:08 SaymonDzen

if you want want to force snmp v1 for a device you can add something like this to your config:

snmpforce_v1:
  - 169.254.1.2

https://github.com/netdisco/netdisco/wiki/Configuration#snmpforce_v1

we have gotten reports in the past however that dlink 1100 series have issues with bulkwalk in particular, as noted here: https://github.com/netdisco/netdisco/wiki/Vendor-Tips#snmpbulkwalk-and-d-link

inphobia avatar Sep 02 '21 17:09 inphobia

I added in /home/netdisco/environments/deployment.yml and restarted bulkwalk_no: 10.77.0.11 snmpforce_v1: 10.77.0.11 snmpver: 1 but still writes SNMP :: Info :: Layer3 :: DLink to the webgui Deleted manually netdisco-do delete -d 10.77.0.11 and added again but everything remained the same.

SaymonDzen avatar Oct 20 '21 07:10 SaymonDzen

Hi @SaymonDzen the device class (Layer3 :: DLink) is not related to the SNMP version. However, the device class does control which information is gathered and how that information is gathered.

I will move this ticket to SNMP::Info issues list as it seems to be related to that, after your SNMPv1 test did not fix it.

ollyg avatar Nov 05 '21 08:11 ollyg