DisplayString as Table Index

Frank Fock Frank.Fock____t-online.de
Tue Sep 25 07:42:19 CEST 2001


Hi Vijay,

You will have to transform the string into an OID before setting it as
an index:

Oid  oidIndex("111.111.111.111");
oidIndex += Oidx::from_string("abc", TRUE);  //with length subidentifier

Best regards,
Frank

Vijay K wrote:

> Hi,
>
> I have a table which has as indices, an ip address and a displaystring.
> This is how I set the Index:
>
> =========
> Oidx oidIndex("111.111.111.111.abc");
> =========
>
> When I try to retrieve the data from the Manager side (MIB Browser) - the
> index does not appear.
>
> However if I set the index as:
> =========
> Oidx oidIndex("111.111.111.111.25");
> =========
>
> - the index appears as "111.111.111.111.25". Why is this so?
>
> Is there any special processing to be done before setting a displaystring as
> index?
>
> thanks in advance,
>
> regards,
> Vijay K

--
Frank Fock - AGENT++
Email: fock____agentpp.com
Fax: +49 7195 177108





More information about the AGENTPP mailing list