[SNMP4J] CounterEvent

Frederic Provot fprovot at parkeon.com
Wed Sep 26 16:43:14 CEST 2007


In fact I was trying to understand how counters are managed. Through the 
given examples (AgentTest and SnmpRequest) I've been able to GET or SET 
values of the test IfMIB, and add new value not yet set. But I couldn't 
figure out how to set counters.

For example I have set a new 'ifIndex' value, 'ifDescr' and 'ifSpeed' for 
example (even though they are in read-only, usign your agentppSimMode), but 
for 'ifCountOctet' for example, setting is not possible with a "Wrong Type" 
error. I tried all the data types usable with SnmpRequest but couldn't succeed.

It looks like counters are only managed on internal warnings, but not from 
external query. So how can I set some mib counters? I must miss something...

Best regards
Frederic


At 19:27 24/09/2007 +0200, you wrote:
>Hello Frederic,
>
>What are you trying to accomplish with CounterEvent?
>(This class is merely for internal use)
>
>Best regards,
>Frank
>
>Frederic Provot wrote:
>>Hello,
>>I've searched through the archive, but couldn't find informations about 
>>that: can anyone points me to an example or a manual about the use of the 
>>CounterEvent class.
>>I have use the SnmpRequest source file to make a listening agent, but now 
>>I have to manage requests. As a better option, I searched onto the web a 
>>complete example of a SMP4J snmp agent, thinking I would find a bunch a 
>>souce files, but no even one! It's not that I don't want to work, but 
>>it's generally  far quicker to start from working examples or a tutorial 
>>than to search lonely each trick and workaround from scratch...
>>If someone can give me such information, I'd be very pleased.
>>Best regards,
>>Frederic
>>
>>_______________________________________________
>>SNMP4J mailing list
>>SNMP4J at agentpp.org
>>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>--
>AGENT++
>http://www.agentpp.com
>http://www.mibexplorer.com
>http://www.mibdesigner.com
>





More information about the SNMP4J mailing list