Jeff Silverman
2006-07-11 05:58:16 UTC
I picked ipSystemStatsInDiscards as my test OID because my family says
that my home LAN is performing poorly. So I thought this would be a
golden opportunity to learn something about SNMP. Alas, I'm not doing a
very good job starting out.
[***@black ~]$ snmptranslate -Ib ipSystemStatsInDiscards
IP-MIB::ipSystemStatsInDiscards
[***@black ~]$ snmptranslate -Of -Ib ipSystemStatsInDiscards
.iso.org.dod.internet.mgmt.mib-2.ip.ipTrafficStats.ipSystemStatsTable.ipSystemStatsEntry.ipSystemStatsInDiscards
[***@black ~]$ snmptranslate -On IP-MIB::ipSystemStatsInDiscards
.1.3.6.1.2.1.4.31.1.1.17
[***@black ~]$ snmptranslate .1.3.6.1.2.1.4.31.1.1.17
IP-MIB::ipSystemStatsInDiscards
So far, so good, I guess. I'm not sure why it uses IP-MIB:: but since
the translation is bijective, I guess there's a good reason. However,
the following doesn't work and I don't understand why not.
[***@black ~]$ snmptranslate
.iso.org.dod.internet.mgmt.mib-2.ip.ipTrafficStats.ipSystemStatsTable.ipSystemStatsEntry.ipSystemStatsInDiscards
No log handling enabled - turning on stderr logging
.iso.org.dod.internet.mgmt.mib-2.ip.ipTrafficStats.ipSystemStatsTable.ipSystemStatsEntry.ipSystemStatsInDiscards:
Unknown Object Identifier (Sub-id not found: iso -> iso)
Is this problem the reason why snmpget doens't work?
[***@black ~]$ snmpget -v 2c -Le -c puBlIc localhost
.1.3.6.1.2.1.4.31.1.1.17
IP-MIB::ipSystemStatsInDiscards = No Such Object available on this agent
at this OID
[***@black ~]$
Here are some other things I have tried which still don't work the way I
guess I expect them to.
[***@black ~]$ snmpget -v 2c -c public localhost system.sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
Mar 14 15:48:33 EST 2006 i686
[***@black ~]$ snmpget -v 2c -c public localhost SNMPv2-MIB::sysDescr
SNMPv2-MIB::sysDescr = No Such Instance currently exists at this OID
[***@black ~]$ snmptranslate -Of -Ib sysDescr
.iso.org.dod.internet.mgmt.mib-2.system.sysDescr
[***@black ~]$ snmptranslate -On -Ib sysDescr
.1.3.6.1.2.1.1.1
[***@black ~]$ snmpget -v 2c -c public localhost SNMPv2-MIB::sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
Mar 14 15:48:33 EST 2006 i686
[***@black ~]$ snmpget -v 2c -c public localhost
.iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
Mar 14 15:48:33 EST 2006 i686
[***@black ~]$ snmptranslate -Td
.iso.org.dod.internet.mgmt.mib-2.ip.ipInDiscards.0
No log handling enabled - turning on stderr logging
.iso.org.dod.internet.mgmt.mib-2.ip.ipInDiscards.0: Unknown Object
Identifier (Sub-id not found: iso -> iso)
[***@black
~]$
[***@black ~]$ snmpget -v 2c -c public localhost .1.3.6.1.2.1.1.1
SNMPv2-MIB::sysDescr = No Such Instance currently exists at this OID
[***@black ~]$ snmpget -v 2c -c public localhost .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
Mar 14 15:48:33 EST 2006 i686
[***@black ~]$
Hopefully, I am running into a simple stupid problem with a simple
answer. Can somebody please tell me what that problem is?
[***@black ~]$ snmptranslate -V
NET-SNMP version: 5.3
[***@black ~]$ cat /etc/redhat-release
Fedora Core release 5 (Bordeaux)
[***@black ~]$
Thank you
Jeff Silverman
that my home LAN is performing poorly. So I thought this would be a
golden opportunity to learn something about SNMP. Alas, I'm not doing a
very good job starting out.
[***@black ~]$ snmptranslate -Ib ipSystemStatsInDiscards
IP-MIB::ipSystemStatsInDiscards
[***@black ~]$ snmptranslate -Of -Ib ipSystemStatsInDiscards
.iso.org.dod.internet.mgmt.mib-2.ip.ipTrafficStats.ipSystemStatsTable.ipSystemStatsEntry.ipSystemStatsInDiscards
[***@black ~]$ snmptranslate -On IP-MIB::ipSystemStatsInDiscards
.1.3.6.1.2.1.4.31.1.1.17
[***@black ~]$ snmptranslate .1.3.6.1.2.1.4.31.1.1.17
IP-MIB::ipSystemStatsInDiscards
So far, so good, I guess. I'm not sure why it uses IP-MIB:: but since
the translation is bijective, I guess there's a good reason. However,
the following doesn't work and I don't understand why not.
[***@black ~]$ snmptranslate
.iso.org.dod.internet.mgmt.mib-2.ip.ipTrafficStats.ipSystemStatsTable.ipSystemStatsEntry.ipSystemStatsInDiscards
No log handling enabled - turning on stderr logging
.iso.org.dod.internet.mgmt.mib-2.ip.ipTrafficStats.ipSystemStatsTable.ipSystemStatsEntry.ipSystemStatsInDiscards:
Unknown Object Identifier (Sub-id not found: iso -> iso)
Is this problem the reason why snmpget doens't work?
[***@black ~]$ snmpget -v 2c -Le -c puBlIc localhost
.1.3.6.1.2.1.4.31.1.1.17
IP-MIB::ipSystemStatsInDiscards = No Such Object available on this agent
at this OID
[***@black ~]$
Here are some other things I have tried which still don't work the way I
guess I expect them to.
[***@black ~]$ snmpget -v 2c -c public localhost system.sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
Mar 14 15:48:33 EST 2006 i686
[***@black ~]$ snmpget -v 2c -c public localhost SNMPv2-MIB::sysDescr
SNMPv2-MIB::sysDescr = No Such Instance currently exists at this OID
[***@black ~]$ snmptranslate -Of -Ib sysDescr
.iso.org.dod.internet.mgmt.mib-2.system.sysDescr
[***@black ~]$ snmptranslate -On -Ib sysDescr
.1.3.6.1.2.1.1.1
[***@black ~]$ snmpget -v 2c -c public localhost SNMPv2-MIB::sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
Mar 14 15:48:33 EST 2006 i686
[***@black ~]$ snmpget -v 2c -c public localhost
.iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
Mar 14 15:48:33 EST 2006 i686
[***@black ~]$ snmptranslate -Td
.iso.org.dod.internet.mgmt.mib-2.ip.ipInDiscards.0
No log handling enabled - turning on stderr logging
.iso.org.dod.internet.mgmt.mib-2.ip.ipInDiscards.0: Unknown Object
Identifier (Sub-id not found: iso -> iso)
[***@black
~]$
[***@black ~]$ snmpget -v 2c -c public localhost .1.3.6.1.2.1.1.1
SNMPv2-MIB::sysDescr = No Such Instance currently exists at this OID
[***@black ~]$ snmpget -v 2c -c public localhost .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
Mar 14 15:48:33 EST 2006 i686
[***@black ~]$
Hopefully, I am running into a simple stupid problem with a simple
answer. Can somebody please tell me what that problem is?
[***@black ~]$ snmptranslate -V
NET-SNMP version: 5.3
[***@black ~]$ cat /etc/redhat-release
Fedora Core release 5 (Bordeaux)
[***@black ~]$
Thank you
Jeff Silverman