Hi Dave,

Thanks a lot for your response. After reading your post, I used the snmpconf
tool to configure the access control on the agent, following the tutorial on
this page
http://net-snmp.sourceforge.net/tutorial/tutorial-5/demon/snmpd.html#location

Currently I have the following line in the snmpd.conf file to allow access
for the OID
*     rocommunity public default .1.3.6.1.3.1.1
*
However, when I execute the snmpget command, my Java program is still not
being called and I get an error, although a different error to the one I got
previously.
*    EMNETS-MIB::emnetsMIB = No Such Instance currently exists at this OID*

Could you tell me if the line "*rocommunity public default .1.3.6.1.3.1.1*"
is sufficient for allowing access to the OID?

Regards,
Mark







On Sat, Aug 1, 2009 at 3:57 PM, Dave Shield <[email protected]>wrote:

> 2009/7/29 Mark Hennelly <[email protected]>:
> > It appears that my Java program is not being executed at all, I was
> > wondering if anyone knew of a possible reason for this not working
>
> You haven't given us much to go on, but my immediate reaction would
> be to check the access control settings.   If the agent isn't configured
> to allow access to this particular OID, then it would never get as far
> as calling your Java program.
>
> See the FAQ for more information.
>
> Dave
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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