I'm new to SNMP.

Installed an SNMP server (net-snmp 5.4.3 on Debian), and I`m trying to go through this tutorial : http://oreilly.com/perl/excerpts/system-admin-with-perl/twenty-minute-snmp-tutorial.html

I am getting a strange response for the following query:

# snmpgetnext -v 1 -c public localhost  \
    ip.ipRouteTable.ipRouteEntry.ipRouteDest \
    ip.ipRouteTable.ipRouteEntry.ipRouteNextHop

HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (67626825) 7 days, 19:51:08.25
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (67626825) 7 days, 19:51:08.25

I would expect to get some routing table information, but instead I get the system uptime (twice).

any idea why?

link|improve this question

67% accept rate
Can you try doing snmpwalk -v 1 -c public localhost | grep ipRouteDest? I think it may be because snmpd is not actually giving you all of the OIDs due to permissions on the public community. – d34dh0r53 Dec 19 '11 at 14:27
returns nothing. I did have a permission issue, new error message for the query above is two lines like:Unknown Object Identifier (Sub-id not found: (top) -> ip) – Omry Dec 20 '11 at 16:17
Do any of the tutorial examples work on your target device? Is snmp running? – RobW Dec 21 '11 at 21:58
My guess is that you have one or more screwed mibs (where the text is translated to its actual value). In particular you may want to check the values in the host-resources mib. – John Gardeniers Dec 22 '11 at 1:23
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.