Have also tried below
zen@debian11-DR6:~$ snmptranslate -On UI-UniFi-MIB::unifiApSystem
MIB search path:
/home/zen/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (UI-UniFi-MIB): At line 1 in (none)
UI-UniFi-MIB::unifiApSystem: Unknown Object Identifier

zen@debian11-DR6:~$ ls .snmp/mibs
UI-MIB  UI-UniFi-MIB

The mib file is definitely not being found, even though the file is in the
search path?

On Wed, Nov 13, 2024 at 11:14 AM gday vw <gda...@gmail.com> wrote:

> Hello,
>
> I'm an SNMP newbie and I'm trying to follow this tutorial.
>
>
> http://www.net-snmp.org/wiki/index.php/TUT:Using_and_loading_MIBS#Net-SNMP_Command_Line_Applications
>
> OS is Debian
> zen@debian11-DR6:~$ cat /proc/version
> Linux version 5.10.0-33-amd64 (debian-ker...@lists.debian.org) (gcc-10
> (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2)
> #1 SMP Debian 5.10.226-1 (2024-10-03)
>
> Command and output
> zen@debian11-DR6:~$ snmptranslate -m +UI-UniFi-MIB -IR -On unifiApSystem
> MIB search path:
> /home/zen/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
> Cannot find module (SNMPv2-MIB): At line 1 in (none)
> Cannot find module (IF-MIB): At line 1 in (none)
> Cannot find module (IP-MIB): At line 1 in (none)
> Cannot find module (TCP-MIB): At line 1 in (none)
> Cannot find module (UDP-MIB): At line 1 in (none)
> Cannot find module (HOST-RESOURCES-MIB): At line 1 in (none)
> Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
> Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
> Cannot find module (DISMAN-SCHEDULE-MIB): At line 1 in (none)
> Cannot find module (HOST-RESOURCES-TYPES): At line 1 in (none)
> Cannot find module (MTA-MIB): At line 1 in (none)
> Cannot find module (NETWORK-SERVICES-MIB): At line 1 in (none)
> Cannot find module (SNMPv2-TC): At line 15 in
> /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt
> Cannot find module (SNMPv2-SMI): At line 34 in
> /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
> Cannot find module (HCNUM-TC): At line 37 in
> /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
> Cannot find module (SNMPv2-TC): At line 40 in
> /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
> Did not find 'enterprises' in module #-1
> (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
> Did not find 'CounterBasedGauge64' in module #-1
> (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
> Did not find 'DisplayString' in module #-1
> (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
> Did not find 'TruthValue' in module #-1
> (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
> Unlinked OID in UCD-SNMP-MIB: ucdavis ::= { enterprises 2021 }
>
> I have cut a lot of the output here as it is just errors. Final output
> below.
>
> Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyShutdown ::= {
> netSnmpNotifications 2 }
> Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyRestart ::= {
> netSnmpNotifications 3 }
> Cannot adopt OID in UCD-SNMP-MIB: laErrMessage ::= { laEntry 101 }
> Cannot adopt OID in UCD-SNMP-MIB: laErrorFlag ::= { laEntry 100 }
> Cannot adopt OID in UCD-SNMP-MIB: laLoadFloat ::= { laEntry 6 }
> Cannot adopt OID in UCD-SNMP-MIB: laLoadInt ::= { laEntry 5 }
> Cannot adopt OID in UCD-SNMP-MIB: laConfig ::= { laEntry 4 }
> Cannot adopt OID in UCD-SNMP-MIB: laLoad ::= { laEntry 3 }
> Cannot adopt OID in UCD-SNMP-MIB: laNames ::= { laEntry 2 }
> Cannot adopt OID in UCD-SNMP-MIB: laIndex ::= { laEntry 1 }
> Unknown object identifier: unifiApSystem
>
> The MIB files are in /home/zen/.snmp/mibs
>
> Which is listed in the MIB search path
> MIB search path: /home/zen/.snmp/mibs
>
> zen@debian11-DR6:~$ ls /home/zen/.snmp/mibs
> UI-MIB  UI-UniFi-MIB
>
> Here is the entry in the UI-UniFi-MIB file
> unifiApSystem   OBJECT IDENTIFIER ::= { ubntUniFi 3 }
>
> I'm hoping to be able to use SNMP to query and monitor the network. But at
> this stage I'm still very much an SNMP newbie and just trying to learn how
> to query the network at this point.
>
> Obviously I'm doing something wrong, if the error is obvious, appreciate
> direction otherwise 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