Hi,
Assuming I have AgentX tweak with all the contexts set up, can I do one 
snmpwalk at the main node for the whole cluster? 
snmpwalk -c public <main node ip>

Or am I only be able to walk one node at a time with the right context for each 
node?
Thanks,
Phong


________________________________
From: Dave Shield <d.t.shi...@liverpool.ac.uk>
To: Alexandre James <aja...@sandvine.com>
Cc: Nguyen Dinh Phong <ndph...@yahoo.com>; 
"net-snmp-coders@lists.sourceforge.net" <net-snmp-coders@lists.sourceforge.net>
Sent: Wednesday, November 2, 2011 9:43 AM
Subject: Re: snmp in cluster

On 2 November 2011 15:59, Alexandre James <aja...@sandvine.com> wrote:
> Is this arrangement actually compliant? ie Is it perfectly valid for different
> contexts/communities to return different values for the same oids?

It's certainly a valid use of contexts.
Indeed - this is the whole point of having contexts at all.
See   RFC 3411, section 3.3.1 for details.


The situation wrt communities is a little less clear-cut,
but I can't spot anything that would forbid such an approach.

The Net-SNMP agent provides a mechanism for mapping
community strings to a non-default context.   Particularly
when using proxy mapping to another agent.


> Also, does net-snmp provide this functionality or did you do the 
> implementation yourself?

Most of the agent MIB modules are coded to register information
in the default context (only).   So you'd need to tweak the code
to provide alternate registrations in a different context.
    But you'd need to do this to report different data anyway.

If you're working with AgentX subagents, then these can probably
be tweaked to register and operate with a different context throughout.


But it's not something I've actually done myself  (and it's pretty busy at
work, so I don't have much spare time at the moment).  You'll probably
need to play about with things a bit to get it working.

Dave
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to