I am struggling to understand the snmptranslate command
Jeff Silverman <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
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. [jeffs@black ~]$ snmptranslate -Ib ipSystemStatsInDiscards IP-MIB::ipSystemStatsInDiscards [jeffs@black ~]$ snmptranslate -Of -Ib ipSystemStatsInDiscards .iso.org.dod.internet.mgmt.mib-2.ip.ipTrafficStats.ipSystemStatsTable.ipSystemStatsEntry.ipSystemStatsInDiscards [jeffs@black ~]$ snmptranslate -On IP-MIB::ipSystemStatsInDiscards .1.3.6.1.2.1.4.31.1.1.17 [jeffs@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. [jeffs@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? [jeffs@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 [jeffs@black ~]$ Here are some other things I have tried which still don't work the way I guess I expect them to. [jeffs@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 [jeffs@black ~]$ snmpget -v 2c -c public localhost SNMPv2-MIB::sysDescr SNMPv2-MIB::sysDescr = No Such Instance currently exists at this OID [jeffs@black ~]$ snmptranslate -Of -Ib sysDescr .iso.org.dod.internet.mgmt.mib-2.system.sysDescr [jeffs@black ~]$ snmptranslate -On -Ib sysDescr .1.3.6.1.2.1.1.1 [jeffs@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 [jeffs@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 [jeffs@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) [jeffs@black ~]$ [jeffs@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 [jeffs@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 [jeffs@black ~]$ Hopefully, I am running into a simple stupid problem with a simple answer. Can somebody please tell me what that problem is? [jeffs@black ~]$ snmptranslate -V NET-SNMP version: 5.3 [jeffs@black ~]$ cat /etc/redhat-release Fedora Core release 5 (Bordeaux) [jeffs@black ~]$ Thank you Jeff Silverman ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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