2009/4/16 venkatgiri <[email protected]>:
> the object 'b' is having a default value as 2
> But there is no default value for the object 'c' and 'd'
>
> The snmp agent will create a row during the initialization with the index '1'.
> Here the row status object will set to NotReady/NotInservice. Right?

If you haven't specified values for 'c' and 'd' then the row would be
"notReady".
If you have specified values for 'c' and 'd', then the row would either
be 'notInService' or 'active' - your choice.


> The question is, If i get a SNMPSET for the same row that is with the index 1.
>
> snmpset ..... localhost   d.1 i 10 rowstatus.1 i createandwait

That will fail.
You are trying to create a row that is already created

You can only use "createAndWait" or "createAndGo" with rows that
do *NOT* already exist.

> NOTE: we are not receiving set for the object 'c'.
> how the agent will update that row in the table.

If you sent a SET request

    snmpset .... localhost  d.1 i 10

then that should work.
But the row would still be incomplete. and remain 'notReady'.

If you sent a SET request

    snmpset .... localhost  d.1 i 10   c.1 i 999

then the row would now be complete, and marked 'notInService'.



> Then agent will make the rowstatus as "active"?

When you tell it to

    snmpset .... localhost  rowstatus.1 i  active(1)


Please read the description of RowStatus in SNMPv2-TC
This covers the behaviour of row creation in great detail.

Dave

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
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