Re: Using and loading MIBS

gday vw <[email protected]> Sat, 16 Nov 2024 14:08:23 +1100
Newsgroups gmane.network.net-snmp.user
Message-ID <CADPbiLOupK2foCbCLHRx6Hg0tSEJRXWw+1wUjLSZm=xNDZXAQA@mail.gmail.com>
--===============5694824089418535597==
Content-Type: multipart/alternative; boundary="000000000000bd2bfc0626feffb7"

--000000000000bd2bfc0626feffb7
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello David,

Those examples worked.

Thanks!

Vaughan

On Sat, Nov 16, 2024 at 2:02=E2=80=AFPM David R Anderson <david@mranderson.=
co.nz>
wrote:

> Good work,
>
> After reading the UBNT-UniFi-MIB I tried the same kind of thing as the
> Cisco MIB example:
>
> C:\usr\bin>snmptranslate  -m +UBNT-UniFi-MIB -M "c:\usr\share\snmp\mibs"
> -IR -On unifiIfIndex
> .1.3.6.1.4.1.41112.1.6.2.1.1.1
>
> C:\usr\bin>snmptranslate  -m +UBNT-UniFi-MIB -M "c:\usr\share\snmp\mibs"
> -IR -On unifiIfFullDuplex
> .1.3.6.1.4.1.41112.1.6.2.1.1.2
>
> If you try using the same syntax as this. The next items on the MIB tree
> are unifiIfIp, unifiIfMac ... etc
>
> Hope this helps
>
> On Sat, Nov 16, 2024 at 1:17=E2=80=AFPM gday vw <[email protected]> wrote:
>
>> Hello,
>>
>> I have unpacked all of the net-snmp-5.9.4\mibs\ files as recommended to
>> /usr/share/snmp/mibs
>>
>> The example in the Wiki now works
>> zen@debian11-DR6:~$ snmptranslate -m +CISCO-RHINO-MIB -IR -On
>> ciscoLS1010ChassisFanLed
>> .1.3.6.1.4.1.9.5.11.1.1.12
>>
>> However when I try to query any of the entries in the UI-UniFi-MIB file
>> I'm still getting errors.
>> zen@debian11-DR6:~$ snmptranslate -m +UI-UniFi-MIB -IR -On unifiIfIp
>> 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)
>> Unknown object identifier: unifiIfIp
>>
>> The UI-UniFi-MIB file is in the above folder along with all the other MI=
B
>> files, so the "Cannot find module" is misleading. The MIB file is there,
>> I'm still doing something wrong.
>>
>> At least I'm making progress.
>>
>> Thanks for the assistance.
>>
>> On Thu, Nov 14, 2024 at 7:31=E2=80=AFPM Lee <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> On Tue, Nov 12, 2024 at 7:16=E2=80=AFPM gday vw 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-S=
NMP_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 Deb=
ian)
>>> 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:/us=
r/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)
>>>
>>> OK, that's enough.  It looks like you're missing a _lot_ of MIB files,
>>> so download the latest net-snmp tarball
>>>
>>> https://sourceforge.net/projects/net-snmp/files/net-snmp/5.9.4/net-snmp=
-5.9.4.tar.gz/download
>>> and unpack all of the net-snmp-5.9.4\mibs\ files.
>>>
>>> I put everything into  /usr/local/share/snmp/mibs  you can put them
>>> there, /usr/share/snmp/mibs or wherever..
>>> In any case you should have something that looks like
>>>
>>> $ ls /usr/local/share/snmp/mibs
>>> EtherLike-MIB.txt                    SNMP-COMMUNITY-MIB.txt
>>> HCNUM-TC.txt                         SNMP-FRAMEWORK-MIB.txt
>>> HOST-RESOURCES-MIB.txt               SNMP-MPD-MIB.txt
>>> HOST-RESOURCES-TYPES.txt             SNMP-NOTIFICATION-MIB.txt
>>> IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt  SNMP-PROXY-MIB.txt
>>> IANA-LANGUAGE-MIB.txt                SNMP-TARGET-MIB.txt
>>> IANAifType-MIB.txt                   SNMP-USER-BASED-SM-MIB.txt
>>> IF-INVERTED-STACK-MIB.txt            SNMP-USM-AES-MIB.txt
>>> IF-MIB.my                            SNMP-USM-DH-OBJECTS-MIB.txt
>>> INET-ADDRESS-MIB.txt                 SNMP-VIEW-BASED-ACM-MIB.txt
>>> IP-FORWARD-MIB.txt                   SNMPv2-CONF.txt
>>> IP-MIB.txt                           SNMPv2-MIB.txt
>>> IPV6-FLOW-LABEL-MIB.txt              SNMPv2-SMI.txt
>>> IPV6-ICMP-MIB.txt                    SNMPv2-TC.txt
>>> IPV6-TCP-MIB.txt                     SNMPv2-TM.txt
>>> IPV6-UDP-MIB.txt                     TCP-MIB.txt
>>> NOTIFICATION-LOG-MIB.txt             TRANSPORT-ADDRESS-MIB.txt
>>> RFC1155-SMI.txt                      TUNNEL-MIB.txt
>>> RFC1213-MIB.my                       UCD-SNMP-MIB.txt
>>> RFC1215.txt                          UDP-MIB.txt
>>> RFC1271.MIB                          V2ADMIN.txt
>>> RFC2496.MIB                          cisco
>>> RMON-MIB.txt                         netgate
>>> SCTP-MIB.txt                         tplink
>>>
>>> Note that cisco, netgate and tplink are subdirectories.  I keep vendor
>>> specific mib files there.
>>>
>>> $ env | grep -i mib
>>> MIBS=3DALL
>>>
>>> MIBDIRS=3D/usr/local/share/snmp/mibs:/usr/local/share/snmp/mibs/cisco:/=
usr/local/share/snmp/mibs/netgate:/usr/local/share/snmp/mibs/tplink
>>>
>>> $ snmptranslate -IR -On ifDescr
>>> .1.3.6.1.2.1.2.2.1.2
>>>
>>> $ snmptranslate .1.3.6.1.2.1.2.2.1.2
>>> RFC1213-MIB::ifDescr
>>>
>>> $ snmpwalk librarysw ifDesc
>>> RFC1213-MIB::ifDescr.2 =3D STRING: "Vlan-interface2"
>>> RFC1213-MIB::ifDescr.49153 =3D STRING: "gigabitEthernet 1/0/1"
>>> RFC1213-MIB::ifDescr.49154 =3D STRING: "gigabitEthernet 1/0/2"
>>> RFC1213-MIB::ifDescr.49155 =3D STRING: "gigabitEthernet 1/0/3"
>>> RFC1213-MIB::ifDescr.49156 =3D STRING: "gigabitEthernet 1/0/4"
>>> RFC1213-MIB::ifDescr.49157 =3D STRING: "gigabitEthernet 1/0/5"
>>> RFC1213-MIB::ifDescr.49158 =3D STRING: "gigabitEthernet 1/0/6"
>>> RFC1213-MIB::ifDescr.49159 =3D STRING: "gigabitEthernet 1/0/7"
>>> RFC1213-MIB::ifDescr.49160 =3D STRING: "gigabitEthernet 1/0/8"
>>> RFC1213-MIB::ifDescr.49161 =3D STRING: "gigabitEthernet 1/0/9"
>>> RFC1213-MIB::ifDescr.49162 =3D STRING: "gigabitEthernet 1/0/10"
>>> RFC1213-MIB::ifDescr.49163 =3D STRING: "gigabitEthernet 1/0/11"
>>> RFC1213-MIB::ifDescr.49164 =3D STRING: "gigabitEthernet 1/0/12"
>>> RFC1213-MIB::ifDescr.49165 =3D STRING: "gigabitEthernet 1/0/13"
>>> RFC1213-MIB::ifDescr.49166 =3D STRING: "gigabitEthernet 1/0/14"
>>> RFC1213-MIB::ifDescr.49167 =3D STRING: "gigabitEthernet 1/0/15"
>>> RFC1213-MIB::ifDescr.49168 =3D STRING: "gigabitEthernet 1/0/16"
>>> RFC1213-MIB::ifDescr.49169 =3D STRING: "gigabitEthernet 1/0/17"
>>> RFC1213-MIB::ifDescr.49170 =3D STRING: "gigabitEthernet 1/0/18"
>>> RFC1213-MIB::ifDescr.49171 =3D STRING: "gigabitEthernet 1/0/19"
>>> RFC1213-MIB::ifDescr.49172 =3D STRING: "gigabitEthernet 1/0/20"
>>> RFC1213-MIB::ifDescr.49173 =3D STRING: "gigabitEthernet 1/0/21"
>>> RFC1213-MIB::ifDescr.49174 =3D STRING: "gigabitEthernet 1/0/22"
>>> RFC1213-MIB::ifDescr.49175 =3D STRING: "gigabitEthernet 1/0/23"
>>> RFC1213-MIB::ifDescr.49176 =3D STRING: "gigabitEthernet 1/0/24"
>>> RFC1213-MIB::ifDescr.49177 =3D STRING: "gigabitEthernet 1/0/25"
>>> RFC1213-MIB::ifDescr.49178 =3D STRING: "gigabitEthernet 1/0/26"
>>> RFC1213-MIB::ifDescr.49179 =3D STRING: "gigabitEthernet 1/0/27"
>>> RFC1213-MIB::ifDescr.49180 =3D STRING: "gigabitEthernet 1/0/28"
>>>
>>> Hope that helps,
>>> Lee
>>>
>> _______________________________________________
>> 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
>>
>

