Binding Values succed, little problem with reloading the values

Magda Stefan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks Dave for the fast reply.

starting the agent:
######################################################

[root@stefan subagg]# ./netSnmpPrvTable_subagent 
Initialise table 
cache created: -1080046408
Riding files eth0_delay and eth0_datarate !!!!! 
82050602.0
0.000462
8
loading cache: -1080046692
creating entry: -1080046740
table refistered: -1080046404
Cannot find module (NET-SNMP-MIB2.txt): At line 0 in (none)
NET-SNMP version 5.5 AgentX subagent connected
netSnmpPrvTable_subagent is up and running.

######################################################

Using the snmpgetnext I obtained: 

######################################################
   [root@stefan subagg]# snmpgetnext -v2c -c public localhost .1.3.6.1.4.1.8072.9999.9999.1.2.1.1.1
Cannot find module (NET-SNMP-MIB2.txt): At line 0 in (none)
NET-SNMP-MIB::netSnmpPlaypen.1.2.1.2.1 = STRING: "0.000462"
[root@stefan subagg]# snmpgetnext -v2c -c public localhost .1.3.6.1.4.1.8072.9999.9999.1.2.1.2.1
Cannot find module (NET-SNMP-MIB2.txt): At line 0 in (none)
NET-SNMP-MIB::netSnmpPlaypen.1.2.1.3.1 = STRING: "82050602.0"
[root@stefan subagg]# snmpgetnext -v2c -c public localhost .1.3.6.1.4.1.8072.9999.9999.1.2.1.3.1
Cannot find module (NET-SNMP-MIB2.txt): At line 0 in (none)
SNMPv2-MIB::snmpSetSerialNo.0 = INTEGER: 870754931
[root@stefan subagg]# 

######################################################

The agent response is:

######################################################
handling request: 160
handling request: 160
######################################################
And after a few seconds:

freeing cache: -1074929120

and for another snmpgetnext:

######################################################
snmpgetnext -v2c -c public localhost .1.3.6.1.4.1.8072.9999.9999.1.2.1.2.1
Cannot find module (NET-SNMP-MIB2.txt): At line 0 in (none)
SNMPv2-MIB::snmpSetSerialNo.0 = INTEGER: 870754931
######################################################

And for snmpget:

######################################################
Cannot find module (NET-SNMP-MIB2.txt): At line 0 in (none)
NET-SNMP-MIB::netSnmpPlaypen.1.2.1.2.1 = No Such Instance currently exists at this OID
######################################################

One of my observations is that calling the cache_load routine from the cache_free will load the data again,(the new data at the calling time) but it's not fast enough for me, because I want my cache reloaded every 1 second or if it's easier for each request.

Dave, I hope that you're understanding my plans.

Stefan

------------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.