Re: noSuchName

This is a discussion on Re: noSuchName within the SNMP Coders forums, part of the Networking and Network Related category; On Tue, Sep 27, 2005 at 11:21:20AM +0100, Dave Shield wrote: > Try dumping the contents of the ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-27-2005
Patrick Welche
 
Posts: n/a
Default Re: noSuchName

On Tue, Sep 27, 2005 at 11:21:20AM +0100, Dave Shield wrote:
> Try dumping the contents of the outgoing requests,
> and comparing the two.


Good plan: snmpget:

{ GetRequest(28) R=86800923 system.sysUpTime.0 }
{ GetResponse(32) R=86800923 system.sysUpTime.0=1062737154 }

and my broken programme:

{ GetRequest(36) R=1548568929 system.sysUpTime.0 .0.0.0.0.0[|snmp] }
{ GetResponse(36) R=1548568929 noSuchName@2 system.sysUpTime.0= .0.0.0.0.0=[|snmp] }

so that looks like a bad sizeof(value)/sizeof(oid), yet

valuelen[i]=sizeof(value[i])/sizeof(oid);
if (!snmp_parse_oid(varname[i], value[i], &valuelen[i])) {
snmp_perror(varname[i]);
failures++;
}

doesn't increment failures,

fprint_objid(stderr,value[IFINDEX],valuelen[IFINDEX]);

prints "SNMPv2-MIB::sysUpTime.0" with no extra cruft, and valuelen[IFINDEX]=9.

Which seems OK as 1.3.6.1.2.1.1.3.0 has 9 nodes.

Is there an error condition to check for in

snmp_add_null_var(pdu,value[IFINDEX],valuelen[IFINDEX]);

?

Cheers,

Patrick


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0