--000000000000bd2bfc0626feffb7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello David,<div><br></div><div>Those examples=C2=A0worked=
.</div><div><br></div><div>Thanks!</div><div><br></div><div>Vaughan</div></=
div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On=
 Sat, Nov 16, 2024 at 2:02=E2=80=AFPM David R Anderson &lt;<a href=3D"mailt=
o:[email protected]">[email protected]</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Good =
work,</div><div><br></div>After reading the UBNT-UniFi-MIB I tried the same=
 kind of thing as the Cisco MIB example:<div><br></div><div>C:\usr\bin&gt;s=
nmptranslate =C2=A0-m +UBNT-UniFi-MIB -M &quot;c:\usr\share\snmp\mibs&quot;=
 -IR -On unifiIfIndex<br>.1.3.6.1.4.1.41112.1.6.2.1.1.1</div><div><br></div=
><div>C:\usr\bin&gt;snmptranslate =C2=A0-m +UBNT-UniFi-MIB -M &quot;c:\usr\=
share\snmp\mibs&quot; -IR -On unifiIfFullDuplex<br>.1.3.6.1.4.1.41112.1.6.2=
.1.1.2</div><div><br></div><div>If you try using the same syntax as this. T=
he next items on the MIB tree are=C2=A0unifiIfIp,=C2=A0unifiIfMac ... etc</=
div><div><br></div><div>Hope this helps</div></div><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Nov 16, 2024 at 1:17=
=E2=80=AFPM gday vw &lt;<a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex"><div dir=3D"ltr">Hello,<div><br></div><div>I have unpack=
ed <span style=3D"font-family:Aptos,sans-serif;font-size:11pt">all of the n=
et-snmp-5.9.4\mibs\ files as recommended to /usr/share/snmp/mibs</span></di=
v><div><span style=3D"font-family:Aptos,sans-serif;font-size:11pt"><br></sp=
an></div><div><span style=3D"font-family:Aptos,sans-serif;font-size:11pt">T=
he example in the Wiki now works</span></div><div>zen@debian11-DR6:~$ snmpt=
ranslate -m +CISCO-RHINO-MIB -IR -On ciscoLS1010ChassisFanLed<br>.1.3.6.1.4=
.1.9.5.11.1.1.12<span style=3D"font-family:Aptos,sans-serif;font-size:11pt"=
></span></div><div><br></div><div>However when I try to query any of the en=
tries in the UI-UniFi-MIB file I&#39;m still getting errors.=C2=A0</div><di=
v>zen@debian11-DR6:~$ snmptranslate -m +UI-UniFi-MIB -IR -On unifiIfIp<br>M=
IB search path: /home/zen/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/m=
ibs/iana:/usr/share/snmp/mibs/ietf<br>Cannot find module (UI-UniFi-MIB): At=
 line 1 in (none)<br>Unknown object identifier: unifiIfIp<br></div><div><br=
