Few devices, mostly cisco 2960 switches are identified as generic device

Few of my devices (cisco 2960) mostly are discovered as generic devices…
ANy help will be appreciated.

-bash-4.2$ ./validate.php

Component Version
LibreNMS 21.5.1-31-g2a66d68
DB Schema 2021_06_11_084830_slas_add_rtt_field (210)
PHP 7.3.28
Python 3.6.8
MySQL 10.5.10-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Composer Version: 2.1.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[WARN] Global lnms shortcut not installed. lnms command must be run with full path
[FIX]:
sudo ln -s /opt/librenms/lnms /usr/bin/lnms
[WARN] Bash completion not installed. lnms command tab completion unavailable.
[FIX]:
sudo cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
config.php.default
logs/.gitignore
rrd/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore


-bash-4.2$ ./discovery.php -h s1_snif634 -d
LibreNMS Discovery
SQL[select migration from migrations order by id desc limit 1 0.36ms]

SQL[select count(*) as aggregate from migrations limit 1 0.32ms]

SQL[SELECT version() 0.21ms]

===================================
Version info:
Commit SHA: 2a66d68c18a716de4f8705e19cc54df7a3778b6b
Commit Date: 1623449122
DB Schema: 2021_06_11_084830_slas_add_rtt_field (210)
PHP: 7.3.28
MySQL: 10.5.10-MariaDB
RRDTool: 1.4.8
SNMP: NET-SNMP 5.7.2
==================================DEBUG!
Updating os_def.cache
SQL[SELECT * FROM devices WHERE disabled = 0 AND snmp_disable = 0 AND hostname LIKE ‘s1_snif634’ ORDER BY device_id DESC 0.68ms]

SQL[select * from devices where device_id = ? limit 1 [34] 0.64ms]

SQL[select * from devices_attribs where devices_attribs.device_id = ? and devices_attribs.device_id is not null [34] 0.29ms]

s1_snif634 34 generic SQL[select hostname, overwrite_ip from devices where hostname = ? limit 1 [“s1_snif634”] 0.27ms]

[FPING] ‘/usr/sbin/fping’ ‘-e’ ‘-q’ ‘-c’ ‘3’ ‘-p’ ‘500’ ‘-t’ ‘500’ ‘s1_snif634’

response: {“xmt”:3,“rcv”:3,“loss”:0,“min”:18.100000000000001,“max”:18.800000000000001,“avg”:18.5,“dup”:0,“exitcode”:0}
SQL[select device_groups.*, device_group_device.device_id as pivot_device_id, device_group_device.device_group_id as pivot_device_group_id from device_groups inner join device_group_device on device_groups.id = device_group_device.device_group_id where device_group_device.device_id = ? [34] 0.51ms]

SQL[select exists(select * from alert_schedule where (start <= ? and end >= ? and (recurring = ? or (recurring = ? and ((time(start) < time(end) and time(start) <= ? and time(end) > ?) or (time(start) > time(end) and (time(end) <= ? or time(start) > ?))) and (recurring_day like ? or recurring_day is null)))) and (exists (select * from devices inner join alert_schedulables on devices.device_id = alert_schedulables.alert_schedulable_id where alert_schedule.schedule_id = alert_schedulables.schedule_id and alert_schedulables.alert_schedulable_type = ? and alert_schedulables.alert_schedulable_id = ?))) as exists [“2021-06-12T19:29:13.321297Z”,“2021-06-12T19:29:13.321297Z”,0,1,“19:29:13”,“19:29:13”,“19:29:13”,“19:29:13”,“%”,“device”,34] 0.63ms]

SQL[INSERT IGNORE INTO device_perf (xmt,rcv,loss,min,max,avg,device_id,timestamp,debug) VALUES (:xmt,:rcv,:loss,:min,:max,:avg,:device_id,NOW(),:debug) {“xmt”:3,“rcv”:3,“loss”:0,“min”:18.100000000000001,“max”:18.800000000000001,“avg”:18.5,“device_id”:34,“debug”:“”} 0.95ms]

