RE: problem creating rows with data-set

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC0D2ABCDD@mailserver.metatv-ds.metatv.com>
> From: niepa inter [mailto:[email protected]]
> Sent: Tuesday, October 06, 2009 10:42 AM

> I have generated a code for snmp using mib-2c (data-set). It works,
> howerver it won't let me add additional column to the predefined ones.
> Let say I have the oid ".1.2.3.4.COLUMN_SENSE1". I can add a row to it
> and I obtain ".1.2.3.4.COLUMN_SENSE1.1" but I don't have a way to add
> and additional column with for example oid ".1.2.3.4.COLUMN_SENSE1.2"
> that will follow directly the previous oid while remaining in the same
> table.

	This sounds like desired behavior.  While there is no prohibition of dynamically added columns in SNMP, it is almost never what you want to do.  Rather, you should define the MIB with all the columns, then, if necessary, sparsely populate them.

	If you really do need dynamic columns (I'd be interested in the use case), then you'll need to implement your MIB module with more generalized functions that allow you to have that kind of control.


	HTH,

Mike

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.