Re: How to get community string in the handle function

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2010/1/5 Dejan Bojic <[email protected]>:
> In the mails and specs which I read, I understood that information about
> community string is not available in the AgentX subagnet.

That is correct.

> I must ask (because, maybe I got something wrong): It is not possible to get
> a community string in the handle function if you use AgentX subagent?

No - it is not possible.
The request passed from the master agent to the AgentX subagent
does not include *any* authentication information (neither the community
string, nor any SNMPv3 settings).  This is not part of the AgentX protocol.

This information is simply not available to the subagent.  So it can't
be passed to handler functions within the subagent.



> I want to use a community string to solve this problem (e.g.): I need a
> read-write community which may change value for some MIBs, not for all (for
> changing other MIBs, I need a different read-write community)

That sort of access control should be configured in the *master* agent,
not the subagent.   That's the way SNMP access control works.

Dave

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.