On Sun, Nov 17, 2024 at 9:28 PM gday vw wrote: > > Hello, > I'm trying to use snmpwalk to query a Ubiquiti device. > I'm using this page of the wiki as a guide: > https://net-snmp.sourceforge.io/wiki/index.php/TUT:snmpwalk > > The mibs folder includes all the mib files from my recent question. > > Here are the queries and the output: > > Test query (worked) > root@DavoUnraid:/# snmptranslate -m +CISCO-RHINO-MIB -IR -On > ciscoLS1010ChassisFanLed > .1.3.6.1.4.1.9.5.11.1.1.12
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 cat5000s > Query Unifi switch (worked - although I was hoping for more information) > The mibs used to provide results, don't appear to include the Unifi mibs. > > root@DavoUnraid:/# snmpwalk -v 1 -c public 192.168.100.60 system > SNMPv2-MIB::sysDescr.0 = STRING: USW GigaBit Ethernet Switch, firmware > 7.1.26.15869 > SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.41112.1 > DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (293664047) 33 days, > 23:44:00.47 > SNMPv2-MIB::sysContact.0 = STRING: > SNMPv2-MIB::sysName.0 = STRING: > SNMPv2-MIB::sysLocation.0 = STRING: Office > SNMPv2-MIB::sysServices.0 = INTEGER: 3 > > Query Unifi switch using item / object from the Unifi mib (doesn't work) > root@DavoUnraid:/# snmpwalk -v 1 -c public 192.168.100.60 unifiIfIndex > unifiIfIndex: Unknown Object Identifier (Sub-id not found: (top) -> > unifiIfIndex) > > Query Unifi switch using item / object from the Unifi mib (doesn't work) > root@DavoUnraid:/usr/share/snmp/mibs# snmpwalk -v 1 -c public 192.168.100.60 > unifiApSystem > unifiApSystem: Unknown Object Identifier (Sub-id not found: (top) -> > unifiApSystem) > > Confirming that Unifi mibs are in the mibs directory > root@DavoUnraid:/# pwd > / > root@DavoUnraid:/# cd usr > root@DavoUnraid:/usr# cd share > root@DavoUnraid:/usr/share# cd snmp > root@DavoUnraid:/usr/share/snmp# cd mibs > root@DavoUnraid:/usr/share/snmp/mibs# ls UI* > UI-MIB* UI-UniFi-MIB* > > Appreciate troubleshooting suggestions The obvious check to see if the things you're looking for are actually there: cd On Sun, Nov 17, 2024 at 9:28 PM gday vw wrote: > > Hello, > I'm trying to use snmpwalk to query a Ubiquiti device. > I'm using this page of the wiki as a guide: > https://net-snmp.sourceforge.io/wiki/index.php/TUT:snmpwalk > > The mibs folder includes all the mib files from my recent question. > > Here are the queries and the output: > > Test query (worked) > root@DavoUnraid:/# snmptranslate -m +CISCO-RHINO-MIB -IR -On > ciscoLS1010ChassisFanLed > .1.3.6.1.4.1.9.5.11.1.1.12 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 > Query Unifi switch (worked - although I was hoping for more information) > The mibs used to provide results, don't appear to include the Unifi mibs. You could always do snmpwalk -v 1 -c public 192.168.100.60 .1 and see what results you get. Along with an idea of what MIBs you're missing. > root@DavoUnraid:/# snmpwalk -v 1 -c public 192.168.100.60 system > SNMPv2-MIB::sysDescr.0 = STRING: USW GigaBit Ethernet Switch, firmware > 7.1.26.15869 > SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.41112.1 > DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (293664047) 33 days, > 23:44:00.47 > SNMPv2-MIB::sysContact.0 = STRING: > SNMPv2-MIB::sysName.0 = STRING: > SNMPv2-MIB::sysLocation.0 = STRING: Office > SNMPv2-MIB::sysServices.0 = INTEGER: 3 > > Query Unifi switch using item / object from the Unifi mib (doesn't work) > root@DavoUnraid:/# snmpwalk -v 1 -c public 192.168.100.60 unifiIfIndex > unifiIfIndex: Unknown Object Identifier (Sub-id not found: (top) -> > unifiIfIndex) > > Query Unifi switch using item / object from the Unifi mib (doesn't work) > root@DavoUnraid:/usr/share/snmp/mibs# snmpwalk -v 1 -c public 192.168.100.60 > unifiApSystem > unifiApSystem: Unknown Object Identifier (Sub-id not found: (top) -> > unifiApSystem) > > Confirming that Unifi mibs are in the mibs directory > root@DavoUnraid:/# pwd > / > root@DavoUnraid:/# cd usr > root@DavoUnraid:/usr# cd share > root@DavoUnraid:/usr/share# cd snmp > root@DavoUnraid:/usr/share/snmp# cd mibs > root@DavoUnraid:/usr/share/snmp/mibs# ls UI* > UI-MIB* UI-UniFi-MIB* > > Appreciate troubleshooting suggestions The easy & obvious check to see if the things you're looking for are actually there: cd /usr/share/snmp/mibs grep unifiIfIndex * grep unifiApSystem * After that.. I'm not all that good with debugging snmp problems so I kind of take a brute force approach Add this to your ~/.snmp/snmp.conf file showMibErrors yes # whether to display MIB parsing errors. #mibWarningLevel 1 mibWarningLevel 9 # whether to show warning messages when parsing MIB files Or you can do the "-Pe -PW" options on the command line. Fix all the errors & warnings you get and then hopefully it works :) 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