I am using net-snmp 5.3.2.2 (excuse me if there are extra decimals in
there) that's the version redhat calls it.

I am trying to use VACM with multiple communities/contexts to proxy
requests to multiple JVMs running on one host.  I can get snmpd to
proxy the java management MIB successfully but I would also like to
get it to display the system MIB along with the java management MIB.

I would like the following to work:

snmpwalk -v2c -c public-jvm1 localhost .1.3.6.1.4.1.42.2.145
# Return Java Management MIB from JVM 1

snmpwalk -v2c -c public-jvm2 localhost .1.3.6.1.4.1.42.2.145
# Return Java Management MIB from JVM 2

AND

snmpwalk -v2c -c public localhost .1.3.6.1.2.1.1
snmpwalk -v2c -c public-jvm1 localhost .1.3.6.1.2.1.1
snmpwalk -v2c -c public-jvm2 localhost .1.3.6.1.2.1.1
# All return system MIB of the main system, no proxying

But all I get at the moment is the Java Management MIB from JVMs 1 and
2.  Which is progress but not quite where I want to be.  Can anyone
help me out?  I just can't get my head around views/contexts and
groups to make this work.  I have really just been guessing at it.

Relevant parts of my config are below.

Regards,
-Alan

----
rocommunity public

view    roview          included        .1
view    javaview        included        .1.3.6.1.4.1.42.2.145

com2sec notConfigUser   default         public

group notConfigGroup    v1      notConfigUser
group notConfigGroup    v2c     notConfigUser

access  notConfigGroup  ""              any     noauth  exact
javaview        none    none

com2sec -Cn ctx_jvm1 notConfigUser default public-jvm1
com2sec -Cn ctx_jvm2 notConfigUser default public-jvm2

access notConfigGroup   ctx_jvm1        any     noauth  prefix
javaview        none    none
access notConfigGroup   ctx_jvm2        any     noauth  prefix
javaview        none    none

proxy -Cn ctx_jvm1 -v2c -c public 127.0.0.1:1161 .1.3.6.1.4.1.42.2.145
proxy -Cn ctx_jvm2 -v2c -c public 127.0.0.1:1162 .1.3.6.1.4.1.42.2.145

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
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

Reply via email to