Discussion:
snmpwalk: Timeout (Sub-id not found: (top) -> sysUpTime)
PoWah Wong
2007-11-13 06:51:54 UTC
Permalink
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678 -x DES -X 87654321 myhost sysUpTime
snmpwalk: Timeout (Sub-id not found: (top) ->
sysUpTime)

How to debug the problem?



Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
PoWah Wong
2007-11-13 14:06:32 UTC
Permalink
instead of giving sysUpTime give sysUpTime.0 ,
because sysUpTime is scalar
type
On Nov 12, 2007 10:51 PM, PoWah Wong
Post by PoWah Wong
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678 -x DES -X 87654321 myhost sysUpTime
snmpwalk: Timeout (Sub-id not found: (top) ->
sysUpTime)
How to debug the problem?
Be smarter than spam. See how smart SpamGuard
is at giving junk email
Post by PoWah Wong
the boot with the All-new Yahoo! Mail. Click on
Options in Mail and switch
Post by PoWah Wong
to New Mail today or register for free at
http://mail.yahoo.ca
-------------------------------------------------------------------------
Post by PoWah Wong
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?
Stop.
Post by PoWah Wong
Now Search log events and configuration files
using AJAX and a browser.
Post by PoWah Wong
Download your FREE copy of Splunk now >>
http://get.splunk.com/
Post by PoWah Wong
_______________________________________________
Net-snmp-users mailing list
Please see the following page to unsubscribe or
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678 -x DES -X 87654321 smyhost ysUpTime.0
snmpwalk: Timeout (Sub-id not found: (top) ->
sysUpTime)

Same problem.
How to debug the problem?


Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
Mike Ayers
2007-11-13 18:54:20 UTC
Permalink
Behalf Of PoWah Wong
Sent: Tuesday, November 13, 2007 6:07 AM
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678 -x DES -X 87654321 smyhost ysUpTime.0
snmpwalk: Timeout (Sub-id not found: (top) ->
sysUpTime)
Same problem.
How to debug the problem?
The key is "(Sub-id not found: (top) -> sysUpTime)", which means that the program does not understand the meaning of "sysUpTime". I get the same result:

<SNIP>
$ snmptranslate -Le sysUpTime
sysUpTime: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime)
$ snmptranslate -Le SNMPv2-MIB::sysUpTime
SNMPv2-MIB::sysUpTime
$
</SNIP>


HTH,

Mike
Dave Shield
2007-11-13 20:38:47 UTC
Permalink
Post by Mike Ayers
The key is "(Sub-id not found: (top) -> sysUpTime)", which means
that the program does not understand the meaning of "sysUpTime".
Indeed.
(Hence my questions about MIB files).
Post by Mike Ayers
<SNIP>
$ snmptranslate -Le sysUpTime
sysUpTime: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime)
Please remember that snmptranslate is the only tool that does not
use "random lookup" by default.
Try
snmptranslate -IR sysUpTime

If that works, then I'd expect

snmpget .... sysUpTime.0

to be able to translate this into a numeric OID, and at least
get as far as sending the request (even if the remote agent
might not respond).

My suspicion is that PoWah has a configuration where
none of the tools are picking up the MIB files at all.

Dave
Dave Shield
2007-11-13 15:53:43 UTC
Permalink
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A 12345678
-x DES -X 87654321 myhost sysUpTime
snmpwalk: Timeout (Sub-id not found: (top) -> sysUpTime)
How to debug the problem?
Two things to look at:

a) Are the MIB files installed on your system? If so, where?
Check the locations that "snmpwalk" is looking in
(snmpwalk -D parse-mibs .....)

b) What are the access control settings on the target agent?
Is the user "admin" set up on that system?
Are you sure that the authentication/privacy params are correct?

Are you sure that the target agent supports encrypted requests?
It might be worth trying with "authNoPriv" to start with.
(Or even "noAuthNoPriv", with suitable access control settings)

