Re: netsnmp_table_row_add_index doc.

Francois Bouchard <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAAZiaZc+sGC_3XCTFkWcqeevtJLz=Xzaf1PCucxg2KsSyef-+A@mail.gmail.com>
 > That makes sense - you can't have a row without an index.
> Otherwise how are you going to refer to that row in the future?

So this row index - or called the row's instance - is not like the INDEX
statement in one MIB.  It does'nt have any link?



Francois


2012/1/31 Dave Shield <[email protected]>

> On 27 January 2012 20:11, Francois Bouchard <[email protected]>
> wrote:
> > I'm building a table set with the mib2c.create-dataset.conf script and as
> > I'm entering new rows I stumbled on one function called
> > "netsnmp_table_row_add_index" that seems to be important.
>
> This is used to set the index value(s) for the row that you are
> constructing.
> So if the row should have an integer index of 17, then you'd have code
> something like:
>
>     u_long  idx = 17;
>     netsnmp_table_row_add_index(row, ASN_INTEGER, &idx, sizeof(idx));
>
> (where 'row' is the row structure that you've just created)
>
>
> > Without this function I got an error illegal data attempted to be added
> to
> > table mpbcRMHAlarmTable (no index) at function netsnmp_set_row_column()
>
> That makes sense - you can't have a row without an index.
> Otherwise how are you going to refer to that row in the future?
>
>
> > But I can't find any doc on that function...
>
> That wouldn't surprise me, no
>
> Dave
>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

_______________________________________________
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.