[AGENT++] AGENT++ How to use Octet string as index in dynamic table?

Alexander G. Nilov arifolth at mail.ru
Wed Jul 13 14:55:23 CEST 2005


Hi All!
--
I need to use octet string as index in dynamic table,
I tryed

const index_info indServiceTable[1] =
  {
      { sNMP_SYNTAX_OCTETS, FALSE, 0, 255 }
  };

first column is octet string,
add_col(new MibLeaf("1", READONLY, new OctetStr("")));

then I created and filled a row:
row = add_row(*C_Style_Str*);
row->get_nth(0)->replace_value(new OctetStr(*C_Style_Str*));

but in agent`s response is integer (1) in oid in that branch (..1.x 
...), there are no index string

... .1.1   octet string
... .1.2    integer
... .1.3    ...
... .1.4     somthing else

...

Whats wrong?
Can you post an example - creation of such table?
--
Thanks,
Arifolth




More information about the AGENTPP mailing list