Hello Lee, snmptranslate -IR -On unifiIfRxBytes Warning: Module UBNT-MIB was in /usr/share/snmp/mibs/UBNT-MIB now is /usr/share/snmp/mibs/UBNT-UniFi-MIB Unknown object identifier: unifiIfRxBytes zen@debian11-DR6:~$ snmptranslate .1.3.6.1.4.1.41112.1.6.2.1.1.6 Warning: Module UBNT-MIB was in /usr/share/snmp/mibs/UBNT-MIB now is /usr/share/snmp/mibs/UBNT-UniFi-MIB iso.3.6.1.4.1.41112.1.6.2.1.1.6
So it looks like there is smoething wrong with my setup. I have replaced the Unifi MIB files as suggested. zen@debian11-DR6:~$ cat .snmp/snmp.conf defVersion 1 defCommunity public showMibErrors yes # showMibErrors no # whether to display MIB parsing errors. # mibWarningLevel 0 mibWarningLevel 1 # mibWarningLevel 9 # whether to show warning messages in parsing MIB files mibdirs /usr/share/snmp/mibs zen@debian11-DR6:/usr/share/snmp/mibs$ grep unifiIfRxBytes * zen@debian11-DR6:/usr/share/snmp/mibs$ ls UBNT* UBNT-MIB UBNT-UniFi-MIB zen@debian11-DR6:/usr/share/snmp/mibs$ I'm surprised that the grep unifiIfRxBytes doesn't return a result? Vaughan On Sun, Nov 24, 2024 at 11:34 AM Lee <ler...@gmail.com> wrote: > On Wed, Nov 20, 2024 at 4:01 PM gday vw wrote: > > > > > just curious: do you actually have an LS1010 in your network? > > > The last time I worked with them was around the turn of the century > > > along with LANE blades in the cat5000s > > > > No, I was using the snmptranslate query to hopefully confirm that my > snmp environment was working. > > That is the example in the wiki and initially the snmptranslate query > didn't work in my environment as I didn't have many of the needed mib files. > > Thanks... I was thinking it'd be a bit strange if someone was still > using LS1010s today :) > > > root@DavoUnraid:/usr/share/snmp/mibs# grep unifiIfIndex * > > UI-UniFi-MIB: INDEX { unifiIfIndex } > > UI-UniFi-MIB: unifiIfIndex ObjectIndex, > > UI-UniFi-MIB:unifiIfIndex OBJECT-TYPE > > > > grep unifiApSystem * > > UI-UniFi-MIB:unifiApSystem OBJECT IDENTIFIER ::= { ubntUniFi 3 } > > UI-UniFi-MIB:unifiApSystemIp OBJECT-TYPE > > UI-UniFi-MIB: ::= { unifiApSystem 1 } > > UI-UniFi-MIB:unifiApSystemIsolated OBJECT-TYPE > > UI-UniFi-MIB: ::= { unifiApSystem 2 } > > UI-UniFi-MIB:unifiApSystemModel OBJECT-TYPE > > UI-UniFi-MIB: ::= { unifiApSystem 3 } > > UI-UniFi-MIB:unifiApSystemUplink OBJECT-TYPE > > UI-UniFi-MIB: ::= { unifiApSystem 4 } > > UI-UniFi-MIB:unifiApSystemUptime OBJECT-TYPE > > UI-UniFi-MIB: ::= { unifiApSystem 5 } > > UI-UniFi-MIB:unifiApSystemVersion OBJECT-TYPE > > UI-UniFi-MIB: ::= { unifiApSystem 6 } > > UI-UniFi-MIB:unifiApSystemGroup OBJECT-GROUP OBJECTS { > > UI-UniFi-MIB: unifiApSystemIp, unifiApSystemIsolated, > unifiApSystemModel, unifiApSystemUplink, unifiApSystemUptime, > unifiApSystemVersion > > > > hrmm... they're there but I don't see anything in your output mentioning > them.. > Can you try moving the UniFi MIBs aside and downloading these files > into your /usr/share/snmp/mibs directory: > http://dl.ubnt-ut.com/snmp/UBNT-MIB > http://dl.ubnt-ut.com/snmp/UBNT-UniFi-MIB > > With this bit in my ~/.snmp/snmp.conf > > showMibErrors yes > # showMibErrors no > # whether to display MIB parsing errors. > > # mibWarningLevel 0 > mibWarningLevel 1 > # mibWarningLevel 9 > # whether to show warning messages in parsing MIB files > > and using the the net-snmp-5.9.4 mibs along with the above two UniFi MIBS > I get > > $ snmptranslate -IR -On unifiIfRxBytes > MODULE-IDENTITY MACRO (lines 55..79 parsed and ignored). > OBJECT-IDENTITY MACRO (lines 81..103 parsed and ignored). > OBJECT-TYPE MACRO (lines 212..298 parsed and ignored). > NOTIFICATION-TYPE MACRO (lines 302..334 parsed and ignored). > TEXTUAL-CONVENTION MACRO (lines 8..48 parsed and ignored). > OBJECT-GROUP MACRO (lines 8..39 parsed and ignored). > NOTIFICATION-GROUP MACRO (lines 43..73 parsed and ignored). > MODULE-COMPLIANCE MACRO (lines 77..183 parsed and ignored). > AGENT-CAPABILITIES MACRO (lines 187..320 parsed and ignored). > OBJECT-TYPE MACRO (lines 25..39 parsed and ignored). > TRAP-TYPE MACRO (lines 14..35 parsed and ignored). > .1.3.6.1.4.1.41112.1.6.2.1.1.6 > > lee@spot ~/Downloads/net-snmp-5.9.4/mibs > $ snmptranslate .1.3.6.1.4.1.41112.1.6.2.1.1.6 > MODULE-IDENTITY MACRO (lines 55..79 parsed and ignored). > OBJECT-IDENTITY MACRO (lines 81..103 parsed and ignored). > OBJECT-TYPE MACRO (lines 212..298 parsed and ignored). > NOTIFICATION-TYPE MACRO (lines 302..334 parsed and ignored). > TEXTUAL-CONVENTION MACRO (lines 8..48 parsed and ignored). > OBJECT-GROUP MACRO (lines 8..39 parsed and ignored). > NOTIFICATION-GROUP MACRO (lines 43..73 parsed and ignored). > MODULE-COMPLIANCE MACRO (lines 77..183 parsed and ignored). > AGENT-CAPABILITIES MACRO (lines 187..320 parsed and ignored). > OBJECT-TYPE MACRO (lines 25..39 parsed and ignored). > TRAP-TYPE MACRO (lines 14..35 parsed and ignored). > UBNT-UniFi-MIB::unifiIfRxBytes > > Does that work for you? > > Regards, > Lee >
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users