C Code using SNMP_MSG_GET to 'walk' OIDs

"McCAWLEY Gregory C" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <5A1356A10651C44292B48DB5C445B7A867C32D@crwnmail3.staff.staffs.ac.uk>
Hi - I'm still struggling to find out why using code based on snmpwalk.c
will not 'walk' OIDs
 
I mentioned trying to use the code to walk from:
.1.3.6.1.2.1.17.4.3.1.2 (dot1dTpFdbPort)
 
Seems it is the same for any OID.
I tried it with 
.1.3.6.1.2.1.3.1
it recovers the first: Fa0/1, and stops as the code recognises the "OID
is not increasing".
 
When I examine the situation with a extra line:
 
snprint_variable(buf, sizeof(buf), vars->name, vars->name_length, vp);
and print out the buffer it produces:
 
IF-MIB::ifName.1 = Wrong Type (should be OCTET STRING): Variable has bad
typebuffer now  (should be OCTET STRING)
 
Does this suggest the variable the data is being loaded into is the
wrong type?
 
As I mentioned before, snmpwalk, from the command line, deals with
either of these OIDs with no problems.
I left the original question for a couple of weeks
 - hope this repeat doesn't annoy anybody, and what I'm missing isn't
too stupid! :o)
 
Regards
 
Greg 


The information in this email is confidential and is intended solely for the addressee.  Access to this email by anyone else is unauthorised.  



If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, except for the purpose of delivery to the addressee, is prohibited and may be unlawful.  Kindly notify the sender and delete the message and any attachment from your computer.

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.