*** CORRECTION *** RE: A problem in the agentgen?

Alex Finogenov afinogenov____malibunet.com
Thu Aug 2 23:08:48 CEST 2001


I apologize for one more correction,

The set(const Vbx &) method is not new, all generated table leaves have it.
I don't use it routinely, so I was not aware of it. 

Thus we simply have two methods - set_state() and get_state() - missing.

Thanks,
Alex

-----Original Message-----
From: Alex Finogenov 
Sent: Thursday, August 02, 2001 2:01 PM
To: 'agentpp-dl____agentpp.com'
Subject: RE: A problem in the agentgen?



	CORRECTION
	==========

In my previous message I made a typo: the generated leaf class has a new
set(const Vbx &) method instead of the other two missing methods.

Alex

-----Original Message-----
From: Alex Finogenov 
Sent: Thursday, August 02, 2001 1:56 PM
To: 'agentpp-dl____agentpp.com'
Subject: A problem in the agentgen?


Frank,

I just discovered that the following MIB statement:

mnCpeCtrlIpAddr OBJECT-TYPE
	SYNTAX	IpAddress
	MAX-ACCESS	read-create
	STATUS	current
	DESCRIPTION
			"IP address."
	::= { mnCpeCtrlEntry 1 }

as a part of a table definition that AUGMENTS a base table's entry, makes
the latest agentgen generate the MibLeaf code for the column with both
get_state() and set_state() missing, but a get(Vbx &) method instead.

This doesn't just break the pattern on which I am relying a lot (my agent
implements the Decorator pattern, so I have to make very slight trivial
changes to the generated files and my implementation code lives outside
elsewhere), but also leaves me no choice except adding these methods
manually to the leaf's definition in the generated code.

Am I missing something here? Are you treating IpAddress differently on
purpose?

Thanks,
Alex

-----Original Message-----
From: Ram Krishnaswamy [mailto:RKrishnaswamy____pathfire.com]
Sent: Wednesday, August 01, 2001 3:56 PM
To: 'agentpp-dl____agentpp.com'
Subject: SET update on table column


Hello,

I have a table where one of the columns can be changed. When a set request
comes in, I process the request and also change the state of the column from
active to inactive (active, inactive, start and stop are four states). Apart
from this column, I also update other columns in the table depending upon
the set request. The update to other columns works fine except for the
column for the set request. When I print the contents of the updated table,
it shows the right value. But the get snmp request shows me the value I used
to set it. 

Am I doing something wrong here? I changed my code to update the column
different ways and it still does not show the right value on the get
request. The only other thing I can think of is the column that is being set
is locked by agent++ and hence the update fails. But I tried to change this
so that I update the value after I complete the request and before calling
MibLead::set(vb) in this column set method. 

Thanks for your help.

Ram



More information about the AGENTPP mailing list