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

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

Thanks

Vaughan
_______________________________________________
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

Reply via email to