></div><div>The UI-UniFi-MIB file is in the above folder along with all the=
 other MIB files, so the &quot;Cannot find module&quot; is misleading. The =
MIB file is there, I&#39;m still doing something wrong.</div><div><br></div=
><div>At least I&#39;m making progress.</div><div><br></div><div>Thanks for=
 the assistance.=C2=A0</div></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Thu, Nov 14, 2024 at 7:31=E2=80=AFPM Lee &=
lt;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</=
a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi=
,<br>
<br>
On Tue, Nov 12, 2024 at 7:16=E2=80=AFPM gday vw wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m an SNMP newbie and I&#39;m trying to follow this tutorial.<br>
&gt;<br>
&gt; <a href=3D"http://www.net-snmp.org/wiki/index.php/TUT:Using_and_loadin=
g_MIBS#Net-SNMP_Command_Line_Applications" rel=3D"noreferrer" target=3D"_bl=
ank">http://www.net-snmp.org/wiki/index.php/TUT:Using_and_loading_MIBS#Net-=
SNMP_Command_Line_Applications</a><br>
&gt;<br>
&gt; OS is Debian<br>
&gt; zen@debian11-DR6:~$ cat /proc/version<br>
&gt; Linux version 5.10.0-33-amd64 (<a href=3D"mailto:[email protected]=
ebian.org" target=3D"_blank">[email protected]</a>) (gcc-10 (D=
ebian 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)<br>
&gt;<br>
&gt; Command and output<br>
&gt; zen@debian11-DR6:~$ snmptranslate -m +UI-UniFi-MIB -IR -On unifiApSyst=
em<br>
&gt; MIB search path: /home/zen/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/=
snmp/mibs/iana:/usr/share/snmp/mibs/ietf<br>
&gt; Cannot find module (SNMPv2-MIB): At line 1 in (none)<br>
&gt; Cannot find module (IF-MIB): At line 1 in (none)<br>
&gt; Cannot find module (IP-MIB): At line 1 in (none)<br>
<br>
OK, that&#39;s enough.=C2=A0 It looks like you&#39;re missing a _lot_ of MI=
B files,<br>
so download the latest net-snmp tarball<br>
=C2=A0 <a href=3D"https://sourceforge.net/projects/net-snmp/files/net-snmp/=
5.9.4/net-snmp-5.9.4.tar.gz/download" rel=3D"noreferrer" target=3D"_blank">=
https://sourceforge.net/projects/net-snmp/files/net-snmp/5.9.4/net-snmp-5.9=
.4.tar.gz/download</a><br>
and unpack all of the net-snmp-5.9.4\mibs\ files.<br>
<br>
I put everything into=C2=A0 /usr/local/share/snmp/mibs=C2=A0 you can put th=
em<br>
there, /usr/share/snmp/mibs or wherever..<br>
In any case you should have something that looks like<br>
<br>
$ ls /usr/local/share/snmp/mibs<br>
EtherLike-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 SNMP-COMMUNITY-MIB.txt<br>
HCNUM-TC.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0SNMP-FRAMEWORK-MIB.txt<br>
HOST-RESOURCES-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0SNMP-MPD-MIB.txt<br>
HOST-RESOURCES-TYPES.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0SNM=
P-NOTIFICATION-MIB.txt<br>
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt=C2=A0 SNMP-PROXY-MIB.txt<br>
IANA-LANGUAGE-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 SNMP-TARGET-MIB.txt<br>
IANAifType-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0SNMP-USER-BASED-SM-MIB.txt<br>
IF-INVERTED-STACK-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 SNMP-USM=
-AES-MIB.txt<br>
IF-MIB.my=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 SNMP-USM-DH-OBJECTS-MIB.txt<br>
INET-ADDRESS-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0SNMP-VIEW-BASED-ACM-MIB.txt<br>
IP-FORWARD-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0SNMPv2-CONF.txt<br>
IP-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0SNMPv2-MIB.txt<br>
IPV6-FLOW-LABEL-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 SNM=
Pv2-SMI.txt<br>
IPV6-ICMP-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 SNMPv2-TC.txt<br>
IPV6-TCP-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0SNMPv2-TM.txt<br>
IPV6-UDP-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0TCP-MIB.txt<br>
NOTIFICATION-LOG-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0TRA=
NSPORT-ADDRESS-MIB.txt<br>
RFC1155-SMI.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 TUNNEL-MIB.txt<br>
RFC1213-MIB.my=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0UCD-SNMP-MIB.txt<br>
RFC1215.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 UDP-MIB.txt<br>
RFC1271.MIB=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 V2ADMIN.txt<br>
RFC2496.MIB=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cisco<br>
RMON-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0netgate<br>
SCTP-MIB.txt=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0tplink<br>
<br>
Note that cisco, netgate and tplink are subdirectories.=C2=A0 I keep vendor=
<br>
specific mib files there.<br>
<br>
$ env | grep -i mib<br>
MIBS=3DALL<br>
MIBDIRS=3D/usr/local/share/snmp/mibs:/usr/local/share/snmp/mibs/cisco:/usr/=
local/share/snmp/mibs/netgate:/usr/local/share/snmp/mibs/tplink<br>
<br>
$ snmptranslate -IR -On ifDescr<br>
.1.3.6.1.2.1.2.2.1.2<br>
<br>
$ snmptranslate .1.3.6.1.2.1.2.2.1.2<br>
RFC1213-MIB::ifDescr<br>
<br>
$ snmpwalk librarysw ifDesc<br>
RFC1213-MIB::ifDescr.2 =3D STRING: &quot;Vlan-interface2&quot;<br>
RFC1213-MIB::ifDescr.49153 =3D STRING: &quot;gigabitEthernet 1/0/1&quot;<br=
>
RFC1213-MIB::ifDescr.49154 =3D STRING: &quot;gigabitEthernet 1/0/2&quot;<br=
>
RFC1213-MIB::ifDescr.49155 =3D STRING: &quot;gigabitEthernet 1/0/3&quot;<br=
>
RFC1213-MIB::ifDescr.49156 =3D STRING: &quot;gigabitEthernet 1/0/4&quot;<br=
>
RFC1213-MIB::ifDescr.49157 =3D STRING: &quot;gigabitEthernet 1/0/5&quot;<br=
>
RFC1213-MIB::ifDescr.49158 =3D STRING: &quot;gigabitEthernet 1/0/6&quot;<br=
>
RFC1213-MIB::ifDescr.49159 =3D STRING: &quot;gigabitEthernet 1/0/7&quot;<br=
>
RFC1213-MIB::ifDescr.49160 =3D STRING: &quot;gigabitEthernet 1/0/8&quot;<br=
>
RFC1213-MIB::ifDescr.49161 =3D STRING: &quot;gigabitEthernet 1/0/9&quot;<br=
>
RFC1213-MIB::ifDescr.49162 =3D STRING: &quot;gigabitEthernet 1/0/10&quot;<b=
r>
RFC1213-MIB::ifDescr.49163 =3D STRING: &quot;gigabitEthernet 1/0/11&quot;<b=
r>
RFC1213-MIB::ifDescr.49164 =3D STRING: &quot;gigabitEthernet 1/0/12&quot;<b=
r>
RFC1213-MIB::ifDescr.49165 =3D STRING: &quot;gigabitEthernet 1/0/13&quot;<b=
r>
RFC1213-MIB::ifDescr.49166 =3D STRING: &quot;gigabitEthernet 1/0/14&quot;<b=
r>
RFC1213-MIB::ifDescr.49167 =3D STRING: &quot;gigabitEthernet 1/0/15&quot;<b=
r>
RFC1213-MIB::ifDescr.49168 =3D STRING: &quot;gigabitEthernet 1/0/16&quot;<b=
r>
RFC1213-MIB::ifDescr.49169 =3D STRING: &quot;gigabitEthernet 1/0/17&quot;<b=
r>
RFC1213-MIB::ifDescr.49170 =3D STRING: &quot;gigabitEthernet 1/0/18&quot;<b=
r>
RFC1213-MIB::ifDescr.49171 =3D STRING: &quot;gigabitEthernet 1/0/19&quot;<b=
r>
RFC1213-MIB::ifDescr.49172 =3D STRING: &quot;gigabitEthernet 1/0/20&quot;<b=
r>
RFC1213-MIB::ifDescr.49173 =3D STRING: &quot;gigabitEthernet 1/0/21&quot;<b=
r>
RFC1213-MIB::ifDescr.49174 =3D STRING: &quot;gigabitEthernet 1/0/22&quot;<b=
r>
RFC1213-MIB::ifDescr.49175 =3D STRING: &quot;gigabitEthernet 1/0/23&quot;<b=
r>
RFC1213-MIB::ifDescr.49176 =3D STRING: &quot;gigabitEthernet 1/0/24&quot;<b=
r>
RFC1213-MIB::ifDescr.49177 =3D STRING: &quot;gigabitEthernet 1/0/25&quot;<b=
r>
RFC1213-MIB::ifDescr.49178 =3D STRING: &quot;gigabitEthernet 1/0/26&quot;<b=
r>
RFC1213-MIB::ifDescr.49179 =3D STRING: &quot;gigabitEthernet 1/0/27&quot;<b=
r>
RFC1213-MIB::ifDescr.49180 =3D STRING: &quot;gigabitEthernet 1/0/28&quot;<b=
r>
<br>
Hope that helps,<br>
Lee<br>
</blockquote></div>
_______________________________________________<br>
Net-snmp-users mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">N=
[email protected]</a><br>
Please see the following page to unsubscribe or change other options:<br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/net-snmp-users" rel=
=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi=
nfo/net-snmp-users</a><br>
</blockquote></div>
</blockquote></div>

--000000000000bd2bfc0626feffb7--


--===============5694824089418535597==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5694824089418535597==
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

--===============5694824089418535597==--