SQL[UPDATE devices set last_ping=?,last_ping_timetaken=? WHERE device_id=? [“2021-06-12 22:29:13”,18.5,34] 0.96ms]

SNMP Check response code: 0
Modules status: Global+
OS
Device

Load disco module core

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OUQn’ ‘-m’ ‘SNMPv2-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘sysName.0’ ‘sysObjectID.0’ ‘sysDescr.0’]
...0 = No Such Object available on this agent at this OID
...0 = No Such Object available on this agent at this OID
...0 = No Such Object available on this agent at this OID

| | |
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/arris’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.1166.1.621.14.2.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.8072.1.3.2.3.1.2.6.100.105.115.116.114.111’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/endrun’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.13827.12.1.16.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/eltek’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.12148.10.2.6.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/hikvision’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.39165.1.1.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/orvaldi’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.21111.1.1.1.6.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘1.3.6.1.4.1.4515.1.3.6.1.1.1.2.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/wisi’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.7465.20.2.9.1.2.1.3.1.2’]
No Such Object available on this agent at this OID

Attempting to initialize OS: generic
OS initialized: LibreNMS\OS\Generic
OS: Generic Device (generic)

Runtime for discovery module ‘core’: 0.3310 seconds with 136888 bytes
SNMP: [10/0.37s] MySQL: [3/0.00s] RRD: [0/0.00s]

Unload disco module core

Modules status: Global+
OS
Device

Load disco module os

Yaml location data:
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘SNMPv2-MIB::sysLocation.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Ovq’ ‘-m’ ‘SNMPv2-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘sysContact.0’]
No Such Object available on this agent at this OID

Yaml OS data:
Location:
Hardware:
OS Version:
OS Features:
Serial:

Runtime for discovery module ‘os’: 0.0700 seconds with 96248 bytes
SNMP: [4/0.07s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module os

Modules status: Global+
OS
Device

Load disco module ports

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘IF-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ifDescr’]
ifDescr = No more variables left in this MIB View (It is past the end of the MIB tree)

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘IF-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ifName’]
ifName = No more variables left in this MIB View (It is past the end of the MIB tree)

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘IF-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ifAlias’]
ifAlias = No more variables left in this MIB View (It is past the end of the MIB tree)

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘IF-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ifType’]
ifType = No more variables left in this MIB View (It is past the end of the MIB tree)

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘IF-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ifOperStatus’]
ifOperStatus = No more variables left in this MIB View (It is past the end of the MIB tree)

array (
)
SQL[SELECT * FROM ports WHERE device_id = ? ORDER BY port_id [34] 0.71ms]

Runtime for discovery module ‘ports’: 0.2150 seconds with 5592 bytes
SNMP: [5/0.21s] MySQL: [1/0.00s] RRD: [0/0.00s]

Unload disco module ports

Modules status: Global+
OS
Device

Load disco module ports-stack

SQL[SELECT * FROM ports_stack WHERE device_id = ‘34’ 0.31ms]

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘IF-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ifStackStatus’]
ifStackStatus = No more variables left in this MIB View (It is past the end of the MIB tree)

Runtime for discovery module ‘ports-stack’: 0.0370 seconds with 1904 bytes
SNMP: [0/0.00s] MySQL: [1/0.00s] RRD: [0/0.00s]

Unload disco module ports-stack

Modules status: Global+
OS
Device

Load disco module entity-physical

Caching OIDs: entPhysicalEntrySNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘ENTITY-MIB:CISCO-ENTITY-VENDORTYPE-OID-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘entPhysicalEntry’]
entPhysicalEntry = No more variables left in this MIB View (It is past the end of the MIB tree)
MIB search path: /opt/librenms/mibs
Cannot find module (CISCO-ENTITY-VENDORTYPE-OID-MIB): At line 0 in (none)

SQL[SELECT * FROM entPhysical WHERE device_id = ? [34] 0.56ms]

