Question about using snmpwalk
gday vw <[email protected]> Mon, 18 Nov 2024 13:26:48 +1100
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CADPbiLODitmhmxbSZMXvJt-dUSmm-jng44w+U+53WEhPqvNTAg@mail.gmail.com> |
--===============6502032471020497585== Content-Type: multipart/alternative; boundary="000000000000ae877b062726a646" --000000000000ae877b062726a646 Content-Type: text/plain; charset="UTF-8" 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 --000000000000ae877b062726a646 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hello,<div>I'm trying to use snmpwalk to query a Ubiqu= iti device.</div><div>I'm using this page of the wiki as a guide:</div>= <div><a href=3D"https://net-snmp.sourceforge.io/wiki/index.php/TUT:snmpwalk= ">https://net-snmp.sourceforge.io/wiki/index.php/TUT:snmpwalk</a></div><div= ><br></div><div>The mibs folder includes all the mib files from my recent q= uestion.</div><div><br></div><div>Here are the queries and the output:</div= ><div><br></div><div>Test query (worked)</div><div>root@DavoUnraid:/# snmpt= ranslate -m +CISCO-RHINO-MIB -IR -On ciscoLS1010ChassisFanLed<br>.1.3.6.1.4= .1.9.5.11.1.1.12</div><div><br></div><div>Query Unifi switch (worked - alth= ough I was hoping for more information)</div><div>The mibs used to provide = results, don't appear to include the Unifi mibs.</div><div><br>root@Dav= oUnraid:/# snmpwalk -v 1 -c public 192.168.100.60 system<br>SNMPv2-MIB::sys= Descr.0 =3D STRING: USW GigaBit Ethernet Switch, firmware 7.1.26.15869<br>S= NMPv2-MIB::sysObjectID.0 =3D OID: SNMPv2-SMI::enterprises.41112.1<br>DISMAN= -EVENT-MIB::sysUpTimeInstance =3D Timeticks: (293664047) 33 days, 23:44:00.= 47<br>SNMPv2-MIB::sysContact.0 =3D STRING:<br>SNMPv2-MIB::sysName.0 =3D STR= ING:<br>SNMPv2-MIB::sysLocation.0 =3D STRING: Office<br>SNMPv2-MIB::sysServ= ices.0 =3D INTEGER: 3<br><br></div><div>Query Unifi switch using item / obj= ect from the Unifi mib (doesn't work)</div><div>root@DavoUnraid:/# snmp= walk -v 1 -c public 192.168.100.60 unifiIfIndex</div><div>unifiIfIndex: Unk= nown Object Identifier (Sub-id not found: (top) -> unifiIfIndex)<br><br>= </div><div>Query Unifi switch using item / object from the Unifi mib (doesn= 't work)</div><div>root@DavoUnraid:/usr/share/snmp/mibs# snmpwalk -v 1 = -c public 192.168.100.60 unifiApSystem<br>unifiApSystem: Unknown Object Ide= ntifier (Sub-id not found: (top) -> unifiApSystem)</div><div><br></div><= div>Confirming that Unifi mibs are in the mibs directory</div><div>root@Dav= oUnraid:/# pwd<br>/<br>root@DavoUnraid:/# cd usr<br>root@DavoUnraid:/usr# c= d share<br>root@DavoUnraid:/usr/share# cd snmp<br>root@DavoUnraid:/usr/shar= e/snmp# cd mibs<br>root@DavoUnraid:/usr/share/snmp/mibs# ls UI*<br>UI-MIB* = =C2=A0UI-UniFi-MIB*<br><br></div><div>Appreciate troubleshooting suggestion= s</div><div><br></div><div>Thanks</div><div><br></div><div>Vaughan</div></d= iv> --000000000000ae877b062726a646-- --===============6502032471020497585== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============6502032471020497585== 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 --===============6502032471020497585==--