RE: Help in SNMP SET done in multiple transactions
"Mike Ayers" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <83E753BE7B6A324ABB336245BAF1DAAC07C63939@mailserver.metatv-ds.metatv.com> |
> From: Nitin Naveen [mailto:[email protected]] > Sent: Wednesday, January 16, 2008 7:11 PM > Thank you for the reference. Aftre reading it I understand > that it the job of Rowstatus. My case is that I have a row > say with two coulmns on is RowStatus the other is Name. > Initially > 'RowStatus' is Active 'Name' is Mike > > I send a SET 'RowStatus' in NotInService and Name "Nitin" > > I want the SET to have effect only after I send the second > PDU where 'RowStatus' in ActiveService. In other word if I do > GET of NAME between the two SET then GETRESPONSE should have > 'Name' Mike. > > How can I do it? By coding your MIB to behave exactly like that and then specifying, preferably in the MIB file itself, that it will have this behavior. From the RFC: <SNIP> NOTE WELL This textual convention may be used for a MIB table, irrespective of whether the values of that table's conceptual rows are able to be modified while it is active, or whether its conceptual rows must be taken out of service in order to be modified. That is, it is the responsibility of the DESCRIPTION clause of the status column to specify whether the status column must not be `active' in order for the value of some other column of the same conceptual row to be modified. If such a specification is made, affected columns may be changed by an SNMP set PDU if the RowStatus would not be equal to `active' either immediately before or after processing the PDU. In other words, if the PDU also contained a varbind that would change the RowStatus value, the column in question may be changed if the RowStatus was not equal to `active' as the PDU was received, or if the varbind sets the status to a value other than 'active'. </SNIP> It may not be clear yet, but that's what the note is saying. HTH, Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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