Runtime for discovery module ‘entity-physical’: 0.0370 seconds with 8000 bytes
SNMP: [1/0.04s] MySQL: [1/0.00s] RRD: [0/0.00s]

Unload disco module entity-physical

Modules status: Global+
OS
Device

Load disco module entity-state

SQL[SELECT entPhysical_id, entPhysicalIndex FROM entPhysical WHERE device_id=? [34] 0.29ms]

Runtime for discovery module ‘entity-state’: 0.0000 seconds with 2104 bytes
SNMP: [0/0.00s] MySQL: [1/0.00s] RRD: [0/0.00s]

Unload disco module entity-state

Modules status: Global+
OS
Device

Load disco module isis

SQL[select * from component where device_id = ? and type = ? [34,“ISIS”] 0.38ms]

communityStringIndexing
SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘ISIS-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ISIS-MIB::isisCirc’]
isisCirc = No more variables left in this MIB View (It is past the end of the MIB tree)

Runtime for discovery module ‘isis’: 0.0330 seconds with 93944 bytes
SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module isis

Modules status: Global+
OS
Device

Load disco module processors

No YAML Discovery data.
Host Resources: SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘HOST-RESOURCES-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘hrProcessorLoad’]
hrProcessorLoad = No more variables left in this MIB View (It is past the end of the MIB tree)

UCD Resources: SQL[select * from vrf_lite_cisco where vrf_lite_cisco.device_id = ? and vrf_lite_cisco.device_id is not null [34] 0.46ms]

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Ovq’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.2021.11.11.0’]
No Such Object available on this agent at this OID

SQL[SELECT * FROM processors WHERE device_id=? [34] 0.42ms]

SQL[DELETE T FROM processors T LEFT JOIN devices ON devices.device_id = T.device_id WHERE devices.device_id IS NULL 0.43ms]

Runtime for discovery module ‘processors’: 0.0770 seconds with 90384 bytes
SNMP: [2/0.07s] MySQL: [2/0.00s] RRD: [0/0.00s]

Unload disco module processors

Modules status: Global+
OS
Device

Load disco module mempools

communityStringIndexing
SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘HOST-RESOURCES-MIB:HOST-RESOURCES-TYPES’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘hrStorageTable’]
hrStorageTable = No more variables left in this MIB View (It is past the end of the MIB tree)

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUv’ ‘-m’ ‘HOST-RESOURCES-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘hrMemorySize.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘UCD-SNMP-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘memTotalSwap.0’ ‘memAvailSwap.0’ ‘memTotalReal.0’ ‘memAvailReal.0’ ‘memBuffer.0’ ‘memCached.0’ ‘memSysAvail.0’]
memTotalSwap.0 = No Such Object available on this agent at this OID
memAvailSwap.0 = No Such Object available on this agent at this OID
memTotalReal.0 = No Such Object available on this agent at this OID
memAvailReal.0 = No Such Object available on this agent at this OID
memBuffer.0 = No Such Object available on this agent at this OID
memCached.0 = No Such Object available on this agent at this OID
memSysAvail.0 = No Such Object available on this agent at this OID

SQL[select * from mempools where mempools.device_id = ? and mempools.device_id is not null [34] 0.55ms]

