[Pkg-net-snmp-devel] Bug#530291: snmpd: Broken execFix - No matching exec entry

Miroslav Jezbera jezz at hkfree.org
Sat May 23 19:24:56 UTC 2009


Package: snmpd
Version: 5.4.1~dfsg-12
Severity: normal
Tags: patch


I want to use snmp to remotely reboot machine. I have found advice to use
exec/execfix pair to do this.

Entry in snmpd.conf:
...
exec    reboot /usr/bin/uptime
execFix reboot /root/bin/reboot

And command:
snmpset -v 2c -c secret host UCD-SNMP-MIB::extErrFix.1 i 1


This does not work - snmpd writes this error message to log:
/etc/snmp/snmpd.conf: line 92: Error: No matching exec entry

Problem is in source - "Fix" suffix is added to name of execFix directive and
then it is searched for complementary exec entry. Attached is patch, that
removes this suffix, when it is no longer needed.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages snmpd depends on:
ii  libc6                         2.9-4      GNU C Library: Shared libraries
pn  libsnmp5                      <none>     (no description available)
pn  libssl0.9.7                   <none>     (no description available)
ii  libwrap0                      7.6.q-16   Wietse Venema's TCP wrappers libra

snmpd recommends no packages.

snmpd suggests no packages.

-- 
Jezz
mail:   jezz at hkfree.org
jabber: jezz at njs.netlab.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixexec.diff
Type: text/x-diff
Size: 522 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20090523/1b27875b/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20090523/1b27875b/attachment.pgp>


More information about the Pkg-net-snmp-devel mailing list