Some Question

Frank Fock Frank.Fock____t-online.de
Wed Apr 18 22:36:44 CEST 2001


Hi Mauro,

Please find my comments inline:

Mauro Restante wrote:

> Hi to all,
>
> I try to implement Disman-Schedule-Mib Table Entry.
> This Table have two Index. I follow some suggestion that I found on the
> mailing list archive.
> I concatenate the OID of the two sub indexes, but I don't understand how it
> is encoded.
> In the Mib.h file there is some suggestion about it:
>
> Is this correct?
>
> >>>>>>  schedEntry* schedTable=new schedEntry();
> >>>>>>
> >>>>>>  printf("funzioni\n");
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>  Oidx OwnerIndex="2.65.66";//    INDEX1: if I understand correctly, this
> mean that the string has size of 2

Correct!

>
> >>>>>>                                  //      and the other element is the ACSII encoded of 2 characters.
> >>>>>>
> >>>>>>  Oidx DescrIndex="1.68";//       INDEX2

OK.

>
> >>>>>>
> >>>>>>
> >>>>>>  Oidx SchedIndex= OwnerIndex;
> >>>>>>  SchedIndex+=DescrIndex;//       index concatenated

OK.

>
> >>>>>>
> >>>>>>
> >>>>>>  MibTableRow* r=schedTable->instance->add_row(SchedIndex);//Add new
> row in the table

OK.

>
> >>>>>>
> >>>>>>  //now I put some value in the table.
> >>>>>>
> >>>>>>  schedTable->instance->set_row(r, "Mauro",99999, "pluto", "77777","
> restante", "vimodrone", "milano", >>>>>>                "ceriel", "pippo", 66666, 55555,
> 44444, 33333, 22222, 11111, "goofy", 00000, 5);

OK.

>
>
> In this way the manager find the index "65.66.1.68" and I able to set any
> parameters of the table.

The index would be "2.65.66.1.68".

>
>
> Is correct that can't make a GET-REQUEST on the INDEX?

Yes, the index objects themselves are not accessible.

>
>
> In this case how I can set this parameter from the Manager?

Your create a row by setting the RowStatus object of that row:
1.3.6.1.2.1.63.1.2.1.20.2.65.66.1.68
where 1.3.6.1.2.1.63.1.2.1.20 is the schedRowStatus object.

If you set this object to 5 (createAndWait) a new row will be
created.

>
>
> I should able to create new row of the table from manager!

Yes.

>
>
> I think that there is something wrong.
> Can someone suggest me something to go ahead???
>

see above

Best regards,
Frank




More information about the AGENTPP mailing list