? Agent++ & MIB

Kumar, Vinay 2 Vinay____barco.com
Mon May 28 11:16:54 CEST 2001


hi,

Thank you for your consideration.

I'm still stuck up in this problem, so i'm querying it for solution.

I've implemented my source code as follows:
///////////
Table::Table (string anOID): MibTable (anOID.c_str(), 0, FALSE)
{
instance = this;				//col  =
add_col (new Property (parameter1));	//1
add_col (new Property (parameter2));	//2
add_col (new Property (parameter3));	//3
add_col (new Property (parameter4));	//4
add_col (new Property (parameter5));	//5
}
///////////
void Table::AddRow (char* numRow)
{
    add_row (numRow);
}
///////////
void mainProcedure(Mib* mib)
{
Table *T = new Table("1.3.6.1.4.1.555.55");
t->AddRow("1");	//row = 1	
t->AddRow("2");	//row = 2
mib->add(T);
}
//////////

?how do i show this structure in the MIB file.
?what OID i give if i want to access 5th column of the 2nd row.

pl. suggest.

Thanks & regards.

VINK

-----Original Message-----
From: Jochen Katz [mailto:katz____agentpp.com]
Sent: Saturday, May 26, 2001 4:29 PM
To: Kumar, Vinay 2
Cc: 'agentpp-dl____agentpp.com'
Subject: Re: ? Agent++ & MIB


Hi,


> 3. After adding all the columns, i've added the rows
> Statements: add_row (numRow) where numRow [0..255]

numRow is the index of the row and not limited to 0...255 if not
rescricted through the MIB.

> in my implementation,   OID = 1.3.6.1.4.1.555.55.1.<COL>.<ROW>  -- Agent
is
> accepting requests from this OID structure
> in my MIB,              OID = 1.3.6.1.4.1.555.55.1.<ROW>.<COL>  -- ???
> 
> how do i show the structure which i've implemented in my source in the MIB
> (SMIv1)

You have to see the difference between the definition of the MIB
(where you get the information which columns each row must have, but
no rows are actually created) and the API of agent++ (which needs to
know which columns do exist before rows can be created).

Best regards,
  Jochen



More information about the AGENTPP mailing list