? Agent++ & MIB

Kumar, Vinay 2 Vinay____barco.com
Fri May 25 09:23:26 CEST 2001


Hello,

I'm working on a application that is using AGENT++ API Version 3.4.2,
Copyright (C) 2000 Frank Fock, Jochen Katz.
there i'm facing some problems, which is described below :

Source Code Implementation

1.Created a Table from a class inherited from MibTable
Statement : classA::classA ("1.3.6.1.4.1.555.55"): MibTable
("1.3.6.1.4.1.555.55.1", 0, FALSE)

2. thereafter i've created columns in the constructor
Statement : add_col ( new classB(parameters));	where classB is inherited
from MibLeaf

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

4. Thereafter i've added this table to the mib
Statement: mib->add(classA)	where mib is Mib*

5. from this implementation, the mib structure which i've got is as shown :
	1.3.6.1.4.1.555.55.1.<COL>.<ROW> : this is the structure of the OID
which is authenticated when i'm sending request to the Agent.

on the basis of above implementation, i try to create the MIB which is as
follows :

1. Create a OID which gives me MINE = 1.3.6.1.4.1.555.55

2. Create a Table [ ifTable ], OID= 1.3.6.1.4.1.555.55.1
	ifTable 	OBJECT-TYPE
		SYNTAX	SEQUENCE OF ifEntry
		ACCESS	not-accessible
		STATUS	mandatory
		DESCRIPTION  "1.3.6.1.4.1.555.55.1"
		::= { MINE 1 }

3. As per theory, we now have to create the row [ ifEntry ] which gives us,
OID= 1.3.6.1.4.1.555.55.1.<ROW>
	ifEntry	OBJECT-TYPE
		SYNTAX	IfEntry
		ACCESS	not-accessible
		STATUS	mandatory
		DESCRIPTION  "ROW"
		INDEX { col1 }	-- Is it necessary to specify INDEX
		::= { ifTable 1 }	-- Shown above in the OID as ROW

4. Add the columns to the table, gives us  OID=
1.3.6.1.4.1.555.55.1.<ROW>.<COL>	

	IfEntry ::= SEQUENCE
		{
			col1		INTEGER,
			col2		OCTET STRING,
			col3		INTEGER
		}

5. Define Columns by  describig its properties

	col1	OBJECT-TYPE
		SYNTAX	INTEGER(0..255)
		ACCESS	not-accessible
		STATUS	mandatory
		DESCRIPTION   "Index"
		::= { ifEntry 0 }

	col1 	OBJECT-TYPE
		SYNTAX	OCTET STRING (SIZE (0..12))
		ACCESS	not-accessible
		STATUS	mandatory
		DESCRIPTION    "Property1"
		::= { ifEntry 1 }

	col2	OBJECT-TYPE
		SYNTAX	INTEGER(0..255)
		ACCESS	not-accessible
		STATUS	mandatory
		DESCRIPTION   "Property2"
		::= { ifEntry 2 }
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------
?
am i right in my implementation.

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)
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------


Waiting for your reply.

Thanks &  Regards.

VINK




More information about the AGENTPP mailing list