Re: Octet string index problem in net-snmp

Alamelu Ramadurai <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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 <[email protected]> wrote:

> On 01/02/2008, Alamelu Ramadurai
> <[email protected]> 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=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-------------------------------------------------------------------------
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
[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.