[SNMP4J] getSubtree for SNMPv3

Frank Fock fock at agentpp.com
Wed Aug 20 08:36:46 CEST 2008


Hi Vikarm,

To specify the context name, you will have to
create your own subclass of PDUFactory which
returns a ScopedPDU.

Best regards,
Frank


vikram shetty wrote:
> Hi Frank,
>  
>     Thanks for replying the the mail.
>  
>      While creating the object TreeUtils tree = *new* TreeUtils(snmp, 
> scopedPdu); it is gives error like constructor is not define.
>  
>      Constructor is  TreeUtils(Snmp snmp, ScopedPdu scopedPdu) in th 
> TreeUtils class is not defined.
>  
>       But i am able to creat object like TreeUtils tree = *new* 
> TreeUtils( snmp, new *new* DefaultPDUFactory()), it is not useful 
> because i did not able specify the ContexName. It failes while 
> authenticating the PDU.
>  
>  
> Thanks
> Vikarm shetty.
> 
> 
>  
> On Wed, Aug 20, 2008 at 2:41 AM, Frank Fock <fock at agentpp.com 
> <mailto:fock at agentpp.com>> wrote:
> 
>     Hi,
> 
>     What is the problem when using a ScopedPDU?
>     (SNMPv3 is supported of course)
> 
>     Best regards,
>     Frank
> 
>     vikram shetty wrote:
> 
>         Hi ,
> 
>           I want to know function
>         getSubtree from org.snmp4j.util.TreeUtils class is support
> 
>         for SNMPv3 version or not. If it is support for SNMP-V3 then how
>         to construct the TreeUtil Object because we can not pass the
>         ScopedPdu
>         object to TreeUtils constructors.
> 
> 
>         Thanks,
>         Vikram Shetty
>         _______________________________________________
>         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.agentpp.com/>
>     http://www.mibexplorer.com <http://www.mibexplorer.com/>
>     http://www.mibdesigner.com <http://www.mibdesigner.com/>
> 
> 

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list