Runtime for discovery module ‘mempools’: 0.1020 seconds with 89280 bytes
SNMP: [2/0.06s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module mempools

Modules status: Global+
OS
Device

Load disco module cisco-vrf-lite

SQL[SELECT * FROM vrf_lite_cisco WHERE device_id = ? [34] 0.41ms]

Runtime for discovery module ‘cisco-vrf-lite’: 0.0000 seconds with 2648 bytes
SNMP: [0/0.00s] MySQL: [1/0.00s] RRD: [0/0.00s]

Unload disco module cisco-vrf-lite

Modules status: Global+
OS
Device

Load disco module cisco-mac-accounting

Runtime for discovery module ‘cisco-mac-accounting’: 0.0000 seconds with 928 bytes
SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module cisco-mac-accounting

Modules status: Global+
OS
Device

Load disco module cisco-pw

Runtime for discovery module ‘cisco-pw’: 0.0000 seconds with 1480 bytes
SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module cisco-pw

Modules status: Global+
OS
Device

Load disco module vrf

SQL[SELECT * FROM ports WHERE device_id = ‘34’ 0.46ms]

SQL[SELECT * FROM vrfs WHERE device_id = ‘34’ 0.32ms]

Runtime for discovery module ‘vrf’: 0.0010 seconds with 4520 bytes
SNMP: [0/0.00s] MySQL: [2/0.00s] RRD: [0/0.00s]

Unload disco module vrf

Modules status: Global+
OS
Device

Load disco module cisco-cef

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘CISCO-CEF-MIB::cefSwitchingPath’]
Exitcode: 1
MIB search path: /opt/librenms/mibs
Cannot find module (CISCO-CEF-MIB): At line 0 in (none)
CISCO-CEF-MIB::cefSwitchingPath: Unknown Object Identifier

MIB search path: /opt/librenms/mibs
Cannot find module (CISCO-CEF-MIB): At line 0 in (none)
CISCO-CEF-MIB::cefSwitchingPath: Unknown Object Identifier
|| || || ||
array (
)
Caching OIDs: entPhysicalDescrSNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘ENTITY-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘entPhysicalDescr’]
entPhysicalDescr = No more variables left in this MIB View (It is past the end of the MIB tree)

entPhysicalNameSNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘ENTITY-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘entPhysicalName’]
entPhysicalName = No more variables left in this MIB View (It is past the end of the MIB tree)

entPhysicalModelNameSNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘ENTITY-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘entPhysicalModelName’]
entPhysicalModelName = No more variables left in this MIB View (It is past the end of the MIB tree)

Runtime for discovery module ‘cisco-cef’: 0.1470 seconds with 3256 bytes
SNMP: [3/0.13s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module cisco-cef

Modules status: Global+
OS
Device

Load disco module slas

Runtime for discovery module ‘slas’: 0.0000 seconds with 4752 bytes
SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module slas

Modules status: Global+
OS
Device

Load disco module cisco-cbqos

Runtime for discovery module ‘cisco-cbqos’: 0.0000 seconds with 2304 bytes
SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module cisco-cbqos

Modules status: Global+
OS
Device

Load disco module cisco-otv

Runtime for discovery module ‘cisco-otv’: 0.0000 seconds with 4224 bytes
SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module cisco-otv

Modules status: Global+
OS
Device

Load disco module cisco-qfp

Runtime for discovery module ‘cisco-qfp’: 0.0000 seconds with 1152 bytes
SNMP: [0/0.00s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module cisco-qfp

Modules status: Global+
OS
Device

Load disco module ipv4-addresses

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Osq’ ‘-m’ ‘IP-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ipAdEntIfIndex’]
ipAdEntIfIndex No more variables left in this MIB View (It is past the end of the MIB tree)

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-m’ ‘IP-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ipAdEntNetMask.’]
No Such Object available on this agent at this OID

SQL[SELECT ipv4_addresses.*, ports.device_id, ports.ifIndex FROM ipv4_addresses LEFT JOIN ports ON ipv4_addresses.port_id = ports.port_id WHERE ports.device_id = ? OR ports.device_id IS NULL [34] 4.16ms]

Runtime for discovery module ‘ipv4-addresses’: 0.0680 seconds with 40792 bytes
SNMP: [2/0.06s] MySQL: [1/0.00s] RRD: [0/0.00s]

Unload disco module ipv4-addresses

Modules status: Global+
OS
Device

Load disco module ipv6-addresses

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Osq’ ‘-Ln’ ‘-m’ ‘IP-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ipAddressIfIndex.ipv6’]
ipAddressIfIndex.ipv6 No more variables left in this MIB View (It is past the end of the MIB tree)

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OsqnU’ ‘-Ln’ ‘-m’ ‘IPV6-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘ipv6AddrPfxLength’]
...8.1.2 No more variables left in this MIB View (It is past the end of the MIB tree)

