I think am only doing scalars, no tables. (Whether there is a table is dependent on the MIB, right? If I have a MIB with no tables, I don't need to handle tables?)
With just scalars might there still be a list of requests that must be worked through? My mib2c config started out life as the scalar example, and I filled in the blanks to turn the OID I am handed into the right identifier to talk to a preexisting properties manager of ours, access the value and return it (in the get case) or do roughly the reverse in the set case. My intermediate values are turning one kind of OID representation into a private form that came from the old roll-our-own SNMP I am replacing, making sure it is good, etc. In the get case I munge things around to have the right internal key, and look up the value. In the set case I munge things around in reserve1, make sure there are no errors, and wait for commit to set the value. If I never get the commit everything I have done can be abandoned. Preserving that internal stuff (internal key, filled in internal data structure ready to pass to the internal set function) seems smart. Declaring a static of my internal structure seems to work. But that depends on once net-snmp starts hitting my handle_some_specific_item() with reserve1, reserve2, etc., it won't start up a new reserve1 with a new value to be set before the first time in has been committed or abandoned. I tried hitting myself with multiple parallel snmpset's on the same item and instrumentation I stuck in there never showed a second transaction on my item started before the first was closed. Clearer? Thanks, -kb, the Kent who wishes the S in SNMP had held better -- Kent Borg Software Engineer CSR Technology, Inc. A member of the CSR Group of Companies +1-781-791-6282 kent.b...@csr.com Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ 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