[SNMP4J] a doubt in snmpwalk

George Chelidze gchelidze at magticom.ge
Tue Jun 3 07:25:20 CEST 2008


http://www.snmp4j.org/doc/org/snmp4j/smi/VariableBinding.html#getSyntax()

AMRUTH KUMAR JUTURU wrote:
> hi Frank,
>
>                 thanks for your response, yeah I am sorry for missing a
> little information. I found a book called essential snmp 2 in which they
> explained a bit about snmp4j api. i was actually referring to that. yeah...I
> agree OIDs starting with . are not supportedby snmp4j, i was just referring
> to that as an example. Anyway, what I actually want to know is, if we want
> to get the value of a particular OID, using get, we get the response PDU
> which contains the valueof that oid. But can we also know the type of that
> particular value like OCTET STRING or COUNTER or else....
>
>                     Thanks ,
>
>                            Regards,
>                            Amruth Kumar Juturu.
>
> On Thu, May 29, 2008 at 12:11 AM, Frank Fock <fock at agentpp.com> wrote:
>
>   
>> snmpwalk.java is not a file of the SNMP4J distribution
>> and OIDs starting with . are not supported by SNMP4J
>> (this non-standard notation is NET-SNMP specific).
>> Additionally, there is no SMI type "string" returned
>> by SNMP4J (instead OctetString represents OCTET STRING
>> SMI types).
>>
>> Regards,
>> Frank
>>
>> AMRUTH KUMAR JUTURU wrote:
>>
>>     
>>> Hi,
>>>
>>>       I am using SNMP4J api. why did you ask so? Did I miss some thing
>>> pretty obvious?
>>>
>>>               Regards,
>>>                Amruth Kumar Juturu
>>>
>>> On Tue, May 27, 2008 at 10:39 PM, Frank Fock <fock at agentpp.com <mailto:
>>> fock at agentpp.com>> wrote:
>>>
>>>    Hi,
>>>
>>>    I guess you are *not* using SNMP4J, right?
>>>
>>>    Regards,
>>>    Frank
>>>
>>>    AMRUTH KUMAR JUTURU wrote:
>>>
>>>        Hi all,
>>>
>>>                     I am trying to learn snmp4j api. I tried using the
>>>        snmputil.java file. I tried the snmpwalk.java and its working
>>>        file. I just
>>>        want to know, when I get a value of an oid (say .1.3.6.1.2.1.1.1.0
>>>        sysDescriptor) using get or get next , how do you know the type
>>>        of that
>>>        data...in this case it is String. Can we extract the type of
>>>        data from the
>>>        PDU we receive that says the type of .1.3.6.1.2.1.1.1.0 is
>>>        String. Kindly
>>>        help me in doing that. Thanks in advance for your help. Any
>>>        suggestions are
>>>        helpful.
>>>
>>>                               Thanks,
>>>                                Amruth Kumar Juturu.
>>>        _______________________________________________
>>>        SNMP4J mailing list
>>>        SNMP4J at agentpp.org <mailto:SNMP4J at agentpp.org>
>>>        http://lists.agentpp.org/mailman/listinfo/snmp4j
>>>
>>>
>>>    --    AGENT++
>>>    http://www.agentpp.com
>>>    http://www.mibexplorer.com
>>>    http://www.mibdesigner.com
>>>
>>>
>>>
>>>       
>> --
>> AGENT++
>> http://www.agentpp.com
>> http://www.mibexplorer.com
>> http://www.mibdesigner.com
>>
>>     
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>   





More information about the SNMP4J mailing list