Hi,
i still using NET-SNMP version 5.6.1.
I wrote a dynamic Module which contains some tables with integer counter
values which will be
initialised on startup of snmpd.
Only one specific threading application write into the tables via snmpset
requests and increments the integer values within the tables.
There is one column entry within a specific table which called
'live_counter'.
The client application should read all counter values within a specific
cycle time.
The last colum which is read by client application is the column
'live_counter'
and after that all table data should be reset to zero.
But there is consistence problem of the counter values within the table,
because
before the 'live_counter' called by client application a threading
application could
write new data into some columns. If the 'live_counter' is called after
that the new written value will
never recognised by client application, because all data will be reset.
In order to resolve this problem i need a shadow copy of table columns
after successfull read
by client application. If the 'live_counter' called i inform every collumn
and calculate the new value as followed:
new_value = act_value - shadow_value;
shadow_value = 0;
I found the possibility of 'Stash cache'-mechanism within the NET_SNMP
Documentation. But its mostly
used in order to get better performance during read.
Could i use these 'Stash cache'-mechanism in order to resolve my problem or
should i implement an own solution for that.
If i understood the cache updated automatically if cache out of date. But i
have to decide by my self when the cache value updated and read.
Best regards
Norman Rädke
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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