Re: problem with using RowStatus in Tables
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2008/6/19 vishal_nitr <[email protected]>: > I used mib2c.iterate_access.conf to generate template for my table which > has row status column. I don't want to show those rows of the table whose > row status is not ACTIVE instead want to display an appropriate error > like No_such_Instance. What kind of check or code I should add in my code > and where ? Given that you are using an iterator-based framework, the simplest place to handle non-active rows is within the 'get_first/get_next' hook routines. If you only returns rows with a status of ACTIVE, then only these rows will be visible in the table. Just one question, though. If you are omitting non-active rows from the table, how do you intend to make such rows live? If they don't appear in the table, then you can't issue a SET request to make them active. In fact, if you're not using the RowStatus objects in this way, what's the point of includng this column in the definition of the table at all? Dave ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ 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