[SNMP4J] can't do get for Counter64 variable

2008-06-02 Thread Tzahi Bergman
hi, i made a method that do get from an agent and it works great, the only problem i got is that for some reason it returns null when it comes to COUNTER64 variables. Can anyone help me with that? Here is my code for the get: Address address = new UdpAddress(ip + /161); VariableBinding binding =

[SNMP4J] Creating a row - using TableUtils

2008-10-02 Thread Tzahi Bergman
Hi, I've created a row using TableUtils. The problem that i have is adding a row that has two indexes - meaning that the row index contains oid that has two numbers,for some reason it doesn't work.. In the ResponseEvent i got: RESPONSE[requestID=2039348526, errorStatus=Unable to create object(11),

[SNMP4J] problem with BITS type

2008-10-13 Thread Tzahi Bergman
Hi, I got a problem when I'm trying to do a set for object that is type BITS. I have read the discussion about BITS that the BITS is OCTET STRING and this is how i should treat it, but it doesn't work. the error that i got while trying to do the set is: errorStatus=Request PDU has incorrect

Re: [SNMP4J] problem with BITS type

2008-10-16 Thread Tzahi Bergman
That's exactly what i did, and it didn't work. On Thu, 2008-10-16 at 00:07 +0200, Frank Fock wrote: Hi, You need to send an OCTET STRING with a single byte (length = 1). Best regards, Frank Tzahi Bergman wrote: I've tried to insert many combinations in order for it to work

Re: [SNMP4J] problem with BITS type

2008-10-20 Thread Tzahi Bergman
in the agent? Best regards, Frank Tzahi Bergman wrote: That's exactly what i did, and it didn't work. On Thu, 2008-10-16 at 00:07 +0200, Frank Fock wrote: Hi, You need to send an OCTET STRING with a single byte (length = 1). Best regards, Frank Tzahi Bergman wrote: I've