On 22 March 2011 16:40, Donald Russell <[email protected]> wrote:
> I run the snmpget/set/walk commands as a non-privileged user.
> I also tried running snmpwalk as root and still get [the same] error

That won't be relevant.
Problems with the agent will purely depend on what the agent can do
The client side won't require any special privileges.


>> Does the agent log anything when you query the pass tree?
>>
>
> I do not see any messages in /var/log/snmpd.log. it has a timestamp of March
> 11, and is zero bytes in length.

Zero length?  Even if you restart the agent?
That sounds as if the agent isn't actually logging there.

Try running the agent by hand (perhaps on a non-standard port),
using something like

     snmpd -f -Le   ....  9999

(including any other settings that the main agent would normally specify)
and then run the query against   localhost:9999
That way you should see any output from the agent.



> FYI, this is version
> #snmpd -v
>
> NET-SNMP version:  5.3.2.2
> Web:               http://www.net-snmp.org/
> Email:             [email protected]

Hmmm...   That's a relatively old version of the agent.
But I've just tried with the current 5.3.x code,
which should be reasonably similar.  And I get the same
behaviour as before - running unprivileged complains
about /var/net-snmp/.snmp-exec-cache
Running the agent as root runs the pass script correctly.

Dave

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to