SQL[SELECT ipv6_addresses.*, ports.device_id, ports.ifIndex FROM ipv6_addresses LEFT JOIN ports ON ipv6_addresses.port_id = ports.port_id WHERE ports.device_id = ? OR ports.device_id IS NULL [34] 0.54ms]

Runtime for discovery module ‘ipv6-addresses’: 0.0850 seconds with 3544 bytes
SNMP: [2/0.08s] MySQL: [1/0.00s] RRD: [0/0.00s]

Unload disco module ipv6-addresses

Modules status: Global+
OS
Device

Load disco module route

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Osqn’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘IP-FORWARD-MIB::inetCidrRouteNumber.0’]
...6.0 No Such Object available on this agent at this OID

SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘IP-FORWARD-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘inetCidrRouteNumber.0’ ‘ipCidrRouteNumber.0’]
inetCidrRouteNumber.0 = No Such Object available on this agent at this OID
ipCidrRouteNumber.0 = No Such Object available on this agent at this OID

SQL[select now() as now 0.34ms]

SQL[select * from route where device_id = ? [34] 2.25ms]

communityStringIndexing
SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘RFC1213-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.2.1.4.21’]
ipRouteTable = No more variables left in this MIB View (It is past the end of the MIB tree)

Routing table:
array (
)
RFC1213 communityStringIndexing
SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘MPLS-L3VPN-STD-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘mplsL3VpnVrfPerfCurrNumRoutes’]
mplsL3VpnVrfPerfCurrNumRoutes = No more variables left in this MIB View (It is past the end of the MIB tree)

mplsL3VpnVrfRteTable communityStringIndexing
SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘MPLS-L3VPN-STD-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘mplsL3VpnVrfRteTable’]
mplsL3VpnVrfRteTable = No more variables left in this MIB View (It is past the end of the MIB tree)

Processing:

Runtime for discovery module ‘route’: 0.2010 seconds with 12792 bytes
SNMP: [2/0.08s] MySQL: [2/0.00s] RRD: [0/0.00s]

Unload disco module route

Modules status: Global+
OS
Device

Load disco module sensors

ENTITY-SENSOR: Caching OIDs: entPhysicalDescr
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“voltage”,34,“ipmi”] 0.75ms]

SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“temperature”,34,“ipmi”] 0.53ms]

SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“fanspeed”,34,“ipmi”] 0.48ms]

SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“power”,34,“ipmi”] 0.47ms]

Airflow: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“airflow”,34,“snmp”] 0.49ms]

Current: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“current”,34,“snmp”] 0.47ms]

Charge: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“charge”,34,“snmp”] 0.49ms]

Dbm: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“dbm”,34,“snmp”] 0.46ms]

Fanspeed: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“fanspeed”,34,“snmp”] 0.5ms]

Frequency: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“frequency”,34,“snmp”] 0.5ms]

Humidity: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“humidity”,34,“snmp”] 0.48ms]

Load: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“load”,34,“snmp”] 0.48ms]

Loss: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“loss”,34,“snmp”] 0.48ms]

Power: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“power”,34,“snmp”] 0.45ms]

Power_consumed: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“power_consumed”,34,“snmp”] 0.48ms]

Power_factor: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“power_factor”,34,“snmp”] 0.46ms]

Runtime: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“runtime”,34,“snmp”] 0.5ms]

Signal: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“signal”,34,“snmp”] 0.48ms]

State: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“state”,34,“snmp”] 0.45ms]

Count: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“count”,34,“snmp”] 0.53ms]

Temperature: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“temperature”,34,“snmp”] 0.46ms]

Tv_signal: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“tv_signal”,34,“snmp”] 0.46ms]

Voltage: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“voltage”,34,“snmp”] 0.46ms]

Snr: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“snr”,34,“snmp”] 0.48ms]

Pressure: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“pressure”,34,“snmp”] 0.46ms]

Cooling: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“cooling”,34,“snmp”] 0.52ms]

