On Fri, 2009-10-09 at 20:22 -0500, EYRE Bernadette wrote:
> 
> I have 5.4.2.1 version based sub-agent which connects to the master
> agent
> and registers an OID handler.

You are not stating what protocol you are using so I will assume AgentX
but the discussion is true for all subagent protocols

> I need access to few of the incoming (input) pdu variables such as
> community name,
> community length, for SNMPv1/v2, and securityName and securityNamelen,
> for SNMPv3.
> When the sub-agent oid handler is called the following pointers are
> passed to it:

These are explicitly not part of the protocol and are thus not available
to the subagent.

Even for a built in handler I would posit that it is bad style to depend
on them, what are you doing that makes you feel a need for them?

/MF

>  netsnmp_mib_handler *handler,
>  netsnmp_handler_registration *reginfo,
>  netsnmp_agent_request_info *reqinfo,
>  netsnmp_request_info *requests
> 
> I used agent request info , reqinfo above, pointer to print and
> examine the content of the
>  reqinfo->asp->pdu->community
>  reqinfo->asp->orig_pdu->securityName
>  reqinfo->asp->session->community
>  reqinfo->asp->session->securityName
> 
> all of these resulted in NULL pointer and 0 length for the length of
> the string
> They are not set.
> 
> Does any one on this list know how from the handler to obtain the
> above security elements?
> 
> Your help as always is appreciated,
> 
> Regards,
> 
> Bernadette Eyre
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________ Net-snmp-coders mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to