2009/5/27 Mike Ayers <[email protected]>:
>> From: chandan [mailto:[email protected]]

>> The following condition applies to each conceptual row of the table:
>> "If TableRowStatus is set to Active, TableAddrType MUST not
>> be modified".

>>  In this scenario should the following SET operation succeed or fail?
>> snmpset TableAddrType.1=IPv6   TableAddr="some valid IPv6 address"
>> TableRowStatus=NOT_IN_SERVICE.
>
>        Succeed.  All varbinds in a set request should be treated as occuring 
> simultaneously.

I'm not sure I agree.

The SET request looks valid, yes - but if there's a condition that
active rows must not be modified, then it's not clear whether you
are allowed to take the row out of service.

But this isn't a question of SNMP syntax (or even SNMP semantics).
It's really an issue relating to what was meant by the MIB designers
when they imposed this restriction.
   That's not something we can answer - you'll have to talk to the MIB
designers themselves.


>  Therefore you must, in your prepare phase for the address,
> always accept without regard to the status of the row,

I would definitely disagree with that.
You should reject a request as soon as you can tell that it is invalid.

For example, if you receive a RowStatus create request for a row that
already exists, this cannot possibly succeed,  There's no point in
waiting until the later stages of processing - you should fail the
request immediately.


>                                            only in the commit phase.
>  Naturally, you need to have rollback handlers for all your objects.
>        I'm not completely sure I'm using the correct terminology for net-snmp.

Net-SNMP terminology would be "RESERVE" (1 & 2) for "prepare phase"
and "ACTION" for "commit phase".   The "rollback handlers" would be
covered by the "FREE" and "UNDO" passes.
    We use "COMMIT" for the final processing, releasing resources, etc.
Essentially stuff that does not (and cannot) be rolled back.

Dave

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
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

Reply via email to