This is a discussion on Re: Octet string index problem in net-snmp within the SNMP Users forums, part of the Networking and Network Related category; Hi Dave, Thanks for the fast response. I am using net-snmp client and the application I am using is ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi Dave,
Thanks for the fast response. I am using net-snmp client and the application I am using is snmpwalk with v2c as version. I also observed one more thing: IP address is also fixed length octet-string of size 4. If I access any table which uses IP address as index, for that request net-snmp client(snmpwalk) is sending the length of the index as 4. ie if the index is say :1.1.1.2, the request has index sent as 04 04 01 01 01 02. Also if I do snmpget on a particluar instance on the same table , snmpget client application expects the user to provide the length of the string in the request. If it behaves that way (correct way) for tables with IP address as index, why the same application has to behave differently in my case. -Alamelu --- Dave Shield <D.T.Shield@liverpool.ac.uk> wrote: > On 01/02/2008, Alamelu Ramadurai > <alamelu16@yahoo.com> wrote: > > if the index is of size Octet String(6) and it is > some > > system-id say:22 22 33 33 44 44. > > The index part in reuqest is sent as 02 22 22 33 > 33 44 > > 44 and not as 04 06 22 22 33 33 44 44. > > Well, if the index is indeed OctetString(6) - i.e. > a fixed > length string - then the OID wouldn't need to > include the > length subidentifier. So it should be encoded as > 04 22 22 33 33 44 44 > > I don't know why it's being sent as type 02, though. > > > What exactly is generating this OID? Is it coming > from > the agent, or a client application? If the agent, > then what > is the code that reports this value? If a client, > then what > is the exact command that you are running? > > Dave > __________________________________________________ __________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i...Dypao8Wcj9tAcJ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |