Re: Using and loading MIBS
gday vw <[email protected]> Wed, 13 Nov 2024 12:32:07 +1100
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CADPbiLM1hS_sixuNQPha1QnADc5xvjiS7tzE=eR83zq1uncbqQ@mail.gmail.com> |
--===============0824509917940331866== Content-Type: multipart/alternative; boundary="000000000000f2c6940626c14d7a" --000000000000f2c6940626c14d7a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/sh= are/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=E2=80=AFAM gday vw <[email protected]> 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-SNM= P_Command_Line_Applications > > OS is Debian > zen@debian11-DR6:~$ cat /proc/version > Linux version 5.10.0-33-amd64 ([email protected]) (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 ::=3D { 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 ::=3D { > netSnmpNotifications 2 } > Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyRestart ::=3D { > netSnmpNotifications 3 } > Cannot adopt OID in UCD-SNMP-MIB: laErrMessage ::=3D { laEntry 101 } > Cannot adopt OID in UCD-SNMP-MIB: laErrorFlag ::=3D { laEntry 100 } > Cannot adopt OID in UCD-SNMP-MIB: laLoadFloat ::=3D { laEntry 6 } > Cannot adopt OID in UCD-SNMP-MIB: laLoadInt ::=3D { laEntry 5 } > Cannot adopt OID in UCD-SNMP-MIB: laConfig ::=3D { laEntry 4 } > Cannot adopt OID in UCD-SNMP-MIB: laLoad ::=3D { laEntry 3 } > Cannot adopt OID in UCD-SNMP-MIB: laNames ::=3D { laEntry 2 } > Cannot adopt OID in UCD-SNMP-MIB: laIndex ::=3D { 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 ::=3D { ubntUniFi 3 } > > I'm hoping to be able to use SNMP to query and monitor the network. But a= t > this stage I'm still very much an SNMP newbie and just trying to learn ho= w > 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 > --000000000000f2c6940626c14d7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Have also tried below<div>zen@debian11-DR6:~$ snmptranslat= e -On UI-UniFi-MIB::unifiApSystem<br>MIB search path: /home/zen/.snmp/mibs:= /usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf<br= >Cannot find module (UI-UniFi-MIB): At line 1 in (none)<br>UI-UniFi-MIB::un= ifiApSystem: Unknown Object Identifier<br></div><div><br></div><div>zen@deb= ian11-DR6:~$ ls .snmp/mibs<br>UI-MIB =C2=A0UI-UniFi-MIB<br></div><div><br><= /div><div>The mib file is definitely not being found, even though the file = is in the search path?</div></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Wed, Nov 13, 2024 at 11:14=E2=80=AFAM gday= vw <<a href=3D"mailto:[email protected]">[email protected]</a>> wrote:= <br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8= ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr= ">Hello,<div><br></div><div>I'm an SNMP newbie and I'm trying to fo= llow this tutorial.</div><div><br></div><div><a href=3D"http://www.net-snmp= .org/wiki/index.php/TUT:Using_and_loading_MIBS#Net-SNMP_Command_Line_Applic= ations" target=3D"_blank">http://www.net-snmp.org/wiki/index.php/TUT:Using_= and_loading_MIBS#Net-SNMP_Command_Line_Applications</a></div><div><br></div= ><div>OS is Debian</div><div>zen@debian11-DR6:~$ cat /proc/version<br>Linux= version 5.10.0-33-amd64 (<a href=3D"mailto:[email protected]"= target=3D"_blank">[email protected]</a>) (gcc-10 (Debian 10.2= .1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debi= an 5.10.226-1 (2024-10-03)</div><div><br></div><div>Command and output</div= ><div>zen@debian11-DR6:~$ snmptranslate -m +UI-UniFi-MIB -IR -On unifiApSys= tem<br>MIB search path: /home/zen/.snmp/mibs:/usr/share/snmp/mibs:/usr/shar= e/snmp/mibs/iana:/usr/share/snmp/mibs/ietf<br>Cannot find module (SNMPv2-MI= B): At line 1 in (none)<br>Cannot find module (IF-MIB): At line 1 in (none)= <br>Cannot find module (IP-MIB): At line 1 in (none)<br>Cannot find module = (TCP-MIB): At line 1 in (none)<br>Cannot find module (UDP-MIB): At line 1 i= n (none)<br>Cannot find module (HOST-RESOURCES-MIB): At line 1 in (none)<br= >Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)<br>Cannot f= ind module (DISMAN-EVENT-MIB): At line 1 in (none)<br>Cannot find module (D= ISMAN-SCHEDULE-MIB): At line 1 in (none)<br>Cannot find module (HOST-RESOUR= CES-TYPES): At line 1 in (none)<br>Cannot find module (MTA-MIB): At line 1 = in (none)<br>Cannot find module (NETWORK-SERVICES-MIB): At line 1 in (none)= <br>Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/UCD-= DISKIO-MIB.txt<br>Cannot find module (SNMPv2-SMI): At line 34 in /usr/share= /snmp/mibs/UCD-SNMP-MIB.txt<br>Cannot find module (HCNUM-TC): At line 37 in= /usr/share/snmp/mibs/UCD-SNMP-MIB.txt<br>Cannot find module (SNMPv2-TC): A= t line 40 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt<br>Did not find 'ent= erprises' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)<br>Did = not find 'CounterBasedGauge64' in module #-1 (/usr/share/snmp/mibs/= UCD-SNMP-MIB.txt)<br>Did not find 'DisplayString' in module #-1 (/u= sr/share/snmp/mibs/UCD-SNMP-MIB.txt)<br>Did not find 'TruthValue' i= n module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)<br>Unlinked OID in UCD= -SNMP-MIB: ucdavis ::=3D { enterprises 2021 }<br></div><div><br></div><div>= I have cut a lot of the output here as it is just errors. Final output belo= w.</div><div><br></div><div>Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotif= yShutdown ::=3D { netSnmpNotifications 2 }<br>Cannot adopt OID in NET-SNMP-= AGENT-MIB: nsNotifyRestart ::=3D { netSnmpNotifications 3 }<br>Cannot adopt= OID in UCD-SNMP-MIB: laErrMessage ::=3D { laEntry 101 }<br>Cannot adopt OI= D in UCD-SNMP-MIB: laErrorFlag ::=3D { laEntry 100 }<br>Cannot adopt OID in= UCD-SNMP-MIB: laLoadFloat ::=3D { laEntry 6 }<br>Cannot adopt OID in UCD-S= NMP-MIB: laLoadInt ::=3D { laEntry 5 }<br>Cannot adopt OID in UCD-SNMP-MIB:= laConfig ::=3D { laEntry 4 }<br>Cannot adopt OID in UCD-SNMP-MIB: laLoad := :=3D { laEntry 3 }<br>Cannot adopt OID in UCD-SNMP-MIB: laNames ::=3D { laE= ntry 2 }<br>Cannot adopt OID in UCD-SNMP-MIB: laIndex ::=3D { laEntry 1 }<b= r>Unknown object identifier: unifiApSystem</div><div><br></div><div>The MIB= files are in /home/zen/.snmp/mibs</div><div><br></div><div>Which is listed= in the MIB search path=C2=A0</div><div>MIB search path: /home/zen/.snmp/mi= bs</div><div><br></div><div>zen@debian11-DR6:~$ ls /home/zen/.snmp/mibs<br>= UI-MIB =C2=A0UI-UniFi-MIB<br></div><div><br></div><div>Here is the entry in= the UI-UniFi-MIB file</div><div>unifiApSystem =C2=A0 OBJECT IDENTIFIER ::= =3D { ubntUniFi 3 }</div><div><br></div><div>I'm hoping to be able to u= se SNMP to query and monitor the network. But at this stage I'm still v= ery much an SNMP newbie and just trying to learn how to query the network a= t this point.</div><div><br></div><div>Obviously I'm doing something wr= ong, if the error is obvious, appreciate direction otherwise troubleshootin= g suggestions.</div><div><br></div><div>Thanks</div><div><br></div><div>Vau= ghan</div></div> </blockquote></div> --000000000000f2c6940626c14d7a-- --===============0824509917940331866== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0824509917940331866== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users --===============0824509917940331866==--