On Fri, 2009-02-13 at 16:27 +0800, sunliang 00100828 wrote:
> Dear Sir/Madam
> 
> This is an engineer from Huawei Technology LTD.
> We have met an issue with your software in version 5.2.3
> We want to do the SNMPWALK function, and set the software do not check up 
> according to ASCII sequence.
> Do you have a solution?

You do not specify what MIB you are trying to walk/implement.

Snmp tables are always indexed on OIDs and the ordering is the OID
order. This implies that the order is determined by the mapping from
string to OID.

In the default case a variable length string is mapped as
<length>.data[0]...data[length-1] so for the string "ABC" you would
get ...3.65.66.67...

If you are in control of the MIB, haven't released it yet, can ignore
supporting SMIv1, the string is the last item in the index and the empty
string is not a valid value then you could mark it as IMPLIED, that
changes the encoding to data[0]...data[length-1] so that "ABC" would be
encoded as ...65.66.67<END-OF-OID>

Another variation is that you could use a fixed length string, that
would also be encoded as data[0]...data[length-1] but here the
restriction is that all indices must have the same length.

This is all described in RFC 2578 section 7.7

/MF


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to