pass through not working in snmpd

Daniel Leicht <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I'm trying to make snmpd run a script everytime that someone gets/sets the
oids under 1.3.6.1.4.1.50000.1.

An example snmpset command that I use is:
snmpset -v3 -u snmpuser 10.0.0.151 .1.3.6.1.4.1.50000.1.10 string "TEST"

I know for sure that the daemon is not even trying to run that file I asked
it to (checked using strace).
And when checking the traffic in wireshark, I can see the following:
48977 2321.852836 10.0.0.183 10.0.0.151 SNMP set-request
1.3.6.1.4.1.50000.1.10
48978 2321.856039 10.0.0.151 10.0.0.183 SNMP report 1.3.6.1.6.3.15.1.1.3.0

I check that everything has the correct permissions and that the full path
that I gave the pass command is correct.

Any idea what I am missing?
Am I doing something wrong?


my snmpd.conf:

###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#






###########################################################################
# SECTION: Extending the Agent
#
#   You can extend the snmp agent to have it return information
#   that you yourself define.

# pass: Run a command that intepretes the request for an entire tree.
#   The pass program defined here will get called for all
#   requests below a certain point in the mib tree.  It is then
#   responsible for returning the right data beyond that point.
#
#   arguments: miboid program
#
#   example: pass .1.3.6.1.4.1.2021.255 /path/to/local/passtest
#
#   See the snmpd.conf manual page for further information.
#
#   Consider using "pass_persist" for a performance increase.

pass  .1.3.6.1.4.1.50000.1 /mnt/usb/project/bin/snmp



###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  snmpuser noauth





Thanks in advance,
Daniel Leicht.

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-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.