Firstly, thank you very much for your help!
In fact, my table's index mac address  is a fixed length of 6. For example, if the mac address string is "ABCDEF", I want to print them with the following format: 
  A:B:C:D:E:F.
Sorry, I don't know whether I have expressed myself clearly. It looks like IPADDRESS, but  the length is 6.
 I use mib2c to generate the codes for me and it recognized the variable's type as ASN_OCTET_STR. But if the type is ASN_OCTET_STR, when I get the table, it just prints: xx.'.....' = x; I see nothing except dot. If I chang the type to ASN_PRIV_IMPLIED_OCTET_STR, it prints: xx.'A:B:C'.58.69.58.70 =x; It means that I can get the first three characters.
I am sorry I don't understand your meanings well. Do you mean if my variable is a fixed string, I can set the type as ASN_OCTET_STR with 5.3.1.pre3 ? Thanks again.
 
Best Regards!
Livia

 
On 6/1/06, Wes Hardaker <[EMAIL PROTECTED]> wrote:
>>>>> On Mon, 29 May 2006 17:22:52 +0800, "livia xie" < [EMAIL PROTECTED]> said:

livia> I don't what's wrong with it. Could anyone give me some advice how to
livia> correct this error? Thank you very much!

I'd have to see the MIB file but are you sure the mib file is either
using IMPLIED for that variable or is a fixed length string?

if you're sure, can you try with 5.3.1.pre3 since I think there was a
recent bug with fixed width strings that I may have fixed and is now
in the above pre-release.
--
Wes Hardaker
Sparta, Inc.

Reply via email to