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