Delay: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“delay”,34,“snmp”] 0.46ms]

Quality_factor: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“quality_factor”,34,“snmp”] 0.46ms]

Chromatic_dispersion: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“chromatic_dispersion”,34,“snmp”] 0.48ms]

Ber: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“ber”,34,“snmp”] 0.46ms]

Eer: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“eer”,34,“snmp”] 0.48ms]

Waterflow: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“waterflow”,34,“snmp”] 0.48ms]

Percent: array (
)
SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? [“percent”,34,“snmp”] 0.48ms]

Runtime for discovery module ‘sensors’: 0.0220 seconds with 63992 bytes
SNMP: [0/0.00s] MySQL: [33/0.02s] RRD: [0/0.00s]

Unload disco module sensors

Modules status: Global+
OS
Device

Load disco module storage

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘IBM-AIX-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘aixFsTableEntry’]
Exitcode: 1
MIB search path: /opt/librenms/mibs
Cannot find module (IBM-AIX-MIB): At line 0 in (none)
aixFsTableEntry: Unknown Object Identifier (Sub-id not found: (top) → aixFsTableEntry)

MIB search path: /opt/librenms/mibs
Cannot find module (IBM-AIX-MIB): At line 0 in (none)
aixFsTableEntry: Unknown Object Identifier (Sub-id not found: (top) → aixFsTableEntry)
aix_filesystem : SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘DATA-DOMAIN-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/datadomain’ ‘udp:HOSTNAME:161’ ‘fileSystemSpaceTable’]
fileSystemSpaceTable = No more variables left in this MIB View (It is past the end of the MIB tree)

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘FREENAS-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘datasetTable’]
Exitcode: 1
MIB search path: /opt/librenms/mibs
Cannot find module (FREENAS-MIB): At line 0 in (none)
datasetTable: Unknown Object Identifier (Sub-id not found: (top) → datasetTable)

MIB search path: /opt/librenms/mibs
Cannot find module (FREENAS-MIB): At line 0 in (none)
datasetTable: Unknown Object Identifier (Sub-id not found: (top) → datasetTable)
SQL[SELECT storage_descr FROM storage WHERE device_id = ‘34’ AND storage_type != ‘dataset’ 0.51ms]

SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘FREENAS-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘zpoolTable’]
Exitcode: 1
MIB search path: /opt/librenms/mibs
Cannot find module (FREENAS-MIB): At line 0 in (none)
zpoolTable: Unknown Object Identifier (Sub-id not found: (top) → zpoolTable)

MIB search path: /opt/librenms/mibs
Cannot find module (FREENAS-MIB): At line 0 in (none)
zpoolTable: Unknown Object Identifier (Sub-id not found: (top) → zpoolTable)
SQL[SELECT storage_descr FROM storage WHERE device_id = ‘34’ AND storage_type != ‘zpool’ 0.5ms]

hrStorage : SNMP[‘/usr/bin/snmpbulkwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUs’ ‘-m’ ‘UCD-SNMP-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:HOSTNAME:161’ ‘dskTable’]
dskTable = No more variables left in this MIB View (It is past the end of the MIB tree)

What happens when you paste the above line with the appropriate HOST/COMMUNITY changes on the CLI - same thing?

Then what do you get changing the first command to snmpwalk instead of get?

There is a fair bit of talk on Cisco forums about 2960 SNMP support and firmware versions, and it’s also dependent on the switch config. While that’s not LibreNMS related, what’s the SNMP config on one of the switches? Are there restricted tree views?

If you can strip the config down to the absolute minimum below to test, does it change?

snmp-server community xxxxxxx RO

I’ve got a lot of WS-C2960-24PC-L and WS-C2960X-24PS-L all in the 15.0(2) release train which are working perfectly and previously had many others much older in 12.x all working.

If possible, see if you can put your long output in to a pastebin URL via https://p.libren.ms/ to make it easier for people to read.

Thank u.
The problem was resolved by using the community for each host with the addhost script.

it is now working like a clock :).
BR.
Jacob

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.