On 06/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have one question is it possible for > scalar attribute . For example in a single SNMPSET request if manager is > trying to set three attribute (say ipaddress, netmask, and gateway). > Suppose setting of gateway fails then is it possible to set the old > value of IP address and netmask ?
Assuming this is a single SNMP SET request, then this is exactly what *MUST* happen. The same multi-pass processing model is used for scalar objects as for tables. It's up to the module implementer (i.e. you!) to either: a) keep sufficient information stored so that you can restore all previous values in the UNDO pass, or b) only act on the assignment when things "cannot fail" (i.e in the COMMIT pass) This is commonly done by having an internal copy of the row data, updating that during the RESERVE/ACTION passes, and then transferring this to the underlying subsystem in the COMMIT pass. But such an approach does rely on comprehensive validation of the request, so that you're as certain as possible that it will succeed. Otehrwise, you need to be ready to back things out in the UNDO pass. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users