Dave
PoWah Wong
2007-11-15 14:14:48 UTC
Permalink
Post by Mike Ayers
Post by Mike Ayers
The key is "(Sub-id not found: (top) ->
sysUpTime)", which means
Post by Mike Ayers
that the program does not understand the meaning
of "sysUpTime".
Indeed.
(Hence my questions about MIB files).
Post by Mike Ayers
<SNIP>
$ snmptranslate -Le sysUpTime
sysUpTime: Unknown Object Identifier (Sub-id not
found: (top) -> sysUpTime)
Please remember that snmptranslate is the only tool
that does not
use "random lookup" by default.
Try
snmptranslate -IR sysUpTime
If that works, then I'd expect
snmpget .... sysUpTime.0
to be able to translate this into a numeric OID, and
at least
get as far as sending the request (even if the
remote agent
might not respond).
My suspicion is that PoWah has a configuration where
none of the tools are picking up the MIB files at
all.
Dave
-------------------------------------------------------------------------
Post by Mike Ayers
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?
Stop.
Now Search log events and configuration files using
AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
Please see the following page to unsubscribe or
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Starting snmp daemon (service snmpd start) at myhost
has some error messages at the log:
# cat /var/log/snmpd.log
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
NET-SNMP version 5.4.1

The same snmp application fail at myhost but pass at
tulip:
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678 -x DES -X 87654321 myhost sysUpTime
snmpwalk: Timeout (Sub-id not found: (top) ->
sysUpTime)

$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678 -x DES -X 87654321 tulip sysUpTime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks:
(19789700) 2 days, 6:58:17.00



Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
Dave Shield
2007-11-15 14:53:38 UTC
Permalink
Post by PoWah Wong
Starting snmp daemon (service snmpd start) at myhost
# cat /var/log/snmpd.log
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
You can ignore those.
(See Offical Patch #1805971)
Post by PoWah Wong
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A 12345678
-x DES -X 87654321 tulip sysUpTime
sysUpTimeInstance = Timeticks: 2 days, 6:58:17.00
OK - so snmpwalk is picking up the MIB files OK.
Post by PoWah Wong
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A 12345678
-x DES -X 87654321 myhost sysUpTime
snmpwalk: Timeout (Sub-id not found: (top) ->sysUpTime)
I'm beginning to wonder whether the "Sub-id" found message
might be a red herring.
Post by PoWah Wong
b) What are the access control settings on the target agent? [i.e. 'myhost']
Is the user "admin" set up on that system?
Are you sure that the authentication/privacy params are correct?
I'd also suggest looking at any firewall settings on that box.
What happens if you run

$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A 12345678
-x DES -X 87654321 localhost sysUpTime

from 'myhost' itself?

Dave
Mike Ayers
2007-11-15 18:50:44 UTC
Permalink
Behalf Of Dave Shield
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A 12345678
-x DES -X 87654321 myhost sysUpTime
snmpwalk: Timeout (Sub-id not found: (top) ->sysUpTime)
I'm beginning to wonder whether the "Sub-id" found message
might be a red herring.
I'm beginning to think it's not - specifically, was this agent built with SNMPv2-MIB support? Unfortunately I don't know the exact behavior of snmpwalk. PoWah, could you please try the following:

$ snmpgetnext -v 3 -u admin -l authPriv -a MD5 -A 12345678
-x DES -X 87654321 -On myhost .1.3.6.1.2.1.1

If the response doesn't start with .1.3.6.1.2.1.1 (the system group), then try again with .1.3.6.1.2.1.11 (the snmp group), finally the .1.3.6.1.6.3.1 (the snmpMIB group). If none of these have objects, then you simply don't have an SNMPv2-MIB as part of your master agent.


HTH,

Mike
PoWah Wong
2007-11-15 21:42:40 UTC
Permalink
Post by PoWah Wong
Post by PoWah Wong
Starting snmp daemon (service snmpd start) at
myhost
Post by PoWah Wong
# cat /var/log/snmpd.log
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
You can ignore those.
(See Offical Patch #1805971)
Post by PoWah Wong
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678
Post by PoWah Wong
-x DES -X 87654321 tulip sysUpTime
sysUpTimeInstance = Timeticks: 2 days, 6:58:17.00
OK - so snmpwalk is picking up the MIB files OK.
Post by PoWah Wong
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678
Post by PoWah Wong
-x DES -X 87654321 myhost
sysUpTime
Post by PoWah Wong
snmpwalk: Timeout (Sub-id not found: (top)
->sysUpTime)
I'm beginning to wonder whether the "Sub-id" found
message
might be a red herring.
Post by PoWah Wong
b) What are the access control settings on the
target agent? [i.e. 'myhost']
Post by PoWah Wong
Is the user "admin" set up on that system?
Are you sure that the authentication/privacy
params are correct?
I'd also suggest looking at any firewall settings on
that box.
What happens if you run
$ snmpwalk -v 3 -u admin -l authPriv -a MD5 -A
12345678
-x DES -X 87654321 localhost
sysUpTime
from 'myhost' itself?
Dave
Problem is solved after open firewall settings for
snmp.



Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
Loading...