2009/5/27 venkatgiri <venkatgir...@globaledgesoft.com>:
> i have gone through AGENT.txt, there he is specified as the data will be
> written in ACTION mode, but he is not specified the mode in which the
> consistency check has to be done.

It doesn't *have* to be done in any one place - it's up to you
where and how you do any particular processing.

One possible arrangement might be:

   RESERVE1:   check individual assignment validity
   RESERVE2:   apply assignments to a temporary copy
   ACTION:    check overall consistency of the full SET request
   COMMIT:   make the temporary assignments permanent.

Alternatively, if you're using the v5-style handler mechanism,
you can take advantage of the fact that all of the assignments
for a given table will be processed together.
  So you could run through the list of varbinds and apply the
assignments to the temporary copy in the ACTION pass.
Then *after* this loop has finished, check the consistency of
this temporary copy.

But there's no One Right Place to handle this.
It's up to you.



> If SNMP SET command given with the multiple varbinds, like SET is given for
> the both the objects "a" and "b"
> 1. snmpset ......localhost   a.1 i 1(IPv4) b.1 a 192.16.10.20 ======> This
> SET will be success.
> 2. snmpset  ..... localhost   b.1 a fe80::10c:66cf:fe12:f3c a.1 i 2(IPv6)
> what about this SET[If the data storing and consistency check is done in the
> ACTION mode, i think this will fail but it should have succeeded].

SNMP specifies that SET processing must happen "as if simultaneously",
which implies that the order of varbinds should not make a difference.
So you should not check for consistency until *all* of the new assignments
have been applied.

The two arrangements above both handle this properly.
You can choose either - whichever seems better for you.

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
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

Reply via email to