Re :Re: problem with using RowStatus in Tables
"vishal_nitr" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <1213953276.S.5429.9400.f4mail-235-206.rediffmail.com.1214163614.26310@webmail.rediffmail.com> |
Hi Dave, Yes, exactly thats what happened when i tried putting this check in get_first or get_next routines. I was not at all able to change inactive row's status. Actually my intention is just not to show inactive rows to user instead display an error message when he requests for this row either in GET to WALK. Can you throw any light on how i can proceed.... On Fri, 20 Jun 2008 10:06:19 +0100 "Dave Shield" wrote2008/6/19 vishal_nitr :> 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 simplestplace to handle non-active rows is within the 'get_first/get_next' hookroutines. If you only returns rows with a status of ACTIVE, thenonly these rows will be visible in the table.Just one question, though. If you are omitting non-active rows fromthe table, how do you intend to make such rows live? If they don'tappear in the table, then you can't issue a SET request to make themactive.In fact, if you're not using the RowStatus objects in this way, what'sthe point of includng this column in the definition of the table a t all?Dave-------------------------------------------------------------------------Check out the new SourceForge.net Marketplace.It's the best place to buy or sell services forjust about anything Open Source.http://sourceforge.net/services/buy/index.php_______________________________________________Net-snmp-users mailing [email protected] see the following page to unsubscribe or change other options:https://lists.sourceforge.net/lists/listinfo/net-snmp-users Thanks and Regards, Vishal Kotalwar, Software Engineer, Aricent, Chennai-35. 09884074047. ------------------------------------------------------------------------- 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