Erlang/OTP Forums

Author Message

<  Erlang questions mailing list  ~  OTP SNMP agent

eeicmui at eei.ericsson.s
Posted: Fri Aug 06, 1999 9:36 am Reply with quote
Guest
Hi,

I have a doubt about the Atomic SET transaction mechanism
in the SNMP agent.
Suppose I want to modify multiple rows in a single
SET request. I then must write is_set_ok, and undo
operations for this table, right?

The sequence will be:
* For each row call is_set_ok.
* If any one of them returns {error, Column}, then call
undo for each of the previous ones and return error to Manager.
* If all succeed, return success.

Pls. let me know if I'm correct.

tia,
Chandru

--
Random Wodehouse Quote

Jeeves lugged my purple socks out of the drawer as if he were a
vegetarian fishing a caterpillar out of his salad.

Jeeves and the Chump Cyril, My Man Jeeves, 1919


Post generated using Mail2Forum (http://m2f.sourceforge.net)
mbj at bluetail.com
Posted: Mon Aug 16, 1999 7:12 am Reply with quote
Guest
Chandrashekhar <eeicmui_at_eei.ericsson.se> wrote:
> Hi,
>
> I have a doubt about the Atomic SET transaction mechanism
> in the SNMP agent.
> Suppose I want to modify multiple rows in a single
> SET request. I then must write is_set_ok, and undo
> operations for this table, right?

Right. But unless the is_set_ok function modifies some state, you
don't need the undo function.

> The sequence will be:
> * For each row call is_set_ok.
> * If any one of them returns {error, Column}, then call
> undo for each of the previous ones and return error to Manager.
> * If all succeed, return success.
>
> Pls. let me know if I'm correct.

This is correct.

However, there is an (undocumented) feature you can use to change this
behaviour. Which SET transaction mechanism to use is configurable -
you can write your own set mechanism if you don't like the default
one. Check the code for details.